[XSL-LIST Mailing List Archive Home]
's double-space after XSL transformation - update
You were right. I ran the transformation at the command line using MSXSL
and discovered that every <br/> in the xhtml is transformed to <br
Any ideas how I can make <br/> just copy to <br/>?
Thanks again--I really appreciate the suggestions and assistance.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<title>Investigator Assignment XHTML Page</title>
<p>Send feedback to:</p>
<p>Process Documentation and Development<br/>
Each of the <br/>'s above results in a double space. Any ideas? (XSL code
appears below, in original email).
Date: Thu, 20 Jun 2002 08:09:23 +0100
From: "James Fuller" <james.fuller@xxxxxxxxxx>
- - pls show us everything when u ask a question, where's the xhtml ?
- - you may have to
- ----- Original Message -----
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 ??
> // Load XML
> var xml = new ActiveXObject("MSXML2.DOMDocument")
> xml.async = false
> // Load the XSL
> var xsl = new ActiveXObject("MSXML2.DOMDocument")
> xsl.async = false
> // Transform
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
good luck,jim fuller
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list