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

How can we use xinclude in Liquibase XML changlelog?

I am trying to include another xml file which is a fragement of XML file into my changelog. Whenever I execute my changelog in liquibase it gets executed successfully (without any parsing error) but no table is created in the database. I am not sure…
Umar Tahir
  • 585
  • 6
  • 21
3
votes
0 answers

XML XInclude - wildcard character

I have a directory hierarchy and would want to include all XML files that fit a particular pattern using XInclude. The structure is as show below. Book/ ├── book.xml └── Chapter └── page01.xml └── page02.xml └── page03.xml └──…
lightonphiri
  • 782
  • 2
  • 14
  • 29
3
votes
0 answers

Log4j2 use XInclude from within an executable jar

I have 2 Webapps and an executable jar (3 in total) all using a very similar log4j2 set up. All 3 apps look like the following
thonnor
  • 1,206
  • 2
  • 14
  • 28
3
votes
1 answer

XInclude validation problem

I want an XML file split up with several includes, using XInclude. This method I prefere above others, because the included XML files can be standalone to be validated files on their own. I have the following sample schema (mybook.xsd):
eiri
  • 93
  • 6
3
votes
1 answer

XPath - select all elements except element (and it's subelements) with given attribute

I'm using xinclude to include some parts of document in another document, for example, in my main document I have:
jdex
  • 1,279
  • 1
  • 13
  • 20
3
votes
1 answer

XMLStarlet + XInclude + XSLT

I'd like to include contents of an XML document into another XML document and transform it via xmlstarlet+XSLT. I'm trying to use XInclude. (A newbie to both XInclude and XSLT, I am.) The xmlstarlet, though, won't process the included XML doc, it…
peter.hrasko.sk
  • 4,043
  • 2
  • 19
  • 34
3
votes
1 answer

How to xi:include from different jar?

I have a log4j configuration as follows: src/main/resources/log4j2-commons.xml src/main/resources/log4j2-test.xml #log4j2-test.xml:
membersound
  • 81,582
  • 193
  • 585
  • 1,120
3
votes
1 answer

XercesDOMParser and XIncludes

I am attempting to get xincludes working in an existing system that uses a XercesDOMParser in xercesc to parse incoming xml from a client. I am working with Apache Xercesc v3.0.1, and the incoming XML, read from an input stream, is:
3
votes
1 answer

Can I use xinclude and entities in the same XML file?

I'm working in DocBook 5.0, creating a writing/editing/production environment. I validate my XML against the RNG schema version of DB5. To make my environment easier to use, I like to break up my books into multiple files, using xinclude to pull…
jbz
  • 163
  • 7
2
votes
5 answers

Join multiple XML files with xinclude tags into single file

I am creating an installer in IzPack. It is quite large, and I have broken up my XML files appropriately using and tags. Unfortunately, IzPack does not combine them together when you build your installer. This requires you to…
razialx
2
votes
1 answer

Why does XInclude escape < and > as XML/HTML character entities, < and >?

I have a very simple XML file:
ilya1725
  • 4,496
  • 7
  • 43
  • 68
2
votes
1 answer

XML with recursive XInclude statements

I have a problem with a recursive XInclude statement. I have a main file where an XInclude exists on another file. In the included file are further XInclude statements. I parse my XML file with python and the library lxml. As a result I…
Görgen
  • 77
  • 5
2
votes
3 answers

Include one XML within another XML and parse it with python

I wanted to include an XML file in another XML file and parse it with python. I am trying to achieve it through Xinclude. There is a file1.xml which looks like
Hari Krishnan
  • 5,992
  • 9
  • 37
  • 55
2
votes
0 answers

Including classpath resource in external log4j configuration

I use external log4j configuration and load it in servlet context listener using org.apache.logging.log4j.core.config.Configurator I would like to reference some application properties (like application version) that are generated on build time.…
miro
  • 131
  • 2
  • 9
2
votes
0 answers

using xinclude in @databasesetup dbUnit

is it possible to use xinclude in xml-files with DBUnit? following scenario: @Test @Databasesetup("FileWithInclusions.xml") public void exampleTest(){ ... } FileWithInclusions.xml should include IncludedFile.xml since there are lots of tests using…