Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

XInclude

From Wikipedia, the free encyclopedia

XInclude is a generic mechanism for mergingXML documents, by writing inclusion tags in the "main" document to automatically include other documents or parts thereof.[1] The resulting document becomes a single compositeXML Information Set. The XInclude mechanism can be used to incorporate content from either XML files or non-XML text files.

XInclude is not natively supported in Web browsers, but may be partially achieved by using some extraJavaScript code.[2]

Example

[edit]

For example, including the text filelicense.txt:

This document is published under GNU Free Documentation License

in anXHTML document:

<?xml version="1.0"?><htmlxmlns="http://www.w3.org/1999/xhtml"xmlns:xi="http://www.w3.org/2001/XInclude"><head>...</head><body>...<p><xi:includehref="license.txt"parse="text"/></p></body></html>

gives:

<?xml version="1.0"?><htmlxmlns="http://www.w3.org/1999/xhtml"xmlns:xi="http://www.w3.org/2001/XInclude"><head>...</head><body>...<p>ThisdocumentispublishedunderGNUFreeDocumentationLicense</p></body></html>

The mechanism is similar toHTML's<object> tag (which is specific to the HTMLmarkup language), but the XInclude mechanism works with any XML format, such asSVG andXHTML.

See also

[edit]

References

[edit]
  1. ^J. Marsh; D. Orchard; Daniel Veillard."XML Inclusions (XInclude) Version 1.0 (Second Edition), Appendix C: Examples (non-normative)".World Wide Web Consortium. Retrieved2007-06-28.
  2. ^Brettz9; et al."XInclude".Mozilla Developer Network.

External links

[edit]
Products and
standards
Recommendations
Notes
Working drafts
Guidelines
Initiative
Deprecated
Obsoleted
Organizations
Elected groups
Working groups
Community & business groups
Closed groups
Software
Browsers
Conferences
Retrieved from "https://en.wikipedia.org/w/index.php?title=XInclude&oldid=1284391483"
Category:

[8]ページ先頭

©2009-2025 Movatter.jp