W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2002

Schema for xml:base attribute

From: <sylvain.devillers@philips.com>
Date: Wed, 9 Jan 2002 15:34:17 +0100
To: <xmlschema-dev@w3.org>
Message-ID: <OFAC44E03D.278DB853-ONC1256B3C.004FB702@diamond.philips.com>
    Hi all,

I want my schema to allow the "xml:base" attribute in the instance.
This seems similar to the issue discussed in
http://lists.w3.org/Archives/Public/xmlschema-dev/2001Dec/0237.html

However, http://www.w3.org/2001/xml.xsd does not declare the
"xml:base" attribute. Is there another schema for this ?

Furthermore, I tried to add the line
    <xs:attribute name="base" type="xs:anyURI"/>

in xml.xsd, and then validate again my schema, but then XSV says:
    Error: Undeclared attribute
xml{http://www.w3.org/XML/1998/namespace}:base referenced

Is the syntax incorrect or is the xml namespace hardcoded in XSV (XSV
1.203.2.24/1.106.2.12 of 2001/11/09 15:45:05) ?

Thank you,

    Sylvain
Received on Wednesday, 9 January 2002 09:34:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:26 GMT