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

dynamically generate stylesheet parts

Subject: dynamically generate stylesheet parts
From: robert.soesemann@xxxxxx
Date: Thu, 28 Mar 2002 14:34:15 +0100
generate stylesheet
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


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.