xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor