Questions tagged [xinclude]

XInclude is a generic mechanism for merging XML documents, by writing inclusion tags in the parent document.

XInclude (XML Inclusions) is a generic mechanism for merging XML documents, by writing inclusion tags in the "main" document.

One should not confuse XInclude with XLink (XML linking language)

109 questions
2
votes
1 answer

can XInclude be used on stream input?

I would like a portable solution to creating a multiply nested XML document using XInclude. I am using elements and taking the input from a stream. So far this fails (I am using XOM which has its own XIncluder) which…
peter.murray.rust
  • 37,407
  • 44
  • 153
  • 217
2
votes
2 answers

How can I specify which XML parser implementation to use?

I am currently trying to write an app (a game) that will, I hope, run on both desktop and Android. The data format I have chosen to use is XML because it's more flexible and powerful than JSON, it performs better than a database and I am familiar…
Paul Hunnisett
  • 898
  • 1
  • 17
  • 36
2
votes
1 answer

Trying to use XInclude with Java and resolving the fragment with xml:id

I've been trying to get XInclude working in my XML document and finally have it working in Oxygen XML, which I'm using to author the XML documents. I then went to my app, written in Java, but it doesn't seem to support any form of XPointer…
Paul Hunnisett
  • 898
  • 1
  • 17
  • 36
2
votes
2 answers

Unraveling the dependency tree for a set of XML files using XIncludes

I have a set of XML files (DocBook, to be specific). These use XML inclusions, aka XInclude, to reference one another. Given one of these XML files, what is the best way to figure out the list of files which reference it? I'm looking to build up the…
Matthew Simoneau
  • 6,199
  • 6
  • 35
  • 46
2
votes
1 answer

Enable xinclude processing for Ants `schemavalidate` task

I'm using the schemavalidate task of Ant to validate XML documents. This works as expected. But now I have schema files using XInclude like…
Markus
  • 3,155
  • 2
  • 23
  • 33
2
votes
1 answer

Can I insert a default xi:fallback instance before processing an XInclude?

Say I have a source XML document that uses XIncludes, like this:
MDow
  • 53
  • 4
2
votes
0 answers

Including only child elements in Log4J2 configuration with Xinclude

I would like to write a standard configuration file for log4j2 and extend it for special cases(test environments,modules, etc).Which would allow me to make a change in the main configuration file without repeating it in a alternative configuration…
alan7678
  • 2,223
  • 17
  • 29
2
votes
1 answer

Use/include a value from another node

I have an XML file, like this: value ????? I want to…
Kamafeather
  • 8,663
  • 14
  • 69
  • 99
2
votes
1 answer

Inheritance of entities in docbook files

I am having some problems referencing some text from my xml files. I have some xml documents (docbook 5.0 documents). They all include a specific part from another xml file like this:
2
votes
1 answer

How to use LINQ to read XML that contains xincluded files?

I am currently using VS2008, C# 3.5, and LINQ to read an XML file. (call it A.xml) I want to include other XML files in A.xml with xinclude. My initial attempts have failed, and I've not found any existing info published on how these two work…
AMcCarron
  • 21
  • 2
2
votes
2 answers

How do I use an environment variables in xi:include of a XML file?

I would like to use an environment variable in the href link of the xi:include node of an XML file. Currently the Perl XInclude parser doesn't support any variables but only absolute paths. Is there a method where this can be overcome? for example,…
joe
  • 21
  • 3
2
votes
2 answers

Adding Xinclude support to an XSLT stylesheet

I have a large XSLT stylesheet that converts an XML format into HTML. I would like to add support for XInclude in the input XML file. The goal is that each include file can be XSD-validated independently, as well as the including XML file. I have…
Andreas Maier
  • 2,724
  • 1
  • 26
  • 30
2
votes
1 answer

Namespace for XInclude included elements

Consider these two XML documents: a.xml b.xml Hi Mom! What namespace should the element be in after inclusion, foo or no…
Phrogz
  • 296,393
  • 112
  • 651
  • 745
2
votes
1 answer

Copy xml document's images in different source locations into single output directory

I am having a xml document with uses xinclude for access several other xml files. Chapter in Main Doc
Section in Main Doc 1
vish
  • 105
  • 10
2
votes
1 answer