This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Re: Finding out the existence of a node
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Cc: "'Oleg Tkachenko'" <olegt at multiconn dot com>
- Date: Mon, 1 Jul 2002 15:29:29 +0100
- Subject: RE: Re: [xsl] Finding out the existence of a node
- Reply-to: xsl-list at lists dot mulberrytech dot com
> Thanks, that works great. And I've a problem when I say
>
> <xsl:apply-templates select="document($source)//$node_name"/>
>
> Can I do this?
>
No. If the value of $node-name is "item", then your expression is
equivalent to
document($source)//"item"
which fails because a path expression can only include node-sets, not
strings.
Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list