|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Text Table with sorting
David!
> Can you use a node-set extension function? if so you would probably
> be best to sort the things first then assemble as in the following,
> which I'll write using document('') hack in case you can't use an
> extension function
You were obviously up too late last night (or have other things on
your mind, perhaps... ;) You *know* you can't use the document('')
hack with variables that are computed dynamically. If you had:
> <xsl:variable name="col1">
> <xsl:for-each select="$set1">
> <xsl:sort select="@refDate"/>
> <xsl:copy-of select="."/>
> </xsl:for-each>
> </xsl:variable>
and did:
> <xsl:variable name="sorted1" select="document('')/*/xsl:variable[@name='col1']"/>
then $sorted1 would hold the <xsl:variable> element above, which has a
<xsl:for-each> child, which isn't what you want at all...
Cheers,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
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








