This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: <br />'s double-space after XSL transformation
- From: "James Fuller" <james dot fuller at o-idev dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 20 Jun 2002 08:09:23 +0100
- Subject: Re: [xsl] <br />'s double-space after XSL transformation
- Organization: o-iDeveloper ltd.
- References: <113A7A0D1F47D511B92E00D0B7E03DAB0235B6A4@pmail02.vikingfreight.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hello Kathryn,
- pls show us everything when u ask a question, where's the xhtml ?
- you may have to
----- Original Message -----
From: <Kathryn.Grant@freight.fedex.com>
To: <xsl-list@lists.mulberrytech.com>
Sent: Thursday, June 20, 2002 1:38 AM
Subject: [xsl] <br />'s double-space after XSL transformation
> Hi all,
>
> Got a strange question. I have an xhtml document which contains a few
> <br/>'s. When the xhtml document is viewed in the browser,
> pre-transformation, the <br/>'s behave normally, inserting a line break.
>
> However, after I transform the document, all the <br/>'s become TWO line
well thats because its probably taking a <br /> and replacing it with
<br></br> and for some strange reason its interpreting as 2 br's ??
> The transformation is done with the following javascript code:
>
> <script type="text/javascript">
> // Load XML
> var xml = new ActiveXObject("MSXML2.DOMDocument")
> xml.async = false
> xml.load("3-xhtml.htm")
>
> // Load the XSL
> var xsl = new ActiveXObject("MSXML2.DOMDocument")
> xsl.async = false
> xsl.load("manager.xsl")
>
> // Transform
> document.write(xml.transformNode(xsl))
i am certain that the problem is some default setting with your code for
transformation, as using any cmd line processor this is not an issue. So you
may have to force the correct output type via code instead of within
<xsl:output/> tag,
good luck,jim fuller
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list