xsl-list
[Top] [All Lists]

Re: [xsl] XML pretty printer

2011-09-26 22:05:12
On Mon, 2011-09-26 at 14:25 -0700, John Christopher wrote:
I am looking for a stylesheet (or free software
that runs from the command line on linux) that
will take the following input:
[...]

and pretty prints it like this (each attribute
printed on a separate line beneath the element
and indented):

what should it do with

<paragraph breakable="no">This is a <emphasis>short</emphasis>
paragraph as an <italic>ex</italic>ample.</paragaph>

?

What about
<script type="text/javascript">
var i; // loop variable
i = 3; // assignment
alert("i is " + i); // coercion
</script>
?

Liam

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>