defxmlschema/chapter18 ====================== Example 18-1 A simple redefinition ---------------------------------- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter18/example18011.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter18/example18011.py :language: python Example 18-10 Overriding a complex type --------------------------------------- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter18/example18101.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter18/example18101.py :language: python Example 18-11 Overriding element and attribute declarations ----------------------------------------------------------- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter18/example18111.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter18/example18111.py :language: python Example 18-13 Risks of overriding types --------------------------------------- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter18/example18131.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter18/example18131.py :language: python Example 18-2 Redefining a simple type ------------------------------------- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter18/example18021.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter18/example18021.py :language: python Example 18-3 Redefining a complex type -------------------------------------- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter18/example18031.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter18/example18031.py :language: python Example 18-8 A simple override ------------------------------ .. literalinclude:: /../tests/fixtures/defxmlschema/chapter18/example18081.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter18/example18081.py :language: python Example 18-9 Overriding a simple type ------------------------------------- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter18/example18091.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter18/example18091.py :language: python .. admonition:: Samples Source :class: hint `Definitive XML Schema `_ by Priscilla Walmsley (c) 2012 Prentice Hall PTR