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 16:41:25 UTC

[DO NOT REPLY: Bug 3492] New: xsltc fail conf test select04 on unions in doc order

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

*** shadow/3492	Fri Sep  7 07:41:25 2001
--- shadow/3492.tmp.29199	Fri Sep  7 07:41:25 2001
***************
*** 0 ****
--- 1,121 ----
+ +============================================================================+
+ | xsltc fail conf test select04 on unions in doc order                       |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 3492                        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 is not a new problem. Our old test suite shows a diff in the expected 
+ versu obtained output. The problem is with this section of the stylesheet:
+ 
+   <xsl:apply-templates select="mi[@mi2='mi2'] | do | fa/so/@so | fa | mi/@* | re
+ | fa/@fa | do/@do"/>
+ 
+ It should produce the output
+ 
+    do-do-remi-mi1-mi2fasolatido-fa--so-:
+ 
+ But the followig comes out
+ 
+    do-do--fa-re-mi1-mi2mi-so-fasolatido
+ 
+ Here the complete details for the test.
+ 
+ Expected Output
+ ---------------
+ <?xml version="1.0" encoding="UTF-8"?>
+ <out>
+   This should come out fasolatido:
+   fasolatido
+   This should come out doremifasolatido:
+   doremifasolatido
+   This should come out do-do-remi-mi1-mi2fasolatido-fa--so-:
+   do-do-remi-mi1-mi2fasolatido-fa--so-
+   This should come out solatidoG#:
+   solatidoG#
+   This should come out relatidoABb:
+   relatidoABb
+   This should come out domitiACD:
+   domitiACD</out>
+ 
+ 
+ Obtained Output
+ ---------------
+ <?xml version="1.0" encoding="utf-8" ?>
+ <out>
+   This should come out fasolatido:
+   fasolatido
+   This should come out doremifasolatido:
+   doremifasolatido
+   This should come out do-do-remi-mi1-mi2fasolatido-fa--so-:
+   do-do--fa-re-mi1-mi2mi-so-fasolatido
+   This should come out solatidoG#:
+   solatidoG#
+   This should come out relatidoABb:
+   relatidoABb
+   This should come out domitiACD:
+   domitiACD</out>
+ 
+ select04.xsl
+ ------------
+ <?xml version="1.0"?>
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+ 
+   <!-- FileName: select04 -->
+   <!-- Document: http://www.w3.org/TR/xpath -->
+   <!-- DocVersion: 19991116 -->
+   <!-- Section: 2 -->
+   <!-- Purpose: Test of unions, returned in document order. -->
+ 
+ <xsl:template match="/">
+   <out>
+     <xsl:apply-templates/>
+   </out>
+ </xsl:template>
+ 
+ <xsl:template match="doc">
+   This should come out fasolatido:
+   <xsl:apply-templates select="fa"/>
+   This should come out doremifasolatido:
+   <xsl:apply-templates select="mi | do | fa | re"/>
+   This should come out do-do-remi-mi1-mi2fasolatido-fa--so-:
+   <xsl:apply-templates select="mi[@mi2='mi2'] | do | fa/so/@so | fa | mi/@* | re
+ | fa/@fa | do/@do"/>
+   This should come out solatidoG#:
+   <xsl:apply-templates select=".//*[@so]"/>
+   This should come out relatidoABb:
+   <xsl:apply-templates select="*//la | //Bflat | re"/>
+   This should come out domitiACD:
+   <xsl:apply-templates select="fa/../mi | Aflat/natural/la | Csharp//* | /doc/do
+ | *//ti"/>
+ </xsl:template>
+ 
+ <xsl:template match="@*">
+   <xsl:value-of select="."/>
+ </xsl:template>
+ 
+ </xsl:stylesheet> 
+ 
+ select04.xml
+ ------------
+ <?xml version="1.0"?>
+ <!-- to test xsl:process and xsl:for-each -->
+ <doc>
+   <do do="-do-">do</do>
+   <re>re</re>
+   <mi mi1="-mi1-" mi2="mi2">mi</mi>
+   <fa fa="-fa-">fa<so so="-so-">so<la>la<ti>ti</ti>do</la></so></fa>
+   <Gsharp so="so+">G#</Gsharp>
+   <Aflat><natural><la>A</la></natural>Ab</Aflat>
+   <Bflat>Bb</Bflat>
+   <Csharp><natural>C</natural>C#<doublesharp>D</doublesharp></Csharp>
+ </doc>