[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Integrated sort using different elements
> 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/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|