M
Michael Kragh Pedersen
I have made an XSLT document, looking like this.
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl
utput indent="yes" method="text"/>
<xsl:template match="/">
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
<xsl:apply-templates/>
</BODY>
</HTML>
</xsl:template>
<xsl:template match="*">
<xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet>
Nothing fancy about that, just writing out the elements. So I get this
output, when I see it in the browser (Mozilla on Linux).
A
B
E
F
C
D
But I want for it to be flattened, so all of the elements are aligned
left. I feel like, I have tried everything, with xsl
utput and
normalize-string(), and I have no idea, how to remove the whitespace.
I also tried removing all the whitespace from my XML document, that
didn't help either.
Anybody with some good ideas?
Michael K. P.
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl
<xsl:template match="/">
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
<xsl:apply-templates/>
</BODY>
</HTML>
</xsl:template>
<xsl:template match="*">
<xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet>
Nothing fancy about that, just writing out the elements. So I get this
output, when I see it in the browser (Mozilla on Linux).
A
B
E
F
C
D
But I want for it to be flattened, so all of the elements are aligned
left. I feel like, I have tried everything, with xsl
normalize-string(), and I have no idea, how to remove the whitespace.
I also tried removing all the whitespace from my XML document, that
didn't help either.
Anybody with some good ideas?
Michael K. P.