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/09/07 21:03:46 UTC

[DO NOT REPLY: Bug 3502] New: xsltc fails conf test select71 union using overlapping node sets

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=3502

*** shadow/3502	Fri Sep  7 12:03:46 2001
--- shadow/3502.tmp.250	Fri Sep  7 12:03:46 2001
***************
*** 0 ****
--- 1,148 ----
+ +============================================================================+
+ | xsltc fails conf test select71 union using overlapping node sets           |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 3502                        Product: XalanJ2                 |
+ |       Status: NEW                         Version: 2.0.0                   |
+ |   Resolution:                            Platform: Sun                     |
+ |     Severity: Normal                   OS/Version: Solaris                 |
+ |     Priority: Other                     Component: org.apache.xalan.xsltc  |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: xalan-dev@xml.apache.org                                     |
+ |  Reported By: tamiro@east.sun.com                                          |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ This test is not too atomic. It has a lot going on, so this failure may be due
+ to an already reported bug. But I wanted to post the problem, in case it does
+ not go away after other bugs are fixed. Other than innocuous extra line feeds
+ there are some real differences in the output that reflect differnences in the 
+ node set selected by the Xpath expressions.
+ 
+ Expected Output
+ ---------------
+ <?xml version="1.0" encoding="UTF-8"?>
+ <out>
+ <dup1/>
+ <dup2/>
+ <south/>
+ <east/>
+ <west/>,
+ <dup1/>
+ <dup2/>
+ <south/>
+ <east/>
+ <west/>,
+ <dup1/>
+ <dup2/>
+ <south/>
+ <east/>
+ <west/>,
+ <dup1/>
+ <dup2/>
+ <south/>
+ <east/>
+ <west/>
+ </out>
+ 
+ 
+ 
+ Running XSLTC with Xerces Parser on select71
+ <?xml version="1.0" encoding="utf-8" ?>
+ <out>
+ 
+ 
+   <dup1/>
+ 
+   <dup2/>
+ 
+   <south/>
+ 
+   <east/>
+ 
+   <west/>
+         ,
+ 
+ 
+   <dup1/>
+ 
+   <dup2/>
+ 
+   <south/>
+ 
+   <east/>
+ 
+   <west/>
+         ,
+ 
+   <south/>,
+ 
+   <south/>
+ </out>
+ 
+ select71.xsl
+ ------------
+ <?xml version="1.0"?>
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+ <xsl:output indent="yes"/>
+ 
+   <!-- FileName:  select71 -->
+   <!-- Document: http://www.w3.org/TR/xpath -->
+   <!-- DocVersion: 19991116 -->
+   <!-- Section: 3.3 Nodesets. -->
+   <!-- Purpose: test union operator using overlapping node-sets. Results should
+        always be output in doc order regardless of order of select attribute.
+ -->
+   <!-- Creator: Paul Dick -->
+ 
+ <xsl:template match="directions">
+ <out><xsl:text>
+ </xsl:text>
+ <xsl:copy-of select="north/* | north/dup1 | north/dup2"/>,
+ <xsl:copy-of select="north/dup2 | north/dup1 | north/*"/>,
+ <xsl:copy-of select="//north/dup2 | south/preceding-sibling[4] | north/dup1 |
+ north/*"/>,
+ <xsl:copy-of select="north/dup2 |
+ document('select71.xml')/south/preceding-sibling[4] | north/*"/>
+ </out>
+ </xsl:template>
+ 
+ </xsl:stylesheet>
+ 
+ 
+ select71.xml
+ ------------
+ <?xml version="1.0"?> 
+ <directions>
+         <north>
+                 <dup1/>
+                 <dup2/>
+                 <south/>
+                 <east/>
+                 <west/>
+         </north>
+         <north1/>
+         <north2>
+                 <dup1/>
+                 <dup2/>
+                 <dup3/>
+                 <dup4/>
+         </north2>
+         <north3>
+                 <dup1/>
+                 <dup2/>
+                 <south-north/>
+                 <east-north/>
+                 <west-north/>
+         </north3>
+         <south/>
+         <east>
+                 <dup1/>
+                 <dup2/>
+                 <north-east/>
+                 <south-east/>
+                 <west-east/>
+         </east>
+         <west/>
+ </directions>