Well, works now. Certain it was not doing this sort correctly before; probably non-ml collation was being tested. thx, though!
let $xslt := <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" version="2.0"> <xsl:template match="/"> <xsl:for-each select="('1','0','2','21','123abc', 'abc123', 'abc','123', '12', 'zurich', 'Zürich' )"> <xsl:sort select="." order="ascending" collation="http://marklogic.com/collation/en/MO"/> <xsl:value-of select="."/> <xsl:text> </xsl:text> </xsl:for-each> </xsl:template> </xsl:stylesheet> let $doc := document {<n>x</n>} return xdmp:xslt-eval($xslt, $doc) --- On Fri, 8/5/11, [email protected] <[email protected]> wrote: > From: [email protected] > <[email protected]> > Subject: General Digest, Vol 86, Issue 10 > To: [email protected] > Date: Friday, August 5, 2011, 12:00 PM > Send General mailing list submissions > to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://developer.marklogic.com/mailman/listinfo/general > or, via email, send a message with subject or body 'help' > to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more > specific > than "Re: Contents of General digest..." > > > Today's Topics: > > 1. Re: collation sort xslt (Geert > Josten) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 5 Aug 2011 10:34:05 +0200 > From: Geert Josten <[email protected]> > Subject: Re: [MarkLogic Dev General] collation sort xslt > To: General MarkLogic Developer Discussion > <[email protected]> > Message-ID: > <b26c615f8546a84c81165a7bc8be61a020f4ce2...@exmbxc01.ms-hosting.nl> > Content-Type: text/plain; charset="us-ascii" > > Hi Paul, > > Apparently you didn't. ;-) > > Can you share the relevant parts of your code, and a sample > of your test data? > > Kind regards, > Geert > > -----Oorspronkelijk bericht----- > Van: [email protected] > [mailto:[email protected]] > Namens Paul M > Verzonden: donderdag 4 augustus 2011 19:55 > Aan: [email protected] > Onderwerp: [MarkLogic Dev General] collation sort xslt > > Tried a few examples of sorting in an xslt using ML > collations. Anyone had success sorting with any defined > collation? > > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general > > > ------------------------------ > > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general > > > End of General Digest, Vol 86, Issue 10 > *************************************** > _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
