xmlns:xsi
XML Schema Namespace Declaration
This is not an attribute, but a namespace pseudo-attribute. The value provides a
prefix to use for the @xsi_schemaLocation attribute. All namespace prefixes must be associated with a URL, and the
prefix “xsi” has been set to the URL for the World Wide Web
Consortium (W3C) XML Schema.
Used on these Elements:
<book>, <book-app>, <book-app-group>, <book-part>, <book-part-wrapper>, <dedication>, <foreword>, <front-matter-part>, <preface>
Value | Meaning |
---|---|
http://www.w3.org/2001/XMLSchema-instance | The prefix “xsi” has been set to the URL for W3C XML Schema. |
Restriction | @xmlns:xsi has a fixed value which may not be changed in the document. |
Example
<book
xmlns:mml="http://www.w3.org/1998/Math/MathML"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
book-type="gov"
dtd-version="2.0"
indexed="yes"
xml:lang="en">
<book-meta>...</book-meta>
<book-body>...</book-body>
<book-back>...</book-back>
</book>