********** Chapter 07 ********** Attribute declarations ====================== Example 7-1 Global attribute declarations ***************************************** .. literalinclude:: /../tests/fixtures/defxmlschema/chapter07/example0701.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter07/example0701.py :language: python Example 7-2 Local attribute declarations **************************************** .. literalinclude:: /../tests/fixtures/defxmlschema/chapter07/example0702.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter07/example0702.py :language: python Example 7-3 Declaring the types of attributes ********************************************* .. literalinclude:: /../tests/fixtures/defxmlschema/chapter07/example0703.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter07/example0703.py :language: python Example 7-4 Qualified and unqualified attribute names ***************************************************** .. literalinclude:: /../tests/fixtures/defxmlschema/chapter07/example07041.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter07/example07041.py :language: python Example 7-5 Declaring a default value for an attribute ****************************************************** .. literalinclude:: /../tests/fixtures/defxmlschema/chapter07/example0705.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter07/example0705.py :language: python Example 7-7 Declaring an inheritable attribute ********************************************** .. literalinclude:: /../tests/fixtures/defxmlschema/chapter07/example0707.xsd :language: xml :lines: 3- .. literalinclude:: /../tests/fixtures/defxmlschema/chapter07/example0707.py :language: python .. admonition:: Samples Source :class: hint `Definitive XML Schema `_ by Priscilla Walmsley (c) 2012 Prentice Hall PTR