W3C home > Mailing lists > Public > xproc-dev@w3.org > December 2010

Re: Custom XML formatting?

From: Andrew Welch <andrew.j.welch@gmail.com>
Date: Sun, 19 Dec 2010 16:22:11 +0000
Message-ID: <AANLkTikXmNap0zoB4eMpkQ+F=RnWs05adKcp3ZGYHMB0@mail.gmail.com>
To: Tony Rogers <tony@gonk.net>
Cc: XProc Dev <xproc-dev@w3.org>
> 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:


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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:03:07 UTC