dmarston 2003/03/03 14:42:40 Added: test/tests/conf/position position113.xsl position112.xsl position113.xml position112.xml Log: New test ideas from Dimitry to close a testing loophole. See Bugzilla #17400. Revision Changes Path 1.1 xml-xalan/test/tests/conf/position/position113.xsl Index: position113.xsl =================================================================== <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <!-- FileName: position113 --> <!-- Document: http://www.w3.org/TR/xpath --> <!-- DocVersion: 19991116 --> <!-- Section: 4.1 --> <!-- Creator: David Marston, from an idea by Dimitry Voytenko --> <!-- Purpose: Test last() in double predicate on a reverse axis. Second predicate does nothing, but can fool optimizations. --> <xsl:output method="xml" encoding="UTF-8" indent="no"/> <xsl:template match="/"> <out> <xsl:for-each select="//center/ancestor::*[position() != last()][true()]"> <xsl:value-of select="name()"/> <xsl:text>, </xsl:text> </xsl:for-each> </out> </xsl:template> </xsl:stylesheet> 1.1 xml-xalan/test/tests/conf/position/position112.xsl Index: position112.xsl =================================================================== <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <!-- FileName: position112 --> <!-- Document: http://www.w3.org/TR/xpath --> <!-- DocVersion: 19991116 --> <!-- Section: 4.1 --> <!-- Creator: David Marston, from an idea by Dimitry Voytenko --> <!-- Purpose: Test last() in double predicate. Second predicate does nothing, but can fool optimizations. --> <xsl:output method="xml" encoding="UTF-8" indent="no"/> <xsl:template match="/"> <out> <xsl:for-each select="//center/*[position() != last()][true()]"> <xsl:value-of select="name()"/> <xsl:text>, </xsl:text> </xsl:for-each> </out> </xsl:template> </xsl:stylesheet> 1.1 xml-xalan/test/tests/conf/position/position113.xml Index: position113.xml =================================================================== <?xml version="1.0" encoding="UTF-8"?> <far-north> <north-north-west1/> <north-north-west2/> <north> <near-north> <far-west/> <west/> <near-west/> <center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3"> <near-south-west/> <near-south> <south> <far-south/> </south> </near-south> <near-south-east/> </center> <near-east/> <east/> <far-east/> </near-north> </north> <north-north-east1/> <north-north-east2/> </far-north> 1.1 xml-xalan/test/tests/conf/position/position112.xml Index: position112.xml =================================================================== <?xml version="1.0" encoding="UTF-8"?> <far-north> <north-north-west1/> <north-north-west2/> <north> <near-north> <far-west/> <west/> <near-west/> <center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3"> <near-south-west/> <near-south> <south> <far-south/> </south> </near-south> <near-south-east/> </center> <near-east/> <east/> <far-east/> </near-north> </north> <north-north-east1/> <north-north-east2/> </far-north>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]