Jump to content

How to avoid spaces in the output of an XSLT


Guest Tweener

Recommended Posts

Guest Tweener

Hello, I have an XML file, and XSL stylesheet to generate a text file with various information read from the XML file. The problem I'm having is that, if in the XSL I write something liketext <xsl:value-of select="@Attribute"/>If I write this piece of text indented, then also in the output text file the result of it evaluation will be indented. So if I write text <xsl:value-of select="@Attribute"/>The output will be text [something]I want to instead to generate the output with no indentation and no space. So far I've been forced to write the output instructions non-indented, but this breaks the visual clearness of the code.Is there any XSL function to do this?Thanks

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...