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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: How Do I Tell the Parser Where DTD Is

[ Lists Home | Date Index | Thread Index ]
  • From: Richard Tobin <richard@cogsci.ed.ac.uk>
  • To: xml-dev@lists.xml.org
  • Date: Tue, 10 Oct 2000 14:30:13 +0100 (BST)

Allen Chang <allen@dejima.com> wrote:

><!DOCTYPE CASE SYSTEM "case.dtd">
>
>Is there a way to put
>case.dtd somewhere in my computer, but NOT in the current directory, and
>tell the XML parser to go there to get it?

The system identifier - eg case.dtd - is interpreted as a URI relative
to the URI of the containing entity (in this case, the XML file
itself).  So you should be able to say things like:

  <!DOCTYPE CASE SYSTEM "dtd/case.dtd">
  <!DOCTYPE CASE SYSTEM "../misc/case.dtd">

and perhaps

  <!DOCTYPE CASE SYSTEM "/home/allen/case.dtd">

-- Richard




 

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

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