This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: XSL output method="text" and indent preservation


<!-- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]