Subject: Re: [xsl] Match nodes searching for attributes in children|
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Sun, 17 Jan 2010 22:21:33 -0500
Hello Ken and Gerrit,
thanks for your debugging tips. I was making the experiments in a small test file, not in my development files, so I know there are no mistakes nor missing namespace prefixes in elements. One curious thing though, I noticed that my xslt processor (xalan 2.7.1 and the one included in java) are not able to match attributes. Other people claim something like this is possible:
<xsl:template match="@attr"> or even: <xsl:template match="@*">
Even the default template will not match them. An empty stylesheet will copy only the text elements.
It will be difficult for me to get help if the processors behave differently.
-- UBL and Code List training: Copenhagen, Denmark 2010-02-08/10 XSLT/XQuery/XPath training after http://XMLPrague.cz 2010-03-15/19 XSLT/XQuery/XPath training: San Carlos, California 2010-04-26/30 Vote for your XML training: http://www.CraneSoftwrights.com/s/i/ Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video Video lesson: http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18 Video overview: http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18 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