Subject: Re: [xsl] scoping inside a select statement From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Wed, 12 Feb 2003 18:32:51 -0500 |
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?)
Cheers, Wendell
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;-)
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] scoping inside a select s, S Woodside | Thread | [xsl] Sub: returning unique node i, Sai, Mukundan (IE10) |
RE: [xsl] scoping inside a select s, Wes Kubo | Date | Re: [xsl] scoping inside a select s, S Woodside |
Month |