- From: <bugzilla@wiggum.w3.org>
- Date: Tue, 13 Nov 2007 04:31:53 +0000
- To: public-sml@w3.org
- CC:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=5181 ------- Comment #2 from sandygao@ca.ibm.com 2007-11-13 04:31 ------- Example1: schemaLocation: http://example.org/abc/A.xsd with <include schemaLocation="X.xsd"/> http://example.org/abc/X.xsd http://example.org/xyz/B.xsd with <include schemaLocation="X.xsd"/> http://example.org/xyz/X.xsd The relative reference "X.xsd" in A.xsd is resolved using http://example.org/abc/A.xsd as the base URI, resulting http://example.org/abc/X.xsd. Similarly, "X.xsd" in B.xsd is resolved to http://example.org/xyz/X.xsd. Example2: SML references http://example.org/university/2006/Students.xml http://example.org/university/2006/Courses.xml http://example.org/university/2007/Students.xml http://example.org/university/2007/Courses.xml 2006/Students.xml has <course> <sml:uri>Courses.xml#course_100</sml:uri> </course> where the value of <sml:uri> is should be resolved to the absolute URI http://example.org/university/2006/Courses.xml#course_100 And 2007/Students.xml has <course> <sml:uri>Courses.xml#course_999</sml:uri> </course> where the value of <sml:uri> is should be resolved to the absolute URI http://example.org/university/2007/Courses.xml#course_999 In both of the above cases, having a single base URI will result in unexpected behavior (loading the wrong schema document or finding the wrong Courses.xml file).
Received on Tuesday, 13 November 2007 04:32:00 UTC