Subject: Re: [xsl] Encoding/Entities problems From: Mike Brown <mike@xxxxxxxx> Date: Mon, 28 Oct 2002 18:04:17 -0700 (MST) |
Wendell Piez wrote: > 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 FWIW, last night I was just noticing that there are numerous errors in the "XML-ized" (or "XML-ixed" as the July 26, 1997 announcement reads) entity sets from Rick Jelliffe that I and others have been referring people to for years. The errors prevent the raw files from being referenced directly by a DTD. I wrote to Robin Cover and Rick with a patch; we'll see if it gets corrected. It should also be noted that if one is producing HTML or XHTML, one does not need the entire SGML entitity set anyway, since HTML and XHTML use just a subset of it. If all you need are the declarations for HTML/XHTML, use the ones that are refrenced by the XHTML 1.0 DTD (but copy them to your local filesystem, of course): http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent http://www.w3.org/TR/xhtml1/DTD/xhtml-symbol.ent http://www.w3.org/TR/xhtml1/DTD/xhtml-special.ent So your stylesheet would look like this: <?xml version="1.0" encoding="iso-8859-1" standalone="no"?> <!DOCTYPE xsl:stylesheet [ <!ENTITY % lat1 PUBLIC "-//W3C//ENTITIES Latin 1 for XHTML//EN" "xhtml-lat1.ent"> <!ENTITY % symbol PUBLIC "-//W3C//ENTITIES Symbols for XHTML//EN" "xhtml-symbol.ent"> <!ENTITY % special PUBLIC "-//W3C//ENTITIES Special for XHTML//EN" "xhtml-special.ent"> %lat1; %symbol; %special; ]> <xsl:stylesheet version="1.0" ...> DaveP, are you getting this? :) - Mike ____________________________________________________________________________ mike j. brown | xml/xslt: http://skew.org/xml/ denver/boulder, colorado, usa | resume: http://skew.org/~mike/resume/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Encoding/Entities problem, Wendell Piez | Thread | Re: [xsl] Encoding/Entities problem, David Carlisle |
RE: [xsl] Role of XSLT?, Robert Koberg | Date | [xsl] multiple <xsl:output/>'s in o, Jeff Barrett |
Month |