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

abstract elements and xsi:type substitution

From: Stan Kitsis <skits@microsoft.com>
Date: Tue, 10 Jan 2006 16:21:00 -0800
Message-ID: <2967212019EB7B4D990E06E1AC2F231905F9911B@RED-MSG-60.redmond.corp.microsoft.com>
To: <xmlschema-dev@w3.org>
Is the following valid? Why or why not?

 

Thanks,

Stan Kitsis

 

******* XSD **************

 

<?xml version="1.0" encoding="utf-8" ?> 

<xs:schema targetNamespace="foo"

                  elementFormDefault="qualified"

                  xmlns="foo"

                  xmlns:xs="http://www.w3.org/2001/XMLSchema">

  

  <xs:element name="Item" type="xs:string" abstract="true"/>

</xs:schema>

 

******* XML **************

<?xml version="1.0" encoding="utf-8"?>

<Item xmlns="foo" 

      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 

      xmlns:xs="http://www.w3.org/2001/XMLSchema"

          xsi:type="xs:string">text</Item>
Received on Wednesday, 11 January 2006 00:21:30 GMT

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