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

Subject: Re: [xsl] XSL output method="text" and indent preservation
From: selva <selva@xxxxxxxxxxxx>
Date: Tue, 31 Jul 2001 15:15:59 +0530
Hi,
Thanks for your suggestion, Jarno. It works. But, I still have one issue. In
your suggestion you had given it to get the substring after the FIRST occurrence
of the new line character, of preceding element. I would like to get the
substring after the LAST occurrence of the new line character.  It would give me
the white spaces only, in my case. It would be a great help, if I am clarified
in this regard.

Regards,
Selva

Jarno.Elovirta@xxxxxxxxx wrote:

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


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


Current Thread