[Home] [By Thread] [By Date] [Recent Entries]
At 05:09 AM 2/3/2004, Richard wrote:
...... My strategy is to live with the fact that the parser has carried out all the entity mappings, and to use a "mappings" document containing entries like this: Yes, it is slow and clumsy, and yes, it does use the deprecated disable-output-escaping, but it does work ... In my view this is a perfectly reasonable approach, as long as one is clear on the dependencies it introduces -- by using XSLT to drive the serializer, one in effect requires that the result be written out to a file (using a processor that implements d-o-e, of course), but since that's built into the requirement to begin with, it's not a big deal. Accordingly, I don't consider it an abuse of d-o-e -- just an application of XSLT+serializer as string writer bound to XSLT's role as a transformer. (In fact when I've implemented this solution to the entity-writing problem, I've deliberate kept the d-o-e operations separate from transformation logic, pipelining two different stylesheets. This way the entity-writing routine is portable.) Also see Zarella Rendon and Tony Coates on this issue: http://www.xml.com/pub/a/2003/01/02/xmlchar.html Also, Mike wrote: I'm afraid the simple answer is the ugly one: just preprocess the entity references with a text editor to read "$#$bull;" instead of "•". No point banging your head against the wall to find something more elegant, it will only give you a headache. This approach, wrapping your transformation in non-XSLT "entity escaping/un-escaping" routines, may perform better (faster tools), and has the virtue of architectural clarity. It does introduce other local dependencies, of course, but for this kind of a problem that's not really an issue, is it? Cheers, Wendell Richard Light ====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ====================================================================== XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



