This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: XSL output method="text" and indent preservation
- To: xsl-list at lists dot mulberrytech dot com
- Subject: RE: [xsl] XSL output method="text" and indent preservation
- From: Jarno dot Elovirta at nokia dot com
- Date: Tue, 31 Jul 2001 09:04:16 +0300
- Reply-To: xsl-list at lists dot mulberrytech dot com
<!-- myelement -->
<xsl:template match="myelement">
<xsl:value-of select="substring-after(preceding::text()[1], '
')" />
<xsl:text>ChildName </xsl:text><xsl:value-of
select="childelement"/><xsl:text>
</xsl:text><xsl:apply-templates/>
<xsl:text>
</xsl:text>
</xsl:template>
<!-- childparent -->
<xsl:template match="childparent">
<xsl:value-of select="substring-after(preceding::text()[1], '
')" />
<xsl:text>GrandChildName </xsl:text><xsl:value-of select="grandchild"/>
<xsl:text>
</xsl:text>
</xsl:template>
Jarno
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list