Saxon allows to set a default collation before applying a tranbsformation : with the java API one must set the 'DEFAULT_COLLATION' feature in
order to do so....
As an example with the cli :
Code: Select all
java -jar WEB-INF/lib/saxon9he.jar --defaultCollation:'http://saxon.sf.net/collation?lang=en-gb;case-order=upper-first' ./reportXML.xml ./testcollation2.xsl
sorts the sequence
as
thus not separating upper/lower letters.
Note that this imperial
collation (en-gb) gives also a better result than the "unicode codepoint" with French diacritics : sequence
Code: Select all
('e','A','f', 'é', 'b', 'É', 'c', 'E','a')
is sorted as
See the attached file for tests ...
J.-M.
You do not have the required permissions to view the files attached to this post.