◇◆
xmlns:xsi XML Schema Namespace Declaration
This is not an attribute, but the namespace pseudo-attribute. The value provides a
prefix to use in namespace pseudo-attributes such as @xsi:noNamespaceSchemaLocation. 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.
FIXED (not settable) on many elements; click for list and usage
<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. |
Tagged Sample
The @xmlns:xsi namespace for an entire book
<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.1"
indexed="yes"
xml:lang="en">
<book-meta>...</book-meta>
<book-body>...</book-body>
<book-back>...</book-back>
</book>