DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4804>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4804

Abbreviated XPath broken

           Summary: Abbreviated XPath broken
           Product: XalanC
           Version: 1.2.x
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: XalanC
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I have a source document:
<?xml version="1.0" encoding="iso-8859-1"?>
<A>
  <B>right
     <C>
        <B>wrong</B>
     </C>
  </B>
</A>

And a Stylesheet:
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
                version="1.0">
  <xsl:template match="//A/B">
    -<xsl:apply-templates/>
  </xsl:template>

I expected the output to be:
  -right

        wrong

Saxon does it this way. Xalan-C++ 1.2 do it this way:

  -right


  -wrong

There is an extra match of "//A/B" on "/A/B/C". Maybe the abbreviated path in 
Xalan-C++ is broken?

Reply via email to