Subject: Re: [xsl] Priority issue with select="node()" From: "Andrew Campbell andrew.campbell@xxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Thu, 21 Jul 2016 15:29:16 -0000 |
That is odd. I will poke around in my environment here and see what I can find. On 21/07/2016, 16:19, "G. Ken Holman g.ken.holman@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: After my hasty answer, Andrew, I looked at your email again and thought that, indeed, there should be no difference. So I executed your code with the combined template, and I do, in fact, get the same result. Results below with Saxon. Did you invoke the wrong files, perhaps? . . . . . Ken t:\ftemp>type andrew.xml <resource> <method href="ref1"/> <method href="ref2"/> <method href="ref3"/> </resource> t:\ftemp>xslt2 andrew.xml andrew.xsl <?xml version="1.0" encoding="UTF-8"?><resource> <method href="ref1"/> </resource> t:\ftemp>type andrew.xsl <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > <xsl:template match=" / | @* | method[@href = 'ref1'] | node() "> <xsl:call-template name="identity"/> </xsl:template> <xsl:template match="method"/> <xsl:template name="identity"> <xsl:copy> <xsl:apply-templates select="@* | node() " /> </xsl:copy> </xsl:template> </xsl:stylesheet> t:\ftemp> -- Check our site for free XML, XSLT, XSL-FO and UBL developer resources | Streaming hands-on XSLT/XPath 2 training @US$45: http://goo.gl/Dd9qBK | Crane Softwrights Ltd. _ _ _ _ _ _ http://www.CraneSoftwrights.com/s/ | G Ken Holman _ _ _ _ _ _ _ _ _ _ mailto:gkholman@xxxxxxxxxxxxxxxxxxxx | Google+ blog _ _ _ _ _ http://plus.google.com/+GKenHolman-Crane/posts | Legal business disclaimers: _ _ http://www.CraneSoftwrights.com/legal | --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Priority issue with selec, G. Ken Holman g.ken. | Thread | Re: [xsl] Priority issue with selec, Andrew Campbell andr |
Re: [xsl] Priority issue with selec, G. Ken Holman g.ken. | Date | Re: [xsl] Priority issue with selec, Andrew Campbell andr |
Month |