Subject: Re: Possible to use attribute value in pattern ?? From: David Carlisle <davidc@xxxxxxxxx> Date: Thu, 15 Jul 1999 15:40:11 +0100 (BST) |
> you wanted to create choice box or list with all @name values. You > could match the pattern, but then could never revisit the element to get > information about its content or its other attribute values. why not? you can either process using different modes, or you just select in with different patterns, as often as you like. <xsl:for-each select="foo/@name"> do something with the names of all the foos with a name attribute </xsl:for-each> <xsl:for-each select="foo[@name]"> do something with the content of all the foos with a name attribute </xsl:for-each> <xsl:for-each select="foo[not(@name)]"> do something with the content of all the foos without a name attribute </xsl:for-each> Or maybe I didn't understand your problem? David XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Possible to use attribute value, jmbolles | Thread | Re: Possible to use attribute value, cjdrake |
Re: Possible to use attribute value, jmbolles | Date | Re: Possible to use attribute value, Lionel Villard |
Month |