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

  • From: "Michael Kay" <mike@s...>
  • To: "'Moser Thomas M. \(KSEB 321\)'" <moser.thomas@c...>,<xml-dev@l...>
  • Date: Wed, 10 Jan 2007 10:30:29 -0000

Title: Case sensitivity of system identifiers
The system identifier in XML is actually a URI. Two URIs that differ in case are different URIs, but that doesn't stop them referring to the same resource (just as a/s.xml and b/s.xml might refer to the same resource if a and b are different names for the same directory). In a document containing <!DOCTYPE sampledocument SYSTEM "sampledocument.DTD">   the validity of the document relies on the fact that the relative URI sampledocument.DTD can be dereferenced to deliver a resource, and this is obviously going to vary depending on where the document is located: it will work in an environment where there is a file retrievable by the name sampledocument.DTD, and it won't work in an environment where there isn't.
 
 
Michael Kay
http://www.saxonica.com/
 
 


From: Moser Thomas M. (KSEB 321) [mailto:moser.thomas@c...]
Sent: 10 January 2007 10:09
To: xml-dev@l...
Subject: Case sensitivity of system identifiers

Hi,

Considering a DTD "sampledocument.dtd" and two documents, one starting with:

<!DOCTYPE sampledocument SYSTEM "sampledocument.dtd">
...

the other one starting with:

<!DOCTYPE sampledocument SYSTEM "sampledocument.DTD">
...


The two xml documents only differ by the case of the file name of the refered local DTD. On a Windows host both xml documents are regarded as valid (XMLSpy), on a UNIX host the second document is not, because the validator cannot find the DTD (UNIX file system is case-sensitive).

XML as such is case-sensitive, but are the values of system identifiers case-sensitive as well?

I did not find any explicit hint on that, can anybody point me to where this matter might be specified?

Thanks a lot

Thomas.



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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