|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Possible to use attribute value in pattern ??
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








