RE: [xsl] XSL output method="text" and indent preservation

Subject: RE: [xsl] XSL output method="text" and indent preservation
From: Jarno.Elovirta@xxxxxxxxx
Date: Tue, 31 Jul 2001 09:04:16 +0300
<!-- myelement -->
<xsl:template match="myelement">
    <xsl:value-of select="substring-after(preceding::text()[1], '&#xA;')" />
    <xsl:text>ChildName </xsl:text><xsl:value-of
select="childelement"/><xsl:text>&#xA;</xsl:text><xsl:apply-templates/>
    <xsl:text>&#xA;</xsl:text>
</xsl:template>

<!-- childparent -->
<xsl:template match="childparent">
    <xsl:value-of select="substring-after(preceding::text()[1], '&#xA;')" />
    <xsl:text>GrandChildName </xsl:text><xsl:value-of select="grandchild"/>
    <xsl:text>&#xA;</xsl:text>
</xsl:template>

Jarno

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread