xsl-list
[Top] [All Lists]

Re: [xsl] Disapearing spaces between end tags and begin tags

2006-08-01 02:28:39
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [xsl] Disapearing spaces between end tags and begin tags, Smoother <=