RE: Re: [xsl] Finding out the existence of a node

Subject: RE: Re: [xsl] Finding out the existence of a node
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Mon, 1 Jul 2002 15:29:29 +0100
> 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@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread