Difference between xs: redefine and xs: override in XML Schema 1.1

What is the difference between <xs::redefine>and <xs::override>in XML Schema 1.1. I have two books on the XML schema in front of me, and I still can't tell the difference. The only thing I am sure is that both of them are common and that it is <xs::redefine>out of date.

+4
source share
2 answers

Using redefine, you can expand or restrict a component (complex types, simple types, model groups, and attribute groups). So, you reuse the original definition of the component, and you extend or limit it.

. , , . ( , , , , , ).

: http://www.w3.org/TR/xmlschema11-1/#override-schema Roger Costello XML Schema 1.1: http://www.xfront.com/xml-schema-1-1/index.html

: " XML, "

,

+3

http://www.w3.org/TR/xmlschema11-1/#override-schema

<redefine> , () (§4.2.4), , - . , - . , XSD- , <redefine> · ·. < > , , ​​ .

. , , . , .

<xs:redefine> , xml. <xs:override> , <xs:redefine>, - . XML , <xs:override>, <xs:redefine>.

+2

Source: https://habr.com/ru/post/1525035/


All Articles