Subject: Re: [xsl] default template ? From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Mon, 27 Sep 2010 11:52:53 -0400 |
I was wondering how an XSL Stylesheet can be done to treat all nodes in an XML file if a template doesn't fit. I mean, if an xml is like <Row> <A>A value</A> <B>B value</B> <C>C value</C> </Row>
If I get one template for treating <A> nodes (match = "A"), and one for <B> nodes, I would like to have some kind of fall back template for the C nodes which don't have a specific one. Is this possible ?
<xsl:template match="*"> ... any element not matched elsewhere ... </xsl:template>
-- XSLT/XQuery training: after http://XMLPrague.cz 2011-03-28/04-01 Vote for your XML training: http://www.CraneSoftwrights.com/s/i/ Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] default template ?, Andrew Welch | Thread | RE: [xsl] default template ?, Fabien Tillier |
RE: [xsl] default template ?, Fabien Tillier | Date | RE: [xsl] default template ?, Fabien Tillier |
Month |