[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Easy way to identify node type?

Subject: Re: Easy way to identify node type?
From: yguaba@xxxxxxxxxxxx
Date: Fri, 05 Dec 2003 17:24:55 -0200
identify node in dom
On 4 Dec 2003 at 16:31, Haydn Flower wrote:

> Yes, You've gotta use an XPath type statement which use expressions
> (kind of similar to perl expressions but different), give an example of
> your input xml and which elements you want matched. 

Actually, I don't want to match specific elements (I could do that 
with <xsl:when test="local-name() = 'element_1' or local-name() = 
'element_2 or local-name() = 'element_n''"> or just simply write 
different templates for each different element). What I would like to 
be able to do is output different stuff depending on whether the node 
being processed is a text node, or an element node, or a processing 
instruction node etc. Any ideas? :-)

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.