additonal tabs and lines in output after XSL

Here should go questions about transforming XML with XSLT and FOP.
rob-pub
Posts: 2
Joined: Tue Jul 06, 2010 7:30 pm

additonal tabs and lines in output after XSL

Post 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.
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: additonal tabs and lines in output after XSL

Post 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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply