Created
October 29, 2015 17:02
-
-
Save paregorios/58b186811d1ef1b11497 to your computer and use it in GitHub Desktop.
Define custom collation in XSL 2 for Saxon 9.6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<xsl:variable | |
name="mixed-collation" | |
select="concat('http://saxon.sf.net/collation?rules=', | |
encode-for-uri('< 0 < 1 < 2 < 3 < 4 < 5 < 6 < 7 < 8 < 9 < a,A < b,B < c,C < d,D < e,E < f,F < g,G < h,H < i,I < j,J < k,K < l,L < m,M < n,N < o,O < p,P < q,Q < r,R < s,S < t,T < u,U < v,V < w,W < x,X < y,Y < z,Z & A = Á & A = Ä & A = Ẵ & A = Ằ & C = Ç & D = Đ & E = É & E = Ễ & O = Ö & a = à & a = á & a = â & a = ä & ae = æ & c = ç & e = è & e = é & e = ê & i = í & i = î & i = ï & n = ñ & o = ó & o = ô & o = ö & o = ø & u = û & u = ü & c = č & e = ē & g = ğ & i = ĭ & i = İ & i = ı & l = ł & n = ń & o = ō & s = ś & s = ş & S = Š & s = š & H = Ḥ & h = ḥ & H = Ḫ & h = ḫ & K = Ḳ & k = ḳ & s = ṣ & T = Ṭ & t = ṭ & v = ṿ & z = ẓ'))"/> | |
<xsl:for-each select="*"> | |
<xsl:sort select="." collation="{$mixed-collation}"/> | |
<!-- do something useful here --> | |
</xsl:for-each> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment