Subject: RE: [xsl] Integrated sort using different elements From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Thu, 19 Feb 2009 15:47:38 -0000 |
> In XSLT 2.0, choose the first item in a sequence of many > items, priority indicated by the order of your sequence: > > <xsl:sort select=" > ( monogr/author, analytic/author, monogr/editor, > monogr/title )[1]"/> > > In XSLT 1.0 you might do something along the lines of: > > <xsl:sort select=" > monogr/author | > self::*[not(monogr/author)]/analytic/author | > self::*[not(monogr/author | analytic/author)]/monogr/editor | > self::*[not(monogr/author | analytic/author | > monogr/editor)]/monogr/title"/> > Would it work to sort on the concatenation? - <xsl:sort select="concat(monogr/author, analytic/author, monogr/editor, monogr/title"/> Michael Kay http://www.saxonica.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Integrated sort using dif, G. Ken Holman | Thread | [xsl] Identity Transform losing spe, Karl Stubsjoen |
RE: [xsl] pass variables to next fo, Michael Kay | Date | RE: [xsl] Integrated sort using dif, Michael Kay |
Month |