Subject: Re: [xsl] Passing arrays into XSL From: Joern Nettingsmeier <nettings@xxxxxxxxxxxxxxxxxxxxxx> Date: Sun, 26 Feb 2006 01:11:14 +0100 |
I am bit new to XSL processing. If we can't pass the arrays into XSL, then i hope that we can pass array string as a variable.
Say i have an XML file
<colors> <color>color[1]<color> <color>color[2]<color> <color>color[3]<color> </colors>
<colors> <color>blue</color> <color>red</color> <color>an obnoxious shade of pink</color> </color>
<xsl:template match="colors/color[2]"> <xsl:value-of select="."/> </xsl:template>
<xsl:template match="colors/color[text() = 'blue']"> <xsl:text>Your color list contains "blue".</xsl:text> </xsl:template>
-- jvrn nettingsmeier
home://germany/45128 essen/lortzingstr. 11/ http://spunk.dnsalias.org phone://+49/201/491621
if you are a free (as in "free speech") software developer and you happen to be travelling near my home, drop me a line and come round for a free (as in "free beer") beer. :-D
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Passing arrays into XSL, Deepak | Thread | Re: [xsl] Passing arrays into XSL, Deepak |
[xsl] Complex Sorting Help, Crist, Trevor | Date | RE: [xsl] Complex Sorting Help, Michael Kay |
Month |