[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: How to use ENTITY declarations and references?
>>> Mike Brown <mbrown@xxxxxxxxxxxxx> 05/05 12:18 am >>> [... example clipped ...] > So my questions are... > 1. If you declare an entity, shouldn't the XSL document have access to those > entities? XT seems to think so, but LotusXSL differs. Actually, the XSL document doesn't have access to the entities. It has access to the *replacement string* from the entity. I would assume that LotusXSL is at fault here, because I can see no reason why it wouldn't have replaced the entity *before* transforming. > 2. Why the ¢ in the output from XT? > 4. Where is the <!DOCTYPE> coming from in the output? >From XT. The HTML4 handler in XT automatically adds the the correct DOCTYPE to the output. It also transforms Unicode characters into the (correct) *HTML4* entities. Note that, for example, Netscape does *NOT* support many of these! (eg &ldquo ....) I ended up copying the java class and creating a new one which replaces with the character entity variants instead. > 3. Are the parsers simply looking for specific URIs when they determine > whether the namespace declarations are valid? Is this really necessary? Yes & Yes. Would you *really* want the system to have to make a connection to the internet to locate a (non-existant) file and then parse that to determine how to do the output. (Oh - and what would be the content of the file be anyway ?) Alistair (These are my opinions, and should not be taken as representing those of my employer, etc ....) XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|