********** Chapter 21 ********** Schema design and documentation =============================== Example 21-1 Schema for Russian Doll approach ********************************************* .. literalinclude:: /../tests/fixtures/defxmlschema/chapter21/example2101.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter21/example2101.py :language: python Example 21-2 Schema for Salami Slice approach ********************************************* .. literalinclude:: /../tests/fixtures/defxmlschema/chapter21/example2102.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter21/example2102.py :language: python Example 21-3 Schema for Venetian Blind approach *********************************************** .. literalinclude:: /../tests/fixtures/defxmlschema/chapter21/example2103.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter21/example2103.py :language: python Example 21-4 Schema for Garden of Eden approach *********************************************** .. literalinclude:: /../tests/fixtures/defxmlschema/chapter21/example2104.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter21/example2104.py :language: python Example 21-8 Same namespace in a schema *************************************** .. literalinclude:: /../tests/fixtures/defxmlschema/chapter21/example21081.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter21/example21081.py :language: python Example 21-8 Same namespace in a schema *************************************** .. literalinclude:: /../tests/fixtures/defxmlschema/chapter21/example21082.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter21/example21082.py :language: python Example 21-8 Same namespace in a schema *************************************** .. literalinclude:: /../tests/fixtures/defxmlschema/chapter21/example21083.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter21/example21083.py :language: python Example 21-10 Different namespaces in a schema ********************************************** .. literalinclude:: /../tests/fixtures/defxmlschema/chapter21/example21101.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter21/example21101.py :language: python Example 21-10 Different namespaces in a schema ********************************************** .. literalinclude:: /../tests/fixtures/defxmlschema/chapter21/example21102.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter21/example21102.py :language: python Example 21-10 Different namespaces in a schema ********************************************** .. literalinclude:: /../tests/fixtures/defxmlschema/chapter21/example21103.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter21/example21103.py :language: python Example 21-13 Chameleon namespaces in a schema ********************************************** .. literalinclude:: /../tests/fixtures/defxmlschema/chapter21/example21131.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter21/example21131.py :language: python Example 21-13 Chameleon namespaces in a schema ********************************************** .. literalinclude:: /../tests/fixtures/defxmlschema/chapter21/example21132.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter21/example21132.py :language: python Example 21-13 Chameleon namespaces in a schema ********************************************** .. literalinclude:: /../tests/fixtures/defxmlschema/chapter21/example21133.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter21/example21133.py :language: python Example 21-16 Schema for qualified local element names ****************************************************** .. literalinclude:: /../tests/fixtures/defxmlschema/chapter21/example21161.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter21/example21161.py :language: python Example 21-16 Schema for qualified local element names ****************************************************** .. literalinclude:: /../tests/fixtures/defxmlschema/chapter21/example21162.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter21/example21162.py :language: python Example 21-18 Documentation *************************** .. literalinclude:: /../tests/fixtures/defxmlschema/chapter21/example2118.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter21/example2118.py :language: python Example 21-19 ISO 11179-based type definition ********************************************* .. literalinclude:: /../tests/fixtures/defxmlschema/chapter21/example2119.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter21/example2119.py :language: python Example 21-20 Code documentation ******************************** .. literalinclude:: /../tests/fixtures/defxmlschema/chapter21/example2120.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter21/example2120.py :language: python Example 21-21 Section identifiers ********************************* .. literalinclude:: /../tests/fixtures/defxmlschema/chapter21/example2121.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter21/example2121.py :language: python Example 21-22 Application information ************************************* .. literalinclude:: /../tests/fixtures/defxmlschema/chapter21/example2122.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter21/example2122.py :language: python .. admonition:: Samples Source :class: hint `Definitive XML Schema `_ by Priscilla Walmsley (c) 2012 Prentice Hall PTR