You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Vasanth Kumar Kumarswamy <va...@wipro.com> on 2001/01/29 06:56:18 UTC
Re: newlines in XSL Output
Hi,
How to hardcode ascii characters (&) in XSL,
In our case, it is required to present " " in the HTML Document
during the XSL to HTML Conversion process.
Plz help us..
Regards
Vasanth
----- Original Message -----
From: <Sc...@lotus.com>
To: <xa...@xml.apache.org>
Sent: Wednesday, November 22, 2000 3:19 AM
Subject: Re: newlines in XSL Output
>
> You might send a small example that reproduces the problem. Whitespace is
> not stripped from the source tree, so it sounds like something along the
> way is not processing it.
>
> To insert newlines from the stylesheet, a good technique is:
>
> <xsl:variable name="newline"><xsl:text>
> </xsl:text></xsl:variable>
> ...
> <xsl:value-of select="$newline"/>
>
> This avoids having to hard-code the ascii character value into a character
> reference, and so is a little more platform independent.
>
> Note carefully whitespace stripping and preserving rules as spelled out by
> the XSLT specification, for both the source tree and the stylesheet.
These
> are a little hard to get down at first, but once you understand them,
> whitespace should give you very little trouble.
>
> -scott
>
>
>
>
>
> "Haderer,
> Gregor, Dr." To:
"'xalan-dev@xml.apache.org'" <xa...@xml.apache.org>
> <Gregor.Haderer cc: (bcc: Scott
Boag/CAM/Lotus)
> @gedas.de> Subject: newlines in XSL
Output
>
> 11/21/00 07:58
> AM
> Please respond
> to xalan-dev
>
>
>
>
>
>
> Hi,
>
> does anybody know how to put newline-characters at the and of each line
> processed by Xalan. The inputfile has newlines and the result by default
> has
> not.
>
> Thanks
> Gregor Haderer
>
>
>
>
>