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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: Entity References (trivial question)

[ Lists Home | Date Index | Thread Index ]
  • From: Richard Tobin <richard@cogsci.ed.ac.uk>
  • To: xml-dev@ic.ac.uk
  • Date: Tue, 20 Oct 1998 15:56:36 +0100 (BST)

> > <!ENTITY % DocumentBase SYSTEM "../">
> > <!ENTITY % DtdBase SYSTEM "%DocumentBase;config/">
> > <!ENTITY % SpecificDocumentType SYSTEM
> > "%DtdBase;specific_document_type.dtd">

> Parameter entity references aren't interpreted inside system literals.

Also you didn't want the SYSTEM keywords in at least the first two
declarations.

You can achieve the effect you want by having a parameter entity
expand to the whole entity declaration:

<!ENTITY % DocumentBase "../">
<!ENTITY % DtdBase "%DocumentBase;config/">

<!ENTITY % SpecificDocumentTypeDecl
  "<!ENTITY &#37; SpecificDocumentType SYSTEM '%DtdBase;spec_doc_type.dtd'>">
%SpecificDocumentTypeDecl;     <!--  this defines SpecificDocumentType -->

%SpecificDocumentType;

-- Richard

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)





 

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

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