PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL BE LOST SOMEWHERE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3401 *** shadow/3401 Tue Sep 4 07:03:09 2001 --- shadow/3401.tmp.22519 Tue Sep 4 07:03:09 2001 *************** *** 0 **** --- 1,91 ---- + +============================================================================+ + | xsltc fails conf tests match17-26 on compound predicates | + +----------------------------------------------------------------------------+ + | Bug #: 3401 Product: XalanJ2 | + | Status: NEW Version: CurrentCVS | + | Resolution: Platform: All | + | Severity: Major OS/Version: All | + | Priority: Other Component: org.apache.xalan.xsltc | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + These tests have match patterns such as + + match="foo[2][@attr2='ok']" + + and XSLTC is not applying the template to the correct + set of nodes. + + Here's the details for match17 that shows the problem + + Expected Output + --------------- + <?xml version="1.0" encoding="UTF-8"?> + <out>12 132 </out> + + + Obtained Ouput + -------------- + <?xml version="1.0" encoding="utf-8" ?> + <out>1 </out> + + match17.xsl + ----------- + <?xml version="1.0"?> + <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> + + <!-- FileName: MATCH17 --> + <!-- Document: http://www.w3.org/TR/xslt --> + <!-- DocVersion: 19991116 --> + <!-- Section: 5.2 --> + <!-- Creator: David Marston --> + <!-- Purpose: Test of 2 predicates, first one being positional. --> + + <xsl:template match="doc"> + <out> + <xsl:apply-templates/> + </out> + </xsl:template> + + <xsl:template match="foo[2][@att2='ok']"> + <xsl:value-of select="@spot"/> + <xsl:text> </xsl:text> + </xsl:template> + + <xsl:template match="text()"/><!-- suppress built-in template for text --> + + </xsl:stylesheet> + + match17.xml + ----------- + <?xml version="1.0"?> + <doc> + <foo att1="c" att2="ok" spot="1"> + <foo att1="b" att2="ok" spot="11"> + <foo att1="a" att2="no" spot="111"> + <baz att1="wrong" spot="1110"/> + </foo> + <foo att1="c" att2="no" spot="112"> + <baz att1="wrong" spot="1120"/> + </foo> + </foo> + <foo att1="d" att2="ok" spot="12"> + <foo att1="b" att2="ok" spot="121"> + <baz att1="wrong" spot="1210"/> + </foo> + </foo> + <foo att1="b" att2="no" spot="13"> + <foo att1="ok" att2="b" spot="131"> + <baz att1="wrong" spot="1310"/> + </foo> + <foo att1="c" att2="ok" spot="132"> + <baz att1="wrong" spot="1320"/> + </foo> + </foo> + </foo> + </doc>
