[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Sorting problem with Xalan 1.0.0

Subject: RE: Sorting problem with Xalan 1.0.0
From: "Justin Ludwig" <justinl@xxxxxxxxxxxxxxx>
Date: Wed, 5 Apr 2000 10:25:23 -0700
justin ludwig
	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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.