... |
... |
@@ -68,24 +68,24 @@ |
68 |
68 |
<ERS2KENNZ1><xsl:value-of select="form/field[@name='tfERS2KENNZ1']/plainValue"/></ERS2KENNZ1> |
69 |
69 |
<ERS2KENNZ2><xsl:value-of select="form/field[@name='tfERS2KENNZ2']/plainValue"/></ERS2KENNZ2> |
70 |
70 |
<LKW_GEWICH> |
71 |
|
- <xsl:call-template name="formatWeight"> |
72 |
|
- <xsl:with-param name="weight" select="form/field[@name='tfLKW_GEWICH']/plainValue" /> |
73 |
|
- </xsl:call-template> |
|
71 |
+ <xsl:call-template name="formatWeight"> |
|
72 |
+ <xsl:with-param name="weight" select="form/field[@name='tfLKW_GEWICH']/plainValue" /> |
|
73 |
+ </xsl:call-template> |
74 |
74 |
</LKW_GEWICH> |
75 |
75 |
<ANH_GEWICH> |
76 |
|
- <xsl:call-template name="formatWeight"> |
77 |
|
- <xsl:with-param name="weight" select="form/field[@name='tfANH_GEWICH']/plainValue" /> |
78 |
|
- </xsl:call-template> |
|
76 |
+ <xsl:call-template name="formatWeight"> |
|
77 |
+ <xsl:with-param name="weight" select="form/field[@name='tfANH_GEWICH']/plainValue" /> |
|
78 |
+ </xsl:call-template> |
79 |
79 |
</ANH_GEWICH> |
80 |
80 |
<ZUG_GEWICH> |
81 |
|
- <xsl:call-template name="formatWeight"> |
82 |
|
- <xsl:with-param name="weight" select="form/field[@name='tfZUG_GEWICH']/plainValue" /> |
83 |
|
- </xsl:call-template> |
|
81 |
+ <xsl:call-template name="formatWeight"> |
|
82 |
+ <xsl:with-param name="weight" select="form/field[@name='tfZUG_GEWICH']/plainValue" /> |
|
83 |
+ </xsl:call-template> |
84 |
84 |
</ZUG_GEWICH> |
85 |
85 |
<AUF_GEWICH> |
86 |
|
- <xsl:call-template name="formatWeight"> |
87 |
|
- <xsl:with-param name="weight" select="form/field[@name='tfAUF_GEWICH']/plainValue" /> |
88 |
|
- </xsl:call-template> |
|
86 |
+ <xsl:call-template name="formatWeight"> |
|
87 |
+ <xsl:with-param name="weight" select="form/field[@name='tfAUF_GEWICH']/plainValue" /> |
|
88 |
+ </xsl:call-template> |
89 |
89 |
</AUF_GEWICH> |
90 |
90 |
<!-- |
91 |
91 |
<LKW_LEER><xsl:value-of select="form/field[@name='']/plainValue"/></LKW_LEER> |
... |
... |
@@ -94,69 +94,69 @@ |
94 |
94 |
<AUF_LEER><xsl:value-of select="form/field[@name='']/plainValue"/></AUF_LEER> |
95 |
95 |
--> |
96 |
96 |
<ERS_GEWI_1> |
97 |
|
- <xsl:call-template name="formatWeight"> |
98 |
|
- <xsl:with-param name="weight" select="form/field[@name='tfERS_GEWI_1']/plainValue" /> |
99 |
|
- </xsl:call-template> |
|
97 |
+ <xsl:call-template name="formatWeight"> |
|
98 |
+ <xsl:with-param name="weight" select="form/field[@name='tfERS_GEWI_1']/plainValue" /> |
|
99 |
+ </xsl:call-template> |
100 |
100 |
</ERS_GEWI_1> |
101 |
101 |
<ERS_GEWI_2> |
102 |
|
- <xsl:call-template name="formatWeight"> |
103 |
|
- <xsl:with-param name="weight" select="form/field[@name='tfERS_GEWI_2']/plainValue" /> |
104 |
|
- </xsl:call-template> |
|
102 |
+ <xsl:call-template name="formatWeight"> |
|
103 |
+ <xsl:with-param name="weight" select="form/field[@name='tfERS_GEWI_2']/plainValue" /> |
|
104 |
+ </xsl:call-template> |
105 |
105 |
</ERS_GEWI_2> |
106 |
106 |
<ART><xsl:value-of select="form/field[@name='tfART']/plainValue"/></ART> |
107 |
107 |
<ART_GEWICH> |
108 |
|
- <xsl:call-template name="formatWeight"> |
109 |
|
- <xsl:with-param name="weight" select="form/field[@name='tfART_GEWICH']/plainValue" /> |
110 |
|
- </xsl:call-template> |
|
108 |
+ <xsl:call-template name="formatWeight"> |
|
109 |
+ <xsl:with-param name="weight" select="form/field[@name='tfART_GEWICH']/plainValue" /> |
|
110 |
+ </xsl:call-template> |
111 |
111 |
</ART_GEWICH> |
112 |
112 |
<STARTORT><xsl:value-of select="form/field[@name='tfSTARTORT']/plainValue"/></STARTORT> |
113 |
113 |
<ZIELORT><xsl:value-of select="form/field[@name='tfZIELORT']/plainValue"/></ZIELORT> |
114 |
114 |
<UEBER><xsl:value-of select="form/field[@name='tfUEBER']/plainValue"/></UEBER> |
115 |
115 |
<ZEIT_VON> |
116 |
|
- <xsl:call-template name="formatDate"> |
117 |
|
- <xsl:with-param name="dateTime" select="form/field[@name='tfZEIT_VON']/plainValue" /> |
118 |
|
- </xsl:call-template> |
|
116 |
+ <xsl:call-template name="formatDate"> |
|
117 |
+ <xsl:with-param name="dateTime" select="form/field[@name='tfZEIT_VON']/plainValue" /> |
|
118 |
+ </xsl:call-template> |
119 |
119 |
</ZEIT_VON> |
120 |
120 |
<VON_UHR><xsl:value-of select="form/field[@name='tfVON_UHR']/plainValue"/></VON_UHR> |
121 |
121 |
<ZEIT_BIS> |
122 |
|
- <xsl:call-template name="formatDate"> |
123 |
|
- <xsl:with-param name="dateTime" select="form/field[@name='tfZEIT_BIS']/plainValue" /> |
124 |
|
- </xsl:call-template> |
125 |
|
- </ZEIT_BIS> |
126 |
|
- <BIS_UHR><xsl:value-of select="form/field[@name='tfBIS_UHR']/plainValue"/></BIS_UHR> |
127 |
|
- <ORT_LEERFA><xsl:value-of select="form/field[@name='tfORT_LEERFA']/plainValue"/></ORT_LEERFA> |
128 |
|
- <BEGRUENDG><xsl:value-of select="form/field[@name='tfBEGRUENDG']/plainValue"/></BEGRUENDG> |
129 |
|
- <!-- |
130 |
|
- <ORTSLAGE><xsl:value-of select="form/field[@name='tfORTSLAGE']/plainValue"/></ORTSLAGE> |
131 |
|
- <NOTIZ><xsl:value-of select="form/field[@name='tfNOTIZ']/plainValue"/></NOTIZ> |
132 |
|
- --> |
|
122 |
+ <xsl:call-template name="formatDate"> |
|
123 |
+ <xsl:with-param name="dateTime" select="form/field[@name='tfZEIT_BIS']/plainValue" /> |
|
124 |
+ </xsl:call-template> |
|
125 |
+ </ZEIT_BIS> |
|
126 |
+ <BIS_UHR><xsl:value-of select="form/field[@name='tfBIS_UHR']/plainValue"/></BIS_UHR> |
|
127 |
+ <ORT_LEERFA><xsl:value-of select="form/field[@name='tfORT_LEERFA']/plainValue"/></ORT_LEERFA> |
|
128 |
+ <BEGRUENDG><xsl:value-of select="form/field[@name='tfBEGRUENDG']/plainValue"/></BEGRUENDG> |
|
129 |
+ <!-- |
|
130 |
+ <ORTSLAGE><xsl:value-of select="form/field[@name='tfORTSLAGE']/plainValue"/></ORTSLAGE> |
|
131 |
+ <NOTIZ><xsl:value-of select="form/field[@name='tfNOTIZ']/plainValue"/></NOTIZ> |
|
132 |
+ --> |
133 |
133 |
<ORTSLAGE><xsl:value-of select="form/field[@name='edAnmerkungen']/plainValue"/></ORTSLAGE> |
134 |
|
- <NOTIZ><xsl:value-of select="form/field[@name='edAnmerkungen']/plainValue"/></NOTIZ> |
135 |
|
- <SACHGEBIET>Z</SACHGEBIET> |
136 |
|
- <FORMID><xsl:value-of select="form/field[@name='tfFORMID']/plainValue"/></FORMID> |
137 |
|
- <SERVICE_ID><xsl:value-of select="./@process-uid" /></SERVICE_ID> |
138 |
|
- </datensatz> |
139 |
|
- </daten> |
140 |
|
- </xsl:template> |
141 |
|
- <xsl:template name="formatDate"> |
142 |
|
- <xsl:param name="dateTime"/> |
143 |
|
- <xsl:variable name="day" select="substring-before($dateTime, '.')" /> |
144 |
|
- <xsl:variable name="month" select="substring-before(substring-after($dateTime, '.'), '.')" /> |
145 |
|
- <xsl:variable name="year" select="substring-after(substring-after($dateTime, '.'), '.')" /> |
|
134 |
+ <NOTIZ><xsl:value-of select="form/field[@name='edAnmerkungen']/plainValue"/></NOTIZ> |
|
135 |
+ <SACHGEBIET>Z</SACHGEBIET> |
|
136 |
+ <FORMID><xsl:value-of select="form/field[@name='tfFORMID']/plainValue"/></FORMID> |
|
137 |
+ <SERVICE_ID><xsl:value-of select="./@process-uid" /></SERVICE_ID> |
|
138 |
+ </datensatz> |
|
139 |
+ </daten> |
|
140 |
+ </xsl:template> |
|
141 |
+ <xsl:template name="formatDate"> |
|
142 |
+ <xsl:param name="dateTime"/> |
|
143 |
+ <xsl:variable name="day" select="substring-before($dateTime, '.')" /> |
|
144 |
+ <xsl:variable name="month" select="substring-before(substring-after($dateTime, '.'), '.')" /> |
|
145 |
+ <xsl:variable name="year" select="substring-after(substring-after($dateTime, '.'), '.')" /> |
146 |
146 |
|
147 |
|
- <xsl:choose> |
148 |
|
- <xsl:when test="$dateTime !=''"> |
149 |
|
- <xsl:value-of select="concat($year, '-', $month, '-', $day)" /> |
150 |
|
- </xsl:when> |
151 |
|
- <xsl:otherwise> |
152 |
|
- |
153 |
|
- </xsl:otherwise> |
154 |
|
- </xsl:choose> |
155 |
|
- </xsl:template> |
156 |
|
- <xsl:template name="formatWeight"> |
157 |
|
- <xsl:param name="weight"/> |
158 |
|
- <xsl:value-of select="translate($weight, ',', '.')" /> |
159 |
|
- </xsl:template> |
|
147 |
+ <xsl:choose> |
|
148 |
+ <xsl:when test="$dateTime !=''"> |
|
149 |
+ <xsl:value-of select="concat($year, '-', $month, '-', $day)" /> |
|
150 |
+ </xsl:when> |
|
151 |
+ <xsl:otherwise> |
|
152 |
+ |
|
153 |
+ </xsl:otherwise> |
|
154 |
+ </xsl:choose> |
|
155 |
+ </xsl:template> |
|
156 |
+ <xsl:template name="formatWeight"> |
|
157 |
+ <xsl:param name="weight"/> |
|
158 |
+ <xsl:value-of select="translate($weight, ',', '.')" /> |
|
159 |
+ </xsl:template> |
160 |
160 |
</xsl:stylesheet> |
161 |
161 |
{{/code}} |
162 |
162 |
{{/panel}} |