You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2001/11/12 11:35:52 UTC
DO NOT REPLY [Bug 4804] New: -
Abbreviated XPath broken
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: xalan-dev@xml.apache.org
ReportedBy: floerke@doctronic.de
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?