SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Wizard
    Join Date
    Apr 2002
    Posts
    2,307
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    references in dtd to other files... their urls?

    in a dtd (the file not the tiny bit of html which points to the file[*]) there are references to further files. e.g.:
    Code:
    <!ENTITY % HTMLlat1 PUBLIC
       "-//W3C//ENTITIES Latin 1 for XHTML//EN"
       "xhtml-lat1.ent">
    %HTMLlat1;
    that's from XHTML 1.0 Strict's dtd file whose url is
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
    the file which is referred to in the above bit of code ("xhtml-lat1.ent") is at this address
    http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent
    so it looks like xhtml-lat1.ent is possibly a relative link from the base address http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd -- is that correct? is that something that can be relied on in general?

    thanks.

    .[*] is the dtd this:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    or is it the whole file which is pointed to by that url? or both are part of the dtd?

  2. #2
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, it's a relative URI which is relative to the location of the DTD. Just like a relative link in a web page or CSS file is relative to the location of the page or CSS file.
    Birnam wood is come to Dunsinane

  3. #3
    SitePoint Wizard
    Join Date
    Apr 2002
    Posts
    2,307
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    excellent, thanks.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •