|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Test for node name and attribute value
Hello I am stuck with the following node set expression. In an external document I want to find the element which name is 'anchor' and which attribute @name has the value of the variable $anchor. I tried the following expression: ... 1 <xsl:for-each ...> ... 2 <xsl:variable name="anchor" select="@anchor"/> 3 <xsl:variable name="anchor-node" select="$external-doc//node()[name() = 'my-anchor' and @name = $anchor]" /> ... 4 </xsl:for-each> -- By the way can remove line 2 and just rewrite line 3 to...? 3 <xsl:variable name="anchor-node" select="$external-doc//node()[name() = 'my-anchor' and @name = @anchor]" /> Best regards, Robert
|
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








