Subject: [xsl] Re: Easy way to identify node type? From: yguaba@xxxxxxxxxxxx Date: Fri, 05 Dec 2003 17:24:55 -0200 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
FW: [xsl] increasing variable?, Andreas L. Delmelle | Thread | Re: [xsl] Re: Easy way to identify , G. Ken Holman |
Re:[xsl] Passing parameters to styl, Abhijit Junnare | Date | [xsl] Re: Easy way to identify node, yguaba |
Month |