Subject: Re: [xsl] whitespace From: "J.Pietschmann" <j3322ptm@xxxxxxxx> Date: Thu, 30 May 2002 00:50:14 +0200 |
normbishop1@xxxxxxxxxxxx wrote: ...
<xsl:output method="text" version="1.0" indent="yes" />
<xsl:template match ="/address" xml:space="preserve">
<xsl:value-of select="firstname" /> </xsl:template> </xsl:stylesheet>
The xml:space preserves the whitespace in the *XSLT*, i.e. the linefeed after the <xsl:template..> opening tag, the indentation of the next line with the <xsl:value-of.../> element and the linefeed after this and the indentation of the next line. Which all doesnt matter because the serializer reformats the output because of the indent="yes" in the xsl:output.
Try <xsl:template match ="/address"> <test><xsl:value-of select="firstname" /></test> </xsl:template>
you should see <test> Mike</test> somewhere in the output.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] whitespace, Thomas B. Passin | Thread | Re: [xsl] whitespace, normbishop1 |
Re: [xsl] Xalan memory limit?!, Joerg Heinicke | Date | Re: [xsl] Getting the attribute of , J.Pietschmann |
Month |