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 2002/07/17 13:15:18 UTC

DO NOT REPLY [Bug 10889] New: - don't work after

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10889>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10889

<xsl:sort select="@..."> don't work after  <xsl:for-each select="id(@...)">

           Summary: <xsl:sort select="@..."> don't work after  <xsl:for-each
                    select="id(@...)">
           Product: XalanJ2
           Version: 2.4Dx
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Xalan
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: dimich_1@gmx.de


Dear Developer.

I have a problem with the sequence of expressions:

<xsl:for-each select="id(@...)">
<xsl:sort select="@..."/>
...
</xsl:for-each>

namely output of <xsl:sort> isn't correct.

For example this part of a XML-File.
It is generated from one workflow tool and describes a hierarchy of activity in 
a workflow.
The Attribute Action.key is a number of activity and comes of workflow tool.

...
<iemStateDescriptions State.name="ABC" State.ID="ID162.0.2" Action.key=".2.1" 
State.slave="ID201.0.2 ID223.0.2 

ID224.0.2 ID225.0.2 ID227.0.2 ID420.0.2 ID537.0.2 ID534.0.2 ID772.0.2 
ID514.0.2" State.master="ID389.0.2">
...
<iemStateDescriptions State.name="XYZ" State.ID="ID201.0.2" Action.key=".2.1.3" 
State.master="ID162.0.2"/>
...

I would like to now copy the hierarchy of activity recursively in the HTML:
...
<xsl:value-of select="@Action.key"/>
<xsl:value-of select="@State.name"/>
<xsl:for-each select="id(@State.slave)">
<xsl:sort select="@Action.key"/>
<xsl:call-template name="itself"/>
</xsl:for-each>
...

I tried it out with xalan-j_2_3_1 and xalan-j_2_4_D1 and output was false:

2.3 State Name
2.5 State Name
2.7 State Name 
2.1 ABC 
2.1.3 XYZ 
2.1.2 State Name 
2.1.1 State Name 
2.4 State Name 
2.9 State Name 
2.6 State Name 
2.2 State Name 
2.8 State Name

But with old xalan.jar file from 01.03.2002 is the output correct:  

2.1 ABC 
2.1.1 State Name 
2.1.2 State Name 
2.1.3 XYZ 
2.2 State Name 
2.3 State Name 
2.4 State Name 
2.5 State Name 
2.6 State Name 
2.7 State Name 
2.8 State Name 
2.9 State Name

Every newer xalan.jar both in xalan_j_2_3_1 and in xalan-j_2_4_D1 works not 
correct.

With best greetings

Dieter Boell