Page 1 of 1

value-of content indenting and wrapping, but not wanted

Posted: Tue Nov 14, 2017 4:55 pm
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

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

Posted: Wed Nov 15, 2017 9:14 am
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

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

Posted: Wed Nov 15, 2017 3:42 pm
by Yuribashi
Perfect, I totally missed that attribute!

Thank you for your kind and expert support!

Cheers,
Yuribashi