Re: [xsl] XML pretty printer

Subject: Re: [xsl] XML pretty printer
From: Liam R E Quin <liam@xxxxxx>
Date: Mon, 26 Sep 2011 23:04:34 -0400
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/

Current Thread