Hi, Im having some trouble getting the xsl:sort to work under Unix and was wondering if it is a potential bug in the Xalan J1 processor. Ive posted to several mailing lists, but with no replies so this is a last ditch attempt to find out whats going on. Please help. I apologise in advance if this is not the place to mail my problems with, but as a conselation, i would be more than happy to be involved with the development of any future releases. Thank you in anticipation, my problem is outlined below. Shaun Lizzio New Media Developer - www.ananova.com > Hello, > > Im can't get the <xsl:sort> tag to work under Unix. > Im trying to reverse sort a list of nodes, before processing > them using the Xalan Java 1 XSLT processor. > > The code i have used is detailed below and works when i try > it in DOS, but when i try it on a Unix server, it doesn't > work. No errors > are produced, but the order is not reversed. Both processor > versions are > identical, and the only thing that is different is the platform. > > Ide really appreciate knowing why this is so? Thanks in anticipation. > > The XSL and XML fragmemts are listed here... > > XSL FRAG: > > <!-- OUTPUT 'CHECK FOR MORE ON' KEYWORDS --> > <xsl:text>CHECK FOR MORE ON: > </xsl:text> > <xsl:for-each select="/story/nitf/head/docdata/key-list/keyword"> > > <xsl:sort select="position()" data-type="number" > order="descending"> > > <xsl:variable name="alert_name" select="@key"/> > <xsl:value-of select="@key"/> > <xsl:text>http://www.someurl.com/</xsl:text> > <xsl:choose> > <xsl:when test="string-length(//category)=0"> > <xsl:text>news</xsl:text> > </xsl:when> > <xsl:otherwise> > <xsl:value-of select="/story/properties/category"/> > </xsl:otherwise> > </xsl:choose> > <xsl:text>/index.html?keywords=</xsl:text> > <xsl:value-of select="translate($alert_name, ' ', '+')"/> > <xsl:text> > > </xsl:text> > </xsl:for-each> > > > XML frag > ... > ... > <key-list> > <keyword key="Newsflash update"/> > <keyword key="UK"/> > <keyword key="Crime"/> > <keyword key="Attacks"/> > <keyword key="Race issues"/> > </key-list> > ... > ... >
