W3C home > Mailing lists > Public > xmlschema-dev@w3.org > September 2000

Global attributes from other namespaces, how to use?

From: <ramesh@eNode.com>
Date: Thu, 28 Sep 2000 21:07:51 -0700
To: <xmlschema-dev@w3.org>
Message-ID: <B5F963A6.C17%ramesh@eNode.com>
I need to define a complex type called Title, in which I have to use the
global attributes xml:lang and xlink:type from their respective namespaces.
How do I do that?

Is this the proper way? What should I put for the XML namespace?

<xsd:complexType name="Title">
    <xsd:simpleContent>
        <xsd:extension base="xsd:string">
            <!-- Add xml:lang="en-US" global attribute -->
            <xsd:attribute
                    name="lang"
                    namespace="What should I put here for XML1.0?"
                    type="xsd:language"
                    use="default" value="en-US"/>
            <!-- Add xlink:type="title" global attribute -->
            <xsd:attribute
                    name="type"
                    namespace="http://www.w3.org/1999/xlink"
                    type="xsd:string"
                    use="fixed" value="title"/>
        </xsd:extension>
    </xsd:simpleContent>
</xsd:complexType>

Thanks for any help.
Received on Friday, 29 September 2000 00:07:49 GMT

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