[xsl] Re: "Instantiating a template" ?

Subject: [xsl] Re: "Instantiating a template" ?
From: "Dimitre Novatchev" <dnovatchev@xxxxxxxxx>
Date: Mon, 1 Dec 2003 06:50:13 +0100
> 3. Is there a technique/function that will show me the type of a node (
> Element vs Attribute vs text ) at run time.

See this snippet, which builds an XPath expression for a (any kind of) node:

http://www.topxml.com/code/default.asp?p=3&id=v20010323001030

It correctly recognizes every possible type of node (all 7 of them). Of
course, one could simply matche on the different node-types, however it is
not possible to match a namespace node in XSLT 1.0.



=====
Cheers,

Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL




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


Current Thread