Subject: Re: [xsl] Saxon node matching order From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Fri, 28 Nov 2008 10:03:28 -0500 |
I have a question about how Saxon chooses which node to match next.
I have some XML that looks a bit like this:
<x> <y> <z>Peter</z> </y> <z> </z> <y> <z>Jones</> </y> </x>
What I'm trying to achieve is the follow:
<x> <z>Peter</z> <z> </z> <z>Jones</> </x>
With the code below:
<xsl:template match="x" > <xsl:apply-templates select="y|z"/> </xsl:template>
<xsl:template match="x" > <xsl:apply-templates select=".//z"/> </xsl:template>
-- Upcoming XSLT/XSL-FO, UBL and code list hands-on training classes: : Sydney, AU 2009-01/02; Brussels, BE 2009-03; Prague, CZ 2009-03 Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video Video sample lesson: http://www.youtube.com/watch?v=PrNjJCh7Ppg Video course overview: http://www.youtube.com/watch?v=VTiodiij6gE G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ 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] Saxon node matching order, Wendell Piez | Thread | RE: [xsl] Saxon node matching order, Michael Kay |
Re: [xsl] Saxon node matching order, Florent Georges | Date | Re: [xsl] Saxon node matching order, Andrew Welch |
Month |