This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
dynamically generate stylesheet parts
- From: robert dot soesemann at web dot de
- To: xsl-list at lists dot mulberrytech dot com
- Date: Thu, 28 Mar 2002 14:34:15 +0100
- Subject: [xsl] dynamically generate stylesheet parts
- Organization: http://freemail.web.de/
- Reply-to: xsl-list at lists dot mulberrytech dot com
My XML source with a database-like table gets an URL-encoded parameter.
(e.g. ?sort=3,4,7
This parameter is just passed to the stylesheet which then converts the table into an HTML <table> and sorts its rows by the columnnumbers provided
by the parameter.
The upper example then means:
sort rows with column 3 as first key, 4 as second key and so on...
This would map to this in an XSL:
...
<xsl:sort select="column[@nr=3]" />
<xsl:sort select="column[@nr=4]" />
<xsl:sort select="column[@nr=7]" />
...
My problem is, that I don't know how many of those <xsl:sort are needed.
So I need to generate this part of my stylesheet dynamically.
Can I use <xsl-call-template> and <xsl:text> or is this not possible?
Rob
________________________________________________________________
Keine verlorenen Lotto-Quittungen, keine vergessenen Gewinne mehr!
Beim WEB.DE Lottoservice: http://tippen2.web.de/?x=13
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list