... |
... |
@@ -18,7 +18,7 @@ |
18 |
18 |
|
19 |
19 |
=== Nested function calls === |
20 |
20 |
|
21 |
|
-Funktionsaufrufe in der Form |
|
21 |
+Function calls in the form |
22 |
22 |
|
23 |
23 |
{{code language="xml"}} |
24 |
24 |
<xsl:variable name="dd"> |
... |
... |
@@ -26,7 +26,7 @@ |
26 |
26 |
</xsl:variable> |
27 |
27 |
{{/code}} |
28 |
28 |
|
29 |
|
-sind nicht mehr möglich. Stattdessen kann man das Ergebnis der inneren Funktion zum Beispiel in Variablen zwischenspeichern: |
|
29 |
+are no longer possible. Instead, you can cache the result of the inner function in variables, for example: |
30 |
30 |
|
31 |
31 |
{{code language="xml"}} |
32 |
32 |
<xsl:variable name="ddtemp"> |
... |
... |
@@ -38,29 +38,29 @@ |
38 |
38 |
</xsl:variable> |
39 |
39 |
{{/code}} |
40 |
40 |
|
41 |
|
-=== Leerzeichen === |
|
41 |
+=== Spaces === |
42 |
42 |
|
43 |
|
-Insbesondere bei der Auflösung von Schleifenvariablen müssen in bestimmten Konstellationen Leerzeichen zwingend verwendet werden, wo dies zuvor nicht nötig war. Dies ist zum Beispiel an folgender Stelle so: |
|
43 |
+Particularly when resolving loop variables, spaces are mandatory in certain constellations where this was not necessary before. This can be seen in the following example: |
44 |
44 |
|
45 |
45 |
{{code language="xml"}} |
46 |
46 |
<xsl:if test="position()=1 and .!=''"> |
47 |
47 |
{{/code}} |
48 |
48 |
|
49 |
|
-Hier müssen Leerzeichen wie folgt vorhanden sein: |
|
49 |
+Spaces must be present here as follows: |
50 |
50 |
|
51 |
51 |
{{code language="xml"}} |
52 |
52 |
<xsl:if test="position() = 1 and . != ''"> |
53 |
53 |
{{/code}} |
54 |
54 |
|
55 |
|
-=== Funktionen in For-Each-Schleifen === |
|
55 |
+=== Functions in For-Each Loops === |
56 |
56 |
|
57 |
|
-Der Vergleich der //position()// Variable z.B. innerhalb eines xsl:if-Blocks konnte zuvor gegen einen String mit dem Positionswert erfolgen. |
|
57 |
+The comparison of the //position()// variable e.g. within an xsl:if block could previously be done against a string with the position value. |
58 |
58 |
|
59 |
59 |
{{code language="xml"}} |
60 |
60 |
<xsl:if test="position()='1'"> |
61 |
61 |
{{/code}} |
62 |
62 |
|
63 |
|
-Dies entsprach nie dem Standard, und ist nicht mehr möglich. Stattdessen muss der Vergleich mit dem reinen Zahlenwert erfolgen: |
|
63 |
+This never conformed to the standard, and is no longer possible. Instead, the comparison must be made with the pure numerical value: |
64 |
64 |
|
65 |
65 |
{{code language="xml"}} |
66 |
66 |
<xsl:if test="position() = 1"> |