********** Chapter 04 ********** Schema composition ================== Binding Test ************ **Schema** .. literalinclude:: /../tests/fixtures/defxmlschema/chapter04/chapter04.xsd :language: xml :lines: 2- **XML Document** .. literalinclude:: /../tests/fixtures/defxmlschema/chapter04/chapter04.xml :language: xml :lines: 2- **xsData XML Document** .. literalinclude:: /../tests/fixtures/defxmlschema/chapter04/chapter04.xsdata.xml :language: xml :lines: 2- **xsData JSON** .. literalinclude:: /../tests/fixtures/defxmlschema/chapter04/chapter04.json :language: json Example 4-1 Include ******************* .. literalinclude:: /../tests/fixtures/defxmlschema/chapter04/example04011.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter04/example04011.py :language: python Example 4-1 Include ******************* .. literalinclude:: /../tests/fixtures/defxmlschema/chapter04/example04012.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter04/example04012.py :language: python Example 4-2 Chameleon include ***************************** .. literalinclude:: /../tests/fixtures/defxmlschema/chapter04/example04021.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter04/example04021.py :language: python Example 4-2 Chameleon include ***************************** .. literalinclude:: /../tests/fixtures/defxmlschema/chapter04/example04022.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter04/example04022.py :language: python Example 4-3 Import ****************** .. literalinclude:: /../tests/fixtures/defxmlschema/chapter04/example04031.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter04/example04031.py :language: python Example 4-3 Import ****************** .. literalinclude:: /../tests/fixtures/defxmlschema/chapter04/example04032.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter04/example04032.py :language: python Example 4-5 Multiple imports of the same namespace ************************************************** .. literalinclude:: /../tests/fixtures/defxmlschema/chapter04/example04051.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter04/example04051.py :language: python Example 4-5 Multiple imports of the same namespace ************************************************** .. literalinclude:: /../tests/fixtures/defxmlschema/chapter04/example04052.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter04/example04052.py :language: python Example 4-5 Multiple imports of the same namespace ************************************************** .. literalinclude:: /../tests/fixtures/defxmlschema/chapter04/example04053.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter04/example04053.py :language: python Example 4-6 Proxy schema to avoid multiple imports ************************************************** .. literalinclude:: /../tests/fixtures/defxmlschema/chapter04/example04061.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter04/example04061.py :language: python .. admonition:: Samples Source :class: hint `Definitive XML Schema `_ by Priscilla Walmsley (c) 2012 Prentice Hall PTR