defxmlschema/chapter12 ====================== Example 12-11 Complex type with empty content --------------------------------------------- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter12/example1211.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter12/example1211.py :language: python Example 12-12 Element references -------------------------------- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter12/example1212.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter12/example1212.py :language: python Example 12-15 A sequence group ------------------------------ .. literalinclude:: /../tests/fixtures/defxmlschema/chapter12/example1215.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter12/example1215.py :language: python Example 12-18 Enforcing order for better constraints ---------------------------------------------------- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter12/example1218.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter12/example1218.py :language: python Example 12-19 A choice group ---------------------------- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter12/example1219.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter12/example1219.py :language: python Example 12-2 Named complex type ------------------------------- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter12/example1202.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter12/example1202.py :language: python Example 12-21 A repeating choice group -------------------------------------- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter12/example1221.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter12/example1221.py :language: python Example 12-23 Multiple nested groups ------------------------------------ .. literalinclude:: /../tests/fixtures/defxmlschema/chapter12/example1223.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter12/example1223.py :language: python Example 12-24 An all group -------------------------- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter12/example1224.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter12/example1224.py :language: python Example 12-27 Complex type with a named model group reference ------------------------------------------------------------- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter12/example1227.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter12/example1227.py :language: python Example 12-3 Anonymous complex type ----------------------------------- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter12/example1203.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter12/example1203.py :language: python Example 12-30 Local attribute declaration ----------------------------------------- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter12/example1230.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter12/example1230.py :language: python Example 12-31 Attribute reference --------------------------------- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter12/example1231.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter12/example1231.py :language: python Example 12-32 Complex type with attribute group reference --------------------------------------------------------- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter12/example1232.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter12/example1232.py :language: python Example 12-33 Using an element wildcard --------------------------------------- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter12/example1233.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter12/example1233.py :language: python Example 12-35 Complex type with element wildcard ------------------------------------------------ .. literalinclude:: /../tests/fixtures/defxmlschema/chapter12/example1235.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter12/example1235.py :language: python Example 12-37 Negative wildcards -------------------------------- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter12/example1237.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter12/example1237.py :language: python Example 12-5 Complex type with simple content --------------------------------------------- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter12/example1205.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter12/example1205.py :language: python Example 12-7 Complex type with element-only content --------------------------------------------------- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter12/example1207.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter12/example1207.py :language: python .. admonition:: Samples Source :class: hint `Definitive XML Schema `_ by Priscilla Walmsley (c) 2012 Prentice Hall PTR