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
12
votes
1 answer

Why isn’t XInclude supported by any browser?

I’m wondering why no web browser supports the XInclude standard for XHTML. This standard exists for almost five years, and I think it would be very useful for the web. For example, you could XInclude the static parts of your web site, such that the…
Guillaume Brunerie
  • 4,676
  • 3
  • 24
  • 32
11
votes
7 answers

How to use multiple configuration files for Log4j2?

I am writing Java code that tests a Java library. The library includes its own Log4j2 configuration as part of the distribution. I would like to use Log4j2 in my test code without modifying the library's configuration. Is there a way to have a…
user3093295
  • 133
  • 1
  • 1
  • 6
9
votes
1 answer

Default support for xinclude in Java 6?

I see in my application that xinclude inside my parsed XML file does not work within my Java XSLT conversion. However, although I do: DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); factory.setXIncludeAware(true); I'm not…
Roalt
  • 8,330
  • 7
  • 41
  • 53
8
votes
1 answer

Attempting to connect XML files with Xinclude attribute xml:base error

I wouldn't be here if I hadn't Googled my way into Oblivion. I have the following problem: I have an XML Schema, 3 single XML documents, and an XML document to link all of the other 3. I am running into the following error and I do not understand…
kplax
  • 85
  • 1
  • 5
8
votes
3 answers

How to use xpointer with Xinclude to reference elements

I want to merge 2 XML files with the same structure to make one. For example; Test1.xml
Nerdio
  • 983
  • 2
  • 11
  • 18
5
votes
1 answer

Python lxml using xi:include with multiple Xml fragments

I am developing a simple xml logfile class using lxml in Python. My approach so far has been to use two files. A well-formed XML file which includes a second file which is a XML fragment. I am using an xi:include element. This way XML fragment can…
zetabit
  • 96
  • 1
  • 6
5
votes
0 answers

XInclude using urn with multiple colons

Based off of How to use xpointer with Xinclude to reference elements ... I am having issues including a nested element using xpointer when the namespace urn contains multiple colons. Test1.xml
JRomero
  • 4,878
  • 1
  • 27
  • 49
5
votes
1 answer

SAXParser doesn't allow Xinclude

I'm trying to unmarshal an xml document that has the tag inside it. But SAXParser doens't allow this even though I specificly tell the SAXParserFactory to allow it. The Java code: SAXParserFactory spf =…
Erates
  • 646
  • 1
  • 9
  • 24
5
votes
1 answer

Using Python ElementTree/ElementInclude and xpointer to access included XML files

I have a 'main.xml' file that includes 2 'sub_x.xml' file. The include lines are using 'xpointer' to only point/include specific tags of the include xml's. When I use ElementTree to determine if this worked correctly, it shows that the whole 'sub'…
GKontos
  • 95
  • 1
  • 9
5
votes
2 answers

"Error attempting to parse XML file" when parsing using XInclude

I am trying to create a combined xml document using XInclude to be unmarshalled via JAXB. Here is my unmarshalling code: @Override public T readFromReader(final Reader reader) throws Exception { final Unmarshaller unmarshaller =…
chama
  • 5,973
  • 14
  • 61
  • 77
5
votes
2 answers

How to apply XSLT on XML with just XInclude

I have this XML file: and I expected that it should result in referenced remote XML file…
theta
  • 24,593
  • 37
  • 119
  • 159
4
votes
1 answer

How do I get rid of the xml:base attribute that is added to my xml document after using xinclude?

I am trying to unmarshal an xml file to a java object using xinclude. I have a schema based on my jaxb-annotated code files. Here is my unmarshalling code: @Override public T readFromReader(final Reader reader) throws Exception { final…
chama
  • 5,973
  • 14
  • 61
  • 77
4
votes
4 answers

Alternative to XInclude

As far as I know there is no support for XInclude in .net. I'd like to leverage the same kind of mechanism for hierarchically organized XML configuration files. I mean I have a top-level XML config file referencing specific Xml files. My…
LB40
  • 12,041
  • 17
  • 72
  • 107
4
votes
4 answers

XInclude Schema/Namespace Validation?

I'm trying to use XML Includes to help manage a large XML structure that needs to be usable by both humans and machines. But am experiencing a myriad of problems when trying to construct XML files that can be validated against an existing schema. …
Nate
  • 18,892
  • 27
  • 70
  • 93
3
votes
1 answer

XInclude support in Java 6

I've seen this example posted several times: public class XIncludeTest { public static void main(String[] args) throws Exception { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); …
foboz
  • 63
  • 1
  • 7
1
2 3 4 5 6 7 8