Subject: Re: [xsl] Using in XSL HTML Output From: David Carlisle <davidc@xxxxxxxxx> Date: Tue, 22 Feb 2005 16:39:30 GMT |
But if you want an entity or character reference in your output: &nbsp; or &#160; <![CDATA[ ]]> or <![CDATA[ ]]> No! They are equivalent input to & ans &#160; respectively, and that's how they would be output in the xml and html output methods (they would be output as and   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   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)   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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Using in XSL HTML , Kevin Rodgers | Thread | [xsl] changing select in apply-temp, Prasad Akella |
Re: [xsl] Using in XSL HTML , Kevin Rodgers | Date | Re: [xsl] Result still indented des, Mukul Gandhi |
Month |