[Home] [By Thread] [By Date] [Recent Entries]

  • From: Richard Tobin <richard@c...>
  • To: xml-dev@l...
  • Date: Tue, 10 Oct 2000 14:30:13 +0100 (BST)

Allen Chang <allen@d...> 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

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member