World Library  
Flag as Inappropriate
Email this Article

XInclude

Article Id: WHEBN0000705735
Reproduction Date:

Title: XInclude  
Author: World Heritage Encyclopedia
Language: English
Subject: XML, Plain Old XML, List of web service specifications, Genshi (templating language), SMIL Timesheets
Collection: Xml-Based Standards
Publisher: World Heritage Encyclopedia
Publication
Date:
 

XInclude

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

Contents

  • Example 1
  • Browser Support 2
  • See also 3
  • References 4
  • External links 5

Example

For example, including the text file license.txt:

This document is published under GNU Free Documentation License

in an XHTML document:



   ...
   
      ...
      

gives:



   ...
   
      ...
      

This document is published under GNU Free Documentation License

The mechanism is similar to HTML's tag (which is specific to the HTML markup language), but the XInclude mechanism works with any XML format, such as SVG and XHTML.

Browser Support

  • Not natively.
  • Partially using some extra Javascript code[2]

See also

References

  1. ^ J. Marsh, D. Orchard, Daniel Veillard. "XML Inclusions (XInclude) Version 1.0 (Second Edition), Appendix C: Examples (non-normative)".  
  2. ^ Brettz9. "XInclude".  

External links

  • XInclude Standard
  • XInclude with XSLT
  • Using XInclude in Xerces
  • Using XInclude article by Elliotte Rusty Harold
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and USA.gov, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for USA.gov and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
 
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
 
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.
 



Copyright © World Library Foundation. All rights reserved. eBooks from Hawaii eBook Library are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.