Re: Custom XML formatting?

> What if I want to specify certain elements have 1 attribute per line each?
> What if I want to apply that to certain elements but not others?
> What if I want to apply it to an element only SOMETIMES—depending on
> arbitrary conditions?

Saxon has a few extensions for that sort of thing...
saxon:indent-spaces, saxon:supress-indentation etc.

If you need absolute control, you can supply Saxon with your own class
to handle the serialisation.

You might also want to check out the new serialisation spec to see
what new features are being added:

http://www.w3.org/TR/xslt-xquery-serialization-30/


-- 
Andrew Welch
http://andrewjwelch.com

Received on Sunday, 19 December 2010 16:22:45 UTC