This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Problem while inserting new lines
- To: <XSL-List at lists dot mulberrytech dot com>
- Subject: Re: [xsl] Problem while inserting new lines
- From: "Thomas B. Passin" <tpassin at mitretek dot org>
- Date: Mon, 11 Jun 2001 10:34:31 -0400
- References: <00b201c0f233$a61c4ba0$524111cf@datamatics.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
If you are actually using the examples in your email, you are in big
trouble. That's because all the final ">" characters are missing and nothing
would work at all. Better send them again and make sure they are correct.
Tom P
[Seema Kumar]
> I am facing the following problem while trying to insert newlines in my
xml
> data.
> I have included the <br / tag within my xml tags to indicate a new line.
>
> I am handling it in my xsl as follows :
>
> <xsl:template match="text"
> <xsl:value-of select ="."/
> <xsl:apply-templates /
> </xsl:template
>
> <xsl:template match="br"
> <br/
> </xsl:template
>
> The problem is that all the br tags are matched at the end and they
appear
> as a cluster at the end of the text para.
> Here is a sample xml portion
>
> <xml
> <text
> This is a sample . <br/
> For testing
> </text
>
> The output comes as:
> This is sample
> For testing
>
> Please let me know what the problem is as I am using XSL for the very
first
> time.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list