[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Encoding/Entities problems
Paulo,
You can avoid retyping and use the entities you are used to (& c c e d i l ; for ç etc.) if you provide your stylesheet with a DOCTYPE declaration that calls in the necessary entity declarations. If you consult an XML manual on DTD internal subsets and in particular on invoking external declarations, you should be able to stitch together what you need. There's also plenty of help on line if you know what to look for (the usual problem): you could start at http://xml.coverpages.org/topics.html#entities Once you have downloaded the files containing the declarations, your solution will eventually look something like this: <!DOCTYPE xsl:stylesheet [ <!ENTITY % ISOlat1 PUBLIC "ISO 8879-1986//ENTITIES Added Latin 1//EN//XML" "ISOlat1.pen" > %ISOlat1; ]> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> ... </xsl:stylesheet> ...assuming one of the entity sets you need is available as ISOlat1.pen. These declarations allow the parser to know that the ccedil entity is a representation for the "ç" character. This information is *not* hard-wired into the parser. I hope that helps, Wendell This is really an XML parsing problem, not an XSLT problem. At 02:48 PM 10/28/2002, you wrote: Hi all, ====================================================================== 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
|
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
|