xalan:node-set() returns the root (document) node that is the parent of
the <tab> elements, it doesn't return the <tab> elements themselves.
Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx
> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Al Byers
> Sent: 07 December 2002 22:57
> To: XSL-List
> Subject: nodeset namespace
>
>
> If I have something like this in my stylesheet:
> <xsl:variable name="formTabsFrag">
> <tab title="abc" />
> <tab title="efg" />
> </xsl:variable>
> <xsl:variable name="formTabs"
> select="xalan:nodeset($formTabsFrag)"/>
>
> then I do something like:
> <xsl:for-each select="$formTabs[1]/*">
> <tab>
> <xsl:value-of select="@title"/>
> </tab>
> </xsl:for-each>
>
> it doesn't find @title.
>
> Why is that?
>
> TIA
> Al
>
>
>
> Al Byers
> Wasatch Automation Group, LLC
> P.O. Box 1672
> Orem, UT 84059
> 801.400.5111
>
> byersa@xxxxxxxxxxxxxxxxxxxx http://automationgroups.com/na/wasatch
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|