Page 1 of 1

additonal tabs and lines in output after XSL

Posted: Sun Mar 13, 2011 11:22 am
by rob-pub
Hi,

I am using XSL to transform one XML document to another ready of import into a software package. The original XML has indent tabs prior to the element

Original Input:

Code: Select all

                    <para role="noindent">Tons of information</para>
<para role="noindent">Lots of details</para>
XSLT Output:

Code: Select all

                    <first-para>Tons of information</first-para>

<second-para>Lots of details</second-para>
Required Output:

Code: Select all

<first-para>Tons of information</first-para>
<second-para>Lots of details</second-para>
Without using <xsl:strip-space elements="*"/> which puts everything on one line, how can I suppress the tabs and extra lines in XSL? Or is this something that has to be done outside of XSL with either a text editor script or even within oXygen.

Your comments and suggestions most welcome.

Re: additonal tabs and lines in output after XSL

Posted: Fri Mar 18, 2011 5:52 pm
by adrian
Hello,

I'm guessing you're copying all the text(including indents) from the source XML. Can you show me the XSLT(or part of it) that's generating this output?

Regards,
Adrian