This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

dynamically generate stylesheet parts


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]