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

value-of content indenting and wrapping, but not wanted

Tue Nov 14, 2017 4:55 pm

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: 5129

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

Wed Nov 15, 2017 9:14 am

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/documentation/extensions/output-extras/serialization-parameters.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Yuribashi
Posts: 5

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

Wed Nov 15, 2017 3:42 pm

Perfect, I totally missed that attribute!

Thank you for your kind and expert support!

Cheers,
Yuribashi

Return to “Common Problems”

Who is online

Users browsing this forum: No registered users and 2 guests