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

Re: Using   in XSL HTML Output

Subject: Re: Using   in XSL HTML Output
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 22 Feb 2005 16:39:30 GMT
xsl html nbsp
   But if you want an
  entity or character reference in your output:

  &amp;nbsp; or &amp;#160;

  <![CDATA[&nbsp;]]> or <![CDATA[&#160;]]>


No!

They are equivalent input to
 &amp;&nbsp; ans &amp;#160;
respectively, and that's how they would be output in the xml and html
output methods (they would be output as &nbsp; and &#160; in the text
output method. (You could stop the ampersand being output as amp by using
disable-output-escaping if your system suppors thta, but taht is never
a good idea and almost always a sign that something is wrong with teh
stylesheet design)

The way to get an nbsp in html output is to get that character into the
result tree eg by going &#160; and using the html output method.
Most XSLT systems will output this character using the nbsp entity no
matter how it was input.

The way to get (say) &#160; output in the XML output method is to input
teh character as usual but output in an encoding (eg US-ASCII) that does
not have this character.

the faq for this list goes into this in more detail

David


________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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.