[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] From a string to node-set


Subject: RE: [xsl] From a string to node-set
From: Jarno.Elovirta@xxxxxxxxx
Date: Fri, 29 Aug 2003 08:43:21 +0300

Hi,

> At this moment I can only get string and pass it into
> the template. How can I test if an element by that
> name exists?

  *[name() = $pName]

or

  *[local-name() = $pName]

See the XPath spec for the difference between name() and local-name() functions.

Cheers,

Jarno

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



Current Thread
Keywords