Subject: [xsl] XSLT2, select nodes inside a tokenize()'d variable From: "James Cummings" <cummings.james@xxxxxxxxx> Date: Wed, 20 Dec 2006 13:51:48 +0000 |
<xsl:template name="makeSegLabel"> <xsl:variable name="ana" select="tokenize(@ana, '(\s+)')"/> <xsl:for-each select="$ana"> <xsl:value-of select="."/><xsl:text>:</xsl:text> <xsl:value-of select="//category[@id = .]/catDesc"/> </xsl:for-each> </xsl:template>
Where I want to tokenize the ana attribute on the element which called this template, and then for each whitespace separated value, I want to put it out, and then go get a description of what that value means from elsewhere in the document.
However, I'm rightly told that I cannot select a node here because the context is an atomic value.
Many thanks, -James -- James Cummings, Cummings dot James at GMail dot com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Office 2007, XSL-FO, and , Jirka Kosek | Thread | Re: [xsl] XSLT2, select nodes insid, Andrew Welch |
Re: [xsl] What todo when execution , Abel Braaksma | Date | Re: [xsl] XSLT2, select nodes insid, Andrew Welch |
Month |