Subject: [xsl] RE: To what extent can sorting be done? From: Dimitre Novatchev <dnovatchev@xxxxxxxxx> Date: Sun, 18 Feb 2001 00:04:26 -0800 (PST) |
Hi Kevin, > ... do I > have to write code for each column I want sorted, or does XSL allow this > itself? I haven't touched on sorting yet in XSL, but someone told me that > supposedly I can get XSL to take the same XML input and sort it by various > columns (assuming lets say a 2D table of rows/columns). Would I need a > different XSL for each column, or can I just use some <xsl:choose..> tags > to sort the data in a particular column and still use the one XSL. Any > examples (that don't require lots of your time) would be great either in > XSL, or how it is possible. You can use something like the following in your table-generating XSLT code: <xsl:sort select="*[name()= $columnName]"/> DImitre Novatchev. __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] RE: MSXML and name() on n, Mike Brown | Thread | RE: [xsl] news, Rosa I-Ting Cheng |
Re: [xsl] RE: MSXML and name() on n, Mike Brown | Date | Re: [xsl] Re: Re: Re: Reliance on i, Jeni Tennison |
Month |