Re: crappy formatting with <xsl:text>

Liam R E Quin <[email protected]>
Newsgroups gmane.comp.gnome.lib.xslt
Message-ID <[email protected]>
On Tue, 2011-07-26 at 17:20 +0200, Jan Kotuc wrote:
> Hi y'all,
> 
> I'm using xsltproc to do some fairly easy transformations, but I've
> run into following problem: if I use as little as one <xsl:text>
> element in my stylesheet, the resulting file will be nowhere near
> pretty-printed, but garbled up into several mile-long lines.

You need to make a small test-case with
* a short XSLT stylesheet
* a short input document
* the output you get
* the output you expected to get

You need to say exactly which version of xsltproc you are using.

Note also that whitespace in a template will generally get copied to the
output unless you surround all non-whitespace text in the template with
xsl:text elements; the indent="yes" parameter obviously also makes a
difference.

Liam
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.