xsl-list
[Top] [All Lists]

Re: "Instantiating a template" ?

2003-11-30 22:50:13
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



<Prev in Thread] Current Thread [Next in Thread>