This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Re: Finding out the existence of a node


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]