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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Schema-aware pretty-print, Michael Kay | Thread | Re: [xsl] Schema-aware pretty-print, Murray McDonald |
Re: [xsl] Schema-aware pretty-print, Graydon | Date | [xsl] How to Get Nested Nodes, Jeffry Proctor |
Month |