- From: G. Ken Holman <gkholman@CraneSoftwrights.com>
- Date: Mon, 14 Jul 2003 10:42:59 -0400
- To: xmlschema-dev <xmlschema-dev@w3.org>
At 2003-07-14 10:32 -0400, remko de knikker wrote: >If I have a schema that defines > ><xsd:schema >xmlns:xsd="http://www.w3.org/2001/XMLSchema" >xmlns:tns="http://biryani.med.yale.edu:8081/axis/services/GetXSLIM" >targetNamespace="http://biryani.med.yale.edu:8081/axis/services/GetXSLIM" > > ><tns:element name="method2Request"> > >is a XML Document valid when a user changes the 'tns' to 'ns1' for >instance, leaving the rest of the definitions intact? >In other words, is above equal to below?? > ><xsd:schema >xmlns:xsd="http://www.w3.org/2001/XMLSchema" >xmlns:ns1="http://biryani.med.yale.edu:8081/axis/services/GetXSLIM" >targetNamespace="http://biryani.med.yale.edu:8081/axis/services/GetXSLIM" > > ><ns1:element name="method2Request"> In namespace processing, the prefix is irrelevant. But ... neither of the above is valid from a W3C Schema perspective since the "element" element of a schema expression needs to be in the W3C namespace. In XML documents the following are equivalent: <ns1:method2request xmlns:ns1="http://biryani.med.yale.edu:8081/axis/services/GetXSLIM"/> <ns2:method2request xmlns:ns2="http://biryani.med.yale.edu:8081/axis/services/GetXSLIM"/> Note that nothing needs to exist at the URL of the URI ... a namespace aware application does *not* attempt to dereference or locate *any* piece of information at the address represented by the string. I hope this helps. ............. Ken -- Upcoming hands-on courses: in-house corporate training available; North America public: XSL-FO Aug 4,2003; XSLT/XPath Aug 12, 2003 G. Ken Holman mailto:gkholman@CraneSoftwrights.com Crane Softwrights Ltd. http://www.CraneSoftwrights.com/x/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) ISBN 0-13-065196-6 Definitive XSLT and XPath ISBN 0-13-140374-5 Definitive XSL-FO ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath ISBN 1-894049-11-X Practical Formatting Using XSL-FO Member of the XML Guild of Practitioners: http://XMLGuild.info Male Breast Cancer Awareness http://www.CraneSoftwrights.com/x/bc
Received on Monday, 14 July 2003 10:43:08 UTC