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

Re: Disapearing spaces between end tags and begin tags

Subject: Re: Disapearing spaces between end tags and begin tags
From: Smoother@xxxxxx
Date: Tue, 01 Aug 2006 11:28:18 +0200
space after ul
I have the same problem. Using XSLTProcessor from php5 will return the espected output, but using tidy with input-xml = true as parameter, will not preserve this space after an end tag anymore:

<ul>
  <li><a href="/">caption</a> descritpion</li>
<ul>

becomes to

<ul>
  <li><a href="/">caption</a>descritpion</li>
<ul>

in the output using php5 and tidy. So, either I disable tidy (and get unformatted output) or I use the following by-pass, to solve the problem:

According to http://thewml.org/distrib/wml-SNAP/wml_aux/tidy/tidy.txt (search for "a nonbreaking space") and http://www.dpawson.co.uk/xsl/sect2/nbsp.html#d7293e207, I have replaced the space after the end tag with "&#160;". That makes:

<ul>
  <li><a href="/">caption</a>&#160;descritpion</li>
<ul>

and returns the same as output. But I'm not satisfied of this "solution". I keep on searching for a "real" solution.


S.R.
-- 


Echte DSL-Flatrate dauerhaft f|r 0,- Euro*. Nur noch kurze Zeit!
"Feel free" mit GMX DSL: http://www.gmx.net/de/go/dsl

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

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-2007 All Rights Reserved.