Home › Forums › XMetaL Tips and Tricks › Script Example: Sort Lowercase CALS Tables (DITA, DocBook, etc) › Reply To: Script Example: Sort Lowercase CALS Tables (DITA, DocBook, etc)
Reply to: Script Example: Sort Lowercase CALS Tables (DITA, DocBook, etc)September 22, 2009 at 9:33 pm
I like the xslt approach very much because it would be easy to create variants on this macro to transform other structures in ways that would be difficult or impossible using JScript and DOM, but the entity thing has to be addressed. I think Option 1 would be easy and would take care of most of the situations I would need it for. I'll take a stab at that and let you know how it goes. For Option 2.a. I would need help since I wouldn't know how to capture the DOCTYPE (not just the public and system identifiers but also the locally declared entities) as a string.
Even better would be to use Saxon 9 to do the xslt because then you could use xslt 2.0 and much more interesting things. But I have no idea how you'd go about doing that.