OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] SAX Locator vs {start,end}Entity

[ Lists Home | Date Index | Thread Index ]


> >Why not store the entity declarations in a hash table, hashed by name?
> 
> Yes, that might be a good way to do it.
> 
> Of course the entity declarations will have the (maybe absolutized)
> system ID rather than the maybe-redirected retrieval URI, since they
> aren't normally fetched at the time they're declared.

True.
 
> But at least I would know which were external entities.  (Internal
> entity boundaries are not relevant to base URI calculation.)

And if you could get your SAX parser to call back on the
EntityResolver2 interface, it might give you the BaseURI.
 
> When I started, I wasn't expecting to have to look at the entity
> declarations at all!

Well, SAX is for real men! ;-)

Karl





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS