kprice | ef16068 | 2006-08-29 18:08:31 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?>
|
| 2 | <!--Arbortext, Inc., 1988-2005, v.4002-->
|
| 3 | <!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd">
|
| 4 | <reference id="rextctn" xml:lang="en-us">
|
| 5 | <title>Editing XML documents with multiple namespaces</title>
|
| 6 | <titlealts>
|
| 7 | <searchtitle>Editing XML documents with multiple namespaces</searchtitle>
|
| 8 | </titlealts>
|
| 9 | <shortdesc>You can use the XML schema <codeph>any</codeph> element to extend
|
| 10 | the content model of an XML document.</shortdesc>
|
| 11 | <refbody>
|
| 12 | <section><p>For example, you have an XML schema file called Book.xsd that
|
| 13 | contains a complex type called BookType. BookType contains 4 elements (title,
|
| 14 | author, year, and ISBN) and one <codeph>any</codeph> element. The namespace
|
| 15 | for the <codeph>any</codeph> element is <codeph>##any</codeph>. This means
|
| 16 | that in an instance document, you can insert any XML element to extend the
|
| 17 | definition of the BookType.</p><p>You can also provide a more specific namespace.
|
| 18 | For example, you have another schema called My_Book.xsd, which contains a
|
| 19 | complex type called My_BookType. My_BookType contains 4 elements (title, author,
|
| 20 | year, and ISBN) and one <codeph>any</codeph> element, but in this case the
|
| 21 | namespace for the BookType element is www.wesley.com. This means that in
|
| 22 | an instance document, you can insert any XML element to extend the definition
|
| 23 | of the BookType, provided that they belong to the namespace http://www.wesley.com.</p></section>
|
| 24 | </refbody>
|
| 25 | </reference>
|