[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

Subject: Re: XSL output method="text" and indent preservation
From: selva <selva@xxxxxxxxxxxx>
Date: Tue, 31 Jul 2001 19:05:18 +0530
xsl output method text
Hi Jarno,
Thanks. It works. I am going with the template approach. Since I am new to this
XSL stuff, shall I know the resources (may be text book) to learn XSL properly.

Regards,
Selva

Jarno.Elovirta@xxxxxxxxx wrote:

> > 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,
>
> <xsl:template name="after-last-linefeed">
>   <xsl:param name="text" select="preceding::text()[1]" />
>   <xsl:choose>
>     <xsl:when test="contains($text, '&#xA;')">
>       <xsl:call-template name="after-last-linefeed">
>         <xsl:with-param name="text" select="substring-after($text, '&#xA;')"
> />
>       </xsl:call-template>
>     </xsl:when>
>     <xsl:otherwise>
>       <xsl:value-of select="$text" />
>     </xsl:otherwise>
>   </xsl:choose>
> </xsl:template>
>
> Or write an extension function for
>
> substring-after(exf:reverse(preceding::text()[1]), '&#xA;')
>
> 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.