Subject: Re: [xsl] Integrated sort using different elements From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Thu, 19 Feb 2009 11:25:51 -0500 |
I'm using 2.0 (sorry, I should've mentioned that), so I'll try Michael's solution and let you know how it goes...
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]"/>
Would it work to sort on the concatenation? -
<xsl:sort select="concat(monogr/author, analytic/author, monogr/editor, monogr/title"/>
<biblStruct id="b1"> <monogr> <author>abc</author> ... <analytic> <author>xyz</author> ... <biblStruct id="b2"> <monogr> <author>abcdef</author>
-- Upcoming hands-on XQuery, XSLT, UBL & code list training classes: Brussels, BE 2009-03; Prague, CZ 2009-03, http://www.xmlprague.cz Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video Video lesson: http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18 Video overview: http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18 G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Integrated sort using dif, Houghton,Andrew | Thread | Re: [xsl] Integrated sort using dif, Quinn Dombrowski |
RE: [xsl] Integrated sort using dif, Houghton,Andrew | Date | Re: [xsl] XSL-FO: Background text s, Florent Georges |
Month |