Re: [xsl] Schema-aware pretty-printing

Subject: Re: [xsl] Schema-aware pretty-printing
From: "Murray McDonald" <m.mcdonald@xxxxxxxxx>
Date: Thu, 22 Dec 2011 00:41:35 -0500
"xmllint --format" seems to be smart enough not to introduce any significant
whitespace but unfortunately, under the "right" circumstances, it drops
significant whitespace.

eg for this test case the whitespace between the two EMPHASIS tags gets
dropped:

Input
<ITEM><PARA><EMPHASIS EMPH-TYPE="bold">Totipotency</EMPHASIS> <EMPHASIS
EMPH-TYPE="italic">the potential</EMPHASIS> of a single cell to
...</PARA></ITEM>

Output
  <ITEM>
    <PARA><EMPHASIS EMPH-TYPE="bold">Totipotency</EMPHASIS><EMPHASIS
EMPH-TYPE="italic">the potential</EMPHASIS> of a single cell to ... </PARA>
  </ITEM>

I'll try xmlstarlet in the morning.

Thanks

Current Thread