W3C home > Mailing lists > Public > xmlschema-dev@w3.org > November 2001

Can you have 2 local elements with the same name?

From: David Spriet <infostring@yahoo.com>
Date: Mon, 19 Nov 2001 12:39:01 -0800 (PST)
Message-ID: <20011119203901.91313.qmail@web14508.mail.yahoo.com>
To: xmlschema <xmlschema-dev@w3.org>
Is this valid?

I looked it up in the spec and I think it said the
duplicate name validation only applies to global types
/ elements.

<?xml version="1.0" encoding="UTF-8"?>
<schema
targetNamespace="http://www.test.com/postcardstruct"
    xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:post="http://www.test.com/postcardstruct">
    <complexType name="Postcard_Message_Type">
        <sequence>

            <element name="Post_Transaction"
type="string" />
            <element name="Post_Transaction"
type="string" />

        </sequence>
    </complexType>
</schema>


__________________________________________________
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com
Received on Monday, 19 November 2001 15:39:03 GMT

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