xsl-list
[Top] [All Lists]

Re: [xsl] Priority issue with select="node()"

2016-07-22 10:08:31
Ignore previous reply.

I can confirm that this is a bug that was present in Saxon 9.6.0.3 thru 
9.6.0.8, and not present in 9.6.0.9 or in any 9.5 or 9.7 release. Having said 
that, I haven't identified with certainty what bug it actually is. 

My suspicion is that it was fixed in the course of fixing

https://saxonica.plan.io/issues/2577

even though that bug doesn't describe the current symptoms, the logic error in 
the code might well have had other symptoms that we didn't know about at the 
time.

Michael Kay
Saxonica


On 22 Jul 2016, at 15:30, Michael Kay mike(_at_)saxonica(_dot_)com 
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:

I'm currently investigating. At present I seem to be getting your "incorrect" 
output in 9.7.0.7.

Michael Kay
Saxonica

On 22 Jul 2016, at 13:36, Andrew Campbell 
andrew(_dot_)campbell(_at_)synchronoss(_dot_)com 
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:

I’ve got it working now. I was using SaxonHE9-6-0-7J. Upgrading to 
SaxonHE9-7-0-7J

Not sure if I should be pleased it was an easy fix or embarrassed I didn’t 
think of that first!

Thanks for the assistance.

On 21/07/2016, 16:29, "Andrew Campbell 
andrew(_dot_)campbell(_at_)synchronoss(_dot_)com" 
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:

  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(_dot_)ken(_dot_)holman(_at_)gmail(_dot_)com" 
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> 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(_at_)CraneSoftwrights(_dot_)com |

      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












--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>