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

Re: <br />'s double-space after XSL transformation

Subject: Re: <br />'s double-space after XSL transformation
From: Kathryn.Grant@xxxxxxxxxxxxxxxxx
Date: Thu, 20 Jun 2002 12:57:03 -0700
double space code
Jim,

Sorry--you're absolutely right--I should have included the xhtml code. There
was nothing special about the <br/>'s, so I thought it was enough to
describe them.  But you never know without looking at the code!

Here's a sample:

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<head>
<title>Investigator Assignment XHTML Page</title>
</head>

<body>
<p>Send feedback to:</p>

<p>Process Documentation and Development<br/>
Suite 1145<br/>
Extension 2799<br/></p>

[end sample]

Each of the <br/>'s above results in a double space.  Any ideas?  (XSL code
appears below, in original email).

Thanks again,

Kathryn

Date: Thu, 20 Jun 2002 08:09:23 +0100
From: "James Fuller" <james.fuller@xxxxxxxxxx>
Subject: Re:  <br />'s double-space after XSL transformation

Hello Kathryn,

- - pls show us everything when u ask a question, where's the xhtml ?
- - you may have to
- ----- Original Message -----
From: <Kathryn.Grant@xxxxxxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Thursday, June 20, 2002 1:38 AM
Subject:  <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


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.