- From: David Smith <da__smith@hotmail.com>
- Date: Tue, 8 Jun 2010 16:19:30 +0100
- To: <fd@w3.org>
- CC: <public-mobileok-checker@w3.org>
- Message-ID: <SNT127-W258F40FBC8EED6A1BE7C4AA1D60@phx.gbl>
Many thanks again Francois > If you only mean to include the entities reference so that your XML > document is "well-formed" for XML parsers, you still need to add the > entities in a DOCTYPE declaration, with a DOCTYPE declaration like: > > <!DOCTYPE html [ > > <!ENTITY % HTMLlat1 PUBLIC > "-//W3C//ENTITIES Latin 1 for XHTML//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent"> > %HTMLlat1; > > <!ENTITY % HTMLsymbol PUBLIC > "-//W3C//ENTITIES Symbols for XHTML//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml-symbol.ent"> > %HTMLsymbol; > > <!ENTITY % HTMLspecial PUBLIC > "-//W3C//ENTITIES Special for XHTML//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml-special.ent"> > %HTMLspecial; > ]> I think this is what was rattling round the back of my mind when I asked. I'd seen something like it once before and wondered if it was to do with this. > But then you've defined a document type and your document does not > "validate" anymore against that document type. I don't think there's any > way to define an entity outside of a DOCTYPE declaration. > > Note I haven't checked the above declaration, which may be invalid. It looks right enough to me for sure but I'll do some digging around. > In short, no easy way I can think of ;) > > Francois. all the best Dave _________________________________________________________________ http://clk.atdmt.com/UKM/go/197222280/direct/01/ We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now
Received on Tuesday, 8 June 2010 15:20:35 UTC