Subject: RE: From: Mike Brown <mbrown@xxxxxxxxxxxxx> Date: Sun, 20 Jun 1999 18:24:32 -0600 |
> I simply need to be able to place some code in either the DTD > or the XSL that allows me to generate entities such as > in my HTML. [...] I just keep on getting &nbsp; in my HTML > and its wearing me a little thin. Someone already posted the how. Here's some more info that will help explain why. You are not, in your XSL, literally saying what you want in the tangible output. You're saying, using XML (well-formed HTML, in your case), what you want the result tree (intangible) to have in it. Tangible output (which can be in any format) will be derived from this result tree by the XSL processor, possibly in a format that you have hinted at via the result-ns. So your goal, really, is not to put the 6-characters & n b s p ; into the HTML. It is to put Unicode character number 160 (a non-breaking space) in your result tree, and then have faith that the XSL processor, when outputting an interpretation of the result tree as HTML 4.0, will substitute for that character on its own. When you insist on putting all 6 characters & n b s p ; in the result tree, &nbsp; in the XSL actually does suffice. The problem is that when this result tree is externalized as HTML 4.0, the & character is replaced with the 5 characters & a m p ; by the XSL processor. Hence, &nbsp; keeps appearing in your HTML. -Mike XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: , Mark Edwards | Thread | Re: release of FOP, Jeroen van Rotterdam |
RE: release of FOP, Didier PH Martin | Date | Re FOP release, Jeroen van Rotterdam |
Month |