- From: Ignacio Hernandez-Ros <ihr@xbrl.org>
- Date: Sat, 27 May 2006 11:33:50 +0200
- To: <www-xml-linking-comments@w3.org>
Hello, I apologies if this is a recurrent question, I've been unable to find information about how to point to redefined elements. The following example demonstrates what I would like to do. This is the content of the original-schema.xsd file. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" targetNamespace="http://www.xbrl.org/confirmance-suite/dimensions" xmlns:local="http://www.xbrl.org/confirmance-suite/dimensions"> <xs:complexType name="theType"> <xs:sequence> <xs:element name="foo1" type="xs:string"/> <xs:element name="foo2" type="xs:string"/> </xs:sequence> </xs:complexType> <xs:element name="typed" type="local:theType" id="id_type"> <xs:annotation> <xs:documentation>This element will be redefined in redefine-schema.xsd</xs:documentation> </xs:annotation> </xs:element> </xs:schema> And this is the content of the redefine-schema.xsd file. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" targetNamespace="http://www.xbrl.org/confirmance-suite/dimensions" xmlns:local="http://www.xbrl.org/confirmance-suite/dimensions"> <xs:redefine schemaLocation="original-schema.xsd"> <xs:complexType name="theType"> <xs:complexContent> <xs:extension base="local:theType"> <xs:sequence> <xs:element name="newContent" type="xs:string"/> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType> </xs:redefine> </xs:schema> Then, I would like to know if the XPointer "redefine-schema.xsd#id_type" is reaching the element defined if original-schema but with the new type. Thanks in advance for your time reading this email. Regards, IHR Ignacio Hernandez-Ros XBRL International Inc. - Technology Development ihr@xbrl.org Cell: +34 609027754
Received on Saturday, 27 May 2006 09:34:12 UTC