VinyJones created XALANJ-2559: --------------------------------- Summary: XLST XPath condition on preceding-sibling returns more results that if there is any condition Key: XALANJ-2559 URL: https://issues.apache.org/jira/browse/XALANJ-2559 Project: XalanJ2 Issue Type: Bug Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects. Anybody can view the issue.) Components: XPath-API, XSLTC Affects Versions: 2.7, 2.7.1 Environment: #---- BEGIN writeEnvironmentReport($Revision: 1.10 $): Useful stuff found: ---- java.version=1.7.0_03 #---- BEGIN Listing XML-related jars in: foundclasses.java.class.path ---- dom.jar-path=L:\Document\Prog\java\jar\saxon-9.1.0.8-dom.jar dom.jar-apparent.version=dom.jar present-unknown-version #----- END Listing XML-related jars in: foundclasses.java.class.path ----- version.xalan2x=not-present version.JAXP=1.4 java.ext.dirs=B:\Program Files\Java\jdk1.7.0_03\jre\lib\ext;B:\Windows\Sun\Java\lib\ext version.SAX=2.0 version.crimson=not-present java.class.path=L:\Document\Prog\java\jar\jna.jar;L:\Document\Prog\java\jar\platform.jar;L:\Document\Prog\java\jar\commons-io-2.4.jar;L:\Document\Prog\java\jar\commons-codec-1.6.jar;L:\Document\Prog\java\jar\poi-3.8-20120326.jar;L:\Document\Prog\java\jar\xstream-1.4.3.jar;L:\Document\Prog\java\jar\poi-scratchpad-3.8-20120326.jar;L:\Document\Prog\java\jar\saxon-9.1.0.8.jar;L:\Document\Prog\java\jar\saxon-9.1.0.8-dom.jar;L:\Document\Prog\java\Tests\build\classes version.ant=not-present sun.boot.class.path=B:\Program Files\Java\jdk1.7.0_03\jre\lib\resources.jar;B:\Program Files\Java\jdk1.7.0_03\jre\lib\rt.jar;B:\Program Files\Java\jdk1.7.0_03\jre\lib\sunrsasign.jar;B:\Program Files\Java\jdk1.7.0_03\jre\lib\jsse.jar;B:\Program Files\Java\jdk1.7.0_03\jre\lib\jce.jar;B:\Program Files\Java\jdk1.7.0_03\jre\lib\charsets.jar;B:\Program Files\Java\jdk1.7.0_03\jre\classes version.DOM=3.0 version.xalan1=not-present version.xalan2_2=Xalan Java 2.7.0 version.xerces2=Xerces-J 2.7.1 version.xerces1=not-present #----- END writeEnvironmentReport: Useful properties found: ----- # YAHOO! Your environment seems to be OK. Reporter: VinyJones Assignee: Steven J. Hathaway
See the two followed paths <xsl:apply-templates select="html/body/table" /> <xsl:apply-templates select="html/body/table[preceding-sibling::h2[1]='Feuil1']" /> When the second line actual match something then the set returned is larger that the one return by the first line. (actual it looks like it match "htmt/body/*" xml Source are like : <body> <h2>Feuil1</h2> <table/> <h2>Feuil2</h2> <h2>Feuil3</h2> </body> select="html/body/table" // process only table node : OK select="html/body/table[preceding-sibling::h2[1]='Feu']" // process any node: OK select="html/body/table[preceding-sibling::h2[1]='Feuil1']" // process all body childnode : FAILURE -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: xalan-dev-unsubscr...@xml.apache.org For additional commands, e-mail: xalan-dev-h...@xml.apache.org