|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] scoping inside a select statement
Why does this DWIM:
<xsl:variable name="foobar" select="@name"/> <xsl:value-of select="document('inst.xml')//*[boolean(name() = $foobar)]"/> and this doesn't: <xsl:value-of select="document('inst.xml')//*[boolean(name() = @name)]"/> ... or perhaps I should say, how do I scope @name inside a select to refer to the @name attribute of the context node outside the select, instead of whatever it's referring to here (... an attribute named @name in the context node inside the select?) Also if you're wondering about the unnecessary boolean() I've decided to use it for syntactic safety to protect myself from numeric result s;-) simon --- www.simonwoodside.com <http://ThisURLEnablesEmailToGetThroughOverzealousSpamFilters.org> 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








