value-of content indenting and wrapping, but not wanted

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Yuribashi
Posts: 5
Joined: Wed Feb 15, 2017 7:23 pm

value-of content indenting and wrapping, but not wanted

Post by Yuribashi »

XML Editor 19.0
Saxon PE 9.7.0.15 Transformation

My problem is that although my string variable displays via <xsl:message> without wrapping, when using <xsl:value-of select="$myvariable"> the output file has an indent of three spaces and the content is wrapping for lines close to 80 characters in length, or more. (This is not consistent, either.)

How can I eliminate creation of the leading spaces, and not wrap the value-of select content, when generating my output file content?

Cheers,
Yuribashi
Radu
Posts: 9451
Joined: Fri Jul 09, 2004 5:18 pm

Re: value-of content indenting and wrapping, but not wanted

Post by Radu »

Hi Yuribashi,

Maybe you can set the indent="no" attribute on the <xsl:output> element.
Because indeed if you have indent="yes" the Saxon 9 XSLT processor will indent with 3 spaces and break the line at 80 chars:

https://www.saxonica.com/html/documenta ... eters.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Yuribashi
Posts: 5
Joined: Wed Feb 15, 2017 7:23 pm

Re: value-of content indenting and wrapping, but not wanted

Post by Yuribashi »

Perfect, I totally missed that attribute!

Thank you for your kind and expert support!

Cheers,
Yuribashi
Post Reply