Subject: Re: [xsl] dynamic sorting From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Thu, 05 Feb 2004 10:37:11 -0500 |
Imagine the following part of an xml file:
<person> <fname>Jup</fname> <lname>Nope</lname> <bday>Also</bday> ... </person
The following works perfect:
<xsl:template match="/"> <xsl:apply-templates select="person"> <xsl:sort select="person/fname"/ </xsl:apply-templates> </xsl:template>
But when I put the string "person" into a parameter named "sort", it doesn't work anymore:
<xsl:template match="/"> <xsl:param name="sort">person</xsl:param>
My goal is that the user of my xsl file can give a parameter "sort" (to his xslt parser) which defines his preferred way of sorting.
-- Public courses: sign up for one or both soon to reserve your seat! Each week: Monday-Wednesday: XSLT/XPath; Thursday-Friday: XSL-FO Washington, DC: 2004-03-15 San Francisco, CA: 2004-03-22 Hong Kong, China: 2004-05-17 Bremen, Germany: 2004-05-24 World-wide on-site corporate, government & user group XML training
G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Breast Cancer Awareness http://www.CraneSoftwrights.com/s/bc
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] dynamic sorting, David Carlisle | Thread | RE: [xsl] dynamic sorting, Peter Billen |
Re: [xsl] dynamic sorting, David Carlisle | Date | RE: [xsl] dynamic sorting, Peter Billen |
Month |