[OAI-implementers] pointies in abstracts

Joe Futrelle Joe Futrelle <futrelle@ncsa.uiuc.edu>
Mon, 2 Jul 2001 11:18:01 -0500


On Mon, Jul 02, 2001 at 09:30:55AM -0500, Tim Cole wrote:
> If you need to use named entity references for legacy or for other reasons,
> then to conform to XML you'll need to include named entity declarations in
> your XML application.  This can be done various ways, e.g., in an internal
> subset in each XML document or by associating an external DTD containing all
> the necessary named entity declarations with your XML documents.  We've
> found that most XML parsers will accept DTDs that contain only a listing of
> named entity declarations (i.e., you don't have to include element
> declarations describing document structure) -- HOWEVER, we've not attempted
> to include named entities (other than the 5 pre-defined for all XML) in our
> OAI applications.  We've always used numeric character references.  I assume
> properly declared named entities can be used in OAI context, but I'll defer
> to Hussein or someone else who may actually have done this.

The internal DTD subset strategy ought to work for any non-validating
parser.  However the XML spec is unclear on whether non-validating
parsers are expected to process externally-referenced DTD's.

Just a quick example to illustrate the internal DTD subset strategy;
suppose you need to use a copyright symbol, which in HTML is &copy;
and in ISO-8859-1 is 169.  You could do it like this:

<?xml version='1.0' encoding='ISO-8859-1'?>
<!DOCTYPE myEntities [
  <!ENTITY copy "&#169;">
]>
<GetRecord ... etc ...
  ...
  <metadata>
    <dc ...>
      ...
      <rights>&copy; 1982 Fred Sneed</rights>
    </dc>
  </metadata>
 ...
</GetRecord>

> Tim Cole
> Library, University of Illinois at Urbana-Champaign
> 
> > Sorry if this has been discussed already.
> > Thanks,
> >
> > Ben
> >
> > Ben Henley <mailto:ben@biomedcentral.com>
> > Special Projects Editor
> > BioMed Central
> > http://www.biomedcentral.com
> >
> >
> >
> > _______________________________________________
> > OAI-implementers mailing list
> > OAI-implementers@oaisrv.nsdl.cornell.edu
> > http://oaisrv.nsdl.cornell.edu/mailman/listinfo/oai-implementers
> >
> 
> _______________________________________________
> OAI-implementers mailing list
> OAI-implementers@oaisrv.nsdl.cornell.edu
> http://oaisrv.nsdl.cornell.edu/mailman/listinfo/oai-implementers
--
Joe Futrelle