Table of contentsAppendices |
C.3 Textual Inclusion of XML ExampleTextual Inclusion of XML ExampleThe following XML document includes a "working example" into a document. <?xml version='1.0'?> <document xmlns:xi="http://www.w3.org/2001/XInclude"> <p>The following is the source of the "data.xml" resource:</p> <example><xi:include href="data.xml" parse="text"/></example> </document> data.xml contains: <?xml version='1.0'?> <data> <item><![CDATA[Brooks & Shields]]></item> </data> The infoset resulting from resolving inclusions on this document is the same (except for the include history and language properties) as that of the following document: <?xml version='1.0'?> <document xmlns:xi="http://www.w3.org/2001/XInclude"> <p>The following is the source of the "data.xml" resource:</p> <example><?xml version='1.0'?> <data> <item><![CDATA[Brooks & Shields]]></item> </data></example> </document> |