RE: Outputting nicely formatted markup

Tony,

> Am I asking the impossible?

Quite possibly yes.

The way indentation is carried-out, with respect to XProc, is very much implementation dependant, especially at the level that you're describing.

If your need for control of mark-up indentation is that great then you may be forced to create your own custom step that applies your desired serialization options and writes the result to the file-system. You could 'embrace and extend' the p:store step (but in a new namespace) that adds your own options for finer control of indentation (a bit like the things that Tidy allows you to do).


Regards

Philip Fennell
Consultant
MarkLogic Corporation

88 Wood Street, London. EC2V 7RS

Mobile: +44 (0) 7824 830 866

email  Philip.Fennell@marklogic.com
web    www.marklogic.com





-----Original Message-----
From: xproc-dev-request@w3.org [mailto:xproc-dev-request@w3.org] On Behalf Of Tony Rogers
Sent: 27 September, 2010 6:53 PM
To: XProc Dev
Subject: Outputting nicely formatted markup

I'm just trying to produce some nice (X)HTML5, and the formatting is driving me absolutely bonkers.  

I do want most elements indented, but not everything.  It's overkill to indent the <a> element inside of a listitem.  

And I also don't want the output to insert newlines in the middle of <p> elements.  One paragraph element per line is fine.

Am I asking the impossible?  :D

-Tony

Received on Monday, 27 September 2010 18:27:20 UTC