|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Sorting problem with Xalan 1.0.0
To get back to the original question, regarding whether the
following is legal in Xalan
<xsl:sort select="*[local-name()=string($sortby)]"
order="{$orderby}" />
Xalan requires the order attribute value to be a literal
string. It's a know feature; I've heard that there are no
plans to change it to conform to the W3C spec. If you're
going to use Xalan, you'll probably have to utilize David
C's <xsl:choose> solution.
To provide an incomplete answer to the follow-up question,
regarding whether the following is legal in Xalan
<xsl:sort select="*[local-name()=string($sortby)]" />
I've heard that Xalan has some scoping issues that make it
unable to resolve variables within a <xsl:sort> that have
been declared outside of the enclosing <xsl:for-each>
or<xsl:apply-templates>. I don't know how you'd get around
it. You might want to take it up on an apache mailing list
<http://xml.apache.org/mail.html> . . . nevermind, I see
that you already have.
Justin
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








