
| QName | Type | Fixed | Default | Use | Inheritable | Annotation | |
|---|---|---|---|---|---|---|---|
| annotations | optional | ||||||
| arch | optional | ||||||
| audience | optional | ||||||
| condition | optional | ||||||
| conformance | optional | ||||||
| dir | restriction of xs:token | optional | |||||
| language | optional | ||||||
| linkend | xs:IDREF | optional | |||||
| os | optional | ||||||
| remap | optional | ||||||
| revision | optional | ||||||
| revisionflag | restriction of xs:token | optional | |||||
| role | optional | ||||||
| security | optional | ||||||
| userlevel | optional | ||||||
| vendor | optional | ||||||
| version | optional | ||||||
| wordsize | optional | ||||||
| xlink:actuate | xlink:actuateType | optional | |||||
| xlink:arcrole | xlink:arcroleType | optional | |||||
| xlink:href | xlink:hrefType | optional | |||||
| xlink:role | xlink:roleType | optional | |||||
| xlink:show | xlink:showType | optional | |||||
| xlink:title | xlink:titleAttrType | optional | |||||
| xlink:type | xlink:typeType | optional | |||||
| xml:base | xs:anyURI | optional |
|
||||
| xml:id | xs:ID | optional |
|
||||
| xml:lang | union of(xs:language, restriction of xs:string) | optional |
|
||||
| xreflabel | optional |
<xs:element name="code"> <xs:complexType mixed="true"> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element ref="docbook:function"/> <xs:element ref="docbook:parameter"/> <xs:element ref="docbook:varname"/> <xs:element ref="docbook:returnvalue"/> <xs:element ref="docbook:type"/> <xs:element ref="docbook:classname"/> <xs:element ref="docbook:exceptionname"/> <xs:element ref="docbook:interfacename"/> <xs:element ref="docbook:methodname"/> <xs:element ref="docbook:modifier"/> <xs:element ref="docbook:initializer"/> <xs:element ref="docbook:ooclass"/> <xs:element ref="docbook:ooexception"/> <xs:element ref="docbook:oointerface"/> <xs:element ref="docbook:inlinemediaobject"/> <xs:element ref="docbook:remark"/> <xs:element ref="docbook:superscript"/> <xs:element ref="docbook:subscript"/> <xs:element ref="docbook:xref"/> <xs:element ref="docbook:link"/> <xs:element ref="docbook:olink"/> <xs:element ref="docbook:anchor"/> <xs:element ref="docbook:biblioref"/> <xs:element ref="docbook:alt"/> <xs:element ref="docbook:annotation"/> <xs:element ref="docbook:indexterm"/> <xs:element ref="docbook:phrase"/> <xs:element ref="docbook:replaceable"/> </xs:choice> <xs:attribute name="role"/> <xs:attributeGroup ref="docbook:db.common.attributes"/> <xs:attributeGroup ref="docbook:db.common.linking.attributes"/> <xs:attribute name="language"/> </xs:complexType> </xs:element> |
|
< para xmlns = "http://docbook.org/ns/docbook" > |
|
The only change is the addition of a default namespace declaration ( |
|
< code> |
|
xmlns="http://docbook.org/ns/docbook" |
|
</ code> |
|
) on the root element. This declaration applies the namespace to the root element and all nested elements. Each element is now uniquely identified by its local name and namespace. |
|
</ para> |