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] general entity

[ Lists Home | Date Index | Thread Index ]

The only problem I see is that you need to wrap your entity declarations
in a DOCTYPE statement:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mydoctype [
   <!ENTITY % myOtherDTD SYSTEM "myOtherDTD.dtd">
   %myOtherDTD;
   <!ENTITY dataTest "replacement text">
]>
<mydoctype>...</mydoctype>

-- Ron

Kevin.Gutch@mapinfo.com wrote:
> 
> I have a DTD that uses an parameter entity to import another dtd. Its only
> other function is to then declare a general internal. My problem is that my
> xml file will validate against this dtd but will not recognize the
> reference to the Entity in the XML file. Should this work and is it
> appropriate?
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <!ENTITY % myOtherDTD SYSTEM "myOtherDTD.dtd">
> %myOtherDTD;
> <!ENTITY dataTest "replacement text">




 

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

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