R
RogerTBrick
Cheers for the help last time guys. Again this is probably dead
simple but try as I might, I just can't work it out.
THe XML file I am being give contains some code value that need to be
exchanged for text in the final output (to HTML as it happens).
<root>
<thingy code="2"/>
<root>
My first solution (the one I thought would be easiest) was you use two
comma spearated lists and simply grab the correct text value based on
the index.
<xsl:variable name="codes">1,2,3,4</xsl:variable>
<xsl:variable name="text">aaa,bbb,ccc,ddd</xsl:variable>
But I am stumped. Is this even possible with XSL? Or is there a
better way of doing the substitution that I'm missing?
Thanks again,
J.
simple but try as I might, I just can't work it out.
THe XML file I am being give contains some code value that need to be
exchanged for text in the final output (to HTML as it happens).
<root>
<thingy code="2"/>
<root>
My first solution (the one I thought would be easiest) was you use two
comma spearated lists and simply grab the correct text value based on
the index.
<xsl:variable name="codes">1,2,3,4</xsl:variable>
<xsl:variable name="text">aaa,bbb,ccc,ddd</xsl:variable>
But I am stumped. Is this even possible with XSL? Or is there a
better way of doing the substitution that I'm missing?
Thanks again,
J.