[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Encoding/Entities problems

Subject: Re: Encoding/Entities problems
From: Mike Brown <mike@xxxxxxxx>
Date: Mon, 28 Oct 2002 18:04:17 -0700 (MST)
xhtml lat1.ent xml
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.