Subject: RE: [xsl] sorting by position? From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx> Date: Thu, 13 Jun 2002 12:02:05 +0100 |
Sure: <xsl:sort select="column[$chosen]"/> Michael Kay Software AG home: Michael.H.Kay@xxxxxxxxxxxx work: Michael.Kay@xxxxxxxxxxxxxx > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of > Stuart Zakon > Sent: 13 June 2002 03:47 > To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx > Subject: [xsl] sorting by position? > > > Is there any way to sort using <xsl:sort> for a positional > sort? For instance, given the following XML for a generic > table, is there a way to specify to sort the rows by the > first or second column, depending on which column is chosen > to sort by? > > <?xml version="1.0" encoding="ISO-8859-1"?> > <table> > <row> > <column>x</column> > <column>b</column> > </row> > <row> > <column>z</column> > <column>c</column> > </row> > <row> > <column>y</column> > <column>a</column> > </row> > </table> > > > Thanks, > Stuart Zakon > Objects by Design > > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] sorting by position?, Joerg Heinicke | Thread | [xsl] get the max-value, Pfitzner, Jan |
[xsl] XPATH as parameter, Corneanu Dan | Date | RE: [xsl] XPATH as parameter, Michael Kay |
Month |