defxmlschema/chapter06 ====================== Example 6-1 Global element declarations --------------------------------------- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter06/example0601.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter06/example0601.py :language: python Example 6-11 Specifying an element's default value -------------------------------------------------- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter06/example0611.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter06/example0611.py :language: python Example 6-15 Making size elements nillable ------------------------------------------ .. literalinclude:: /../tests/fixtures/defxmlschema/chapter06/example0615.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter06/example0615.py :language: python Example 6-3 Local element declarations -------------------------------------- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter06/example0603.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter06/example0603.py :language: python Example 6-7 Schema for qualified local element names ---------------------------------------------------- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter06/example0607.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter06/example0607.py :language: python Example 6-8 Using the form attribute ------------------------------------ .. literalinclude:: /../tests/fixtures/defxmlschema/chapter06/example0608.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter06/example0608.py :language: python .. admonition:: Samples Source :class: hint `Definitive XML Schema `_ by Priscilla Walmsley (c) 2012 Prentice Hall PTR