[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Easy way to identify node type?
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|