Re: [xsl] Schema-aware pretty-printing

Subject: Re: [xsl] Schema-aware pretty-printing
From: Andrew Welch <andrew.j.welch@xxxxxxxxx>
Date: Thu, 22 Dec 2011 09:58:55 +0000
> I need to add some processing instructions at various points in the file but
> I don't want to introduce any significant whitespace in the process of doing
> so.

Do an identity transform, with the relevant templates to add the
processing instructions.

If you really do want to add some whitespace so you can manually look
at the xml, then you could do the same as above but insert the
whitespace in the specific templates (& # xa;)

-- 
Andrew Welch
http://andrewjwelch.com

Current Thread