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
0
votes
0 answers
0
votes
1 answer

In maven pom.xml, how to include another xml into pom.xml?

I have a pom.xml file in my maven (java) project. I have two other xml files containing different set of project dependencies and plugins. I want to include one out of the two other xml files into my pom.xml file. I see that there are suggestions to…
chilli10
  • 54
  • 1
  • 9
0
votes
2 answers

No DTD validation and XInclude resolution when using Saxon C HE with Python

I have a question about the Saxon C HE version for Python. After the successful installation I tried some examples where I executed XSLT transformations. These all worked. However, when I parse an XML file, no DTD validation is performed during…
Görgen
  • 77
  • 5
0
votes
1 answer

"Invalid id reference" for xinclude + Intellij

In the following example, test.xml shows no IntelliJ problem but test2.xml shows an Invalid id reference highlighting fooid red. Surprisingly, this is different to what happens with test3.xml where also the root elements are annotated with There is…
0
votes
1 answer

The prefix "xi" for element "xi:include" is not bound while using DTD

I'd like to use xincludes to reduce the size of a xml file that has grown to 21K+ LOC in a java 8 app but am running into the following error: Nov 04, 2019 4:27:44 PM com.s3.config.XMLValidatorErrorHandler fatalError SEVERE: Could not parse file…
simgineer
  • 1,754
  • 2
  • 22
  • 49
0
votes
1 answer

Is it possible to use Java system property variable in XInclude attribute href?

I am using the ActiveMQ Artemis split broker.xml feature and including xml file. I am trying to use Java system property for xml file path. But it is throwing error. Here is the line I am trying.
greja
  • 134
  • 10
0
votes
1 answer

paremetrize part of xml attribute value

I'm unmarshaling a couple of large XML files. they have the common part and I decided to write the common parts in separate XML file and then include it using xi:include tag. it looks like this:
zapredelom
  • 1,009
  • 1
  • 11
  • 28
0
votes
2 answers

Preserve whitespace when using xinclude with docbook

I use docbook to generate documents. The structure of the main document is modular using xinclude for the different modules. My problem is about verbatim elements(elements with significant whitespaces) which are included into the main document via…
Michael B.
  • 54
  • 5
0
votes
1 answer

Insert a source file in programlisting with xinclude in docbook

I've the following file tree mainfolder |-assembly.xml | |-chapters | |-introduction.xml | |-source |-example01 |-main.cpp assembly.xml is the assembly file of my docbook. It contains a reference to introduction.xml. This is the…
Jepessen
  • 11,744
  • 14
  • 82
  • 149
0
votes
1 answer

Merge XML Strings in Java without File intermediary

I am currently using XInclude to merge XML files. However, I am moving these XMLs from a filesystem to a database where they are saved as Strings. What is the best way to merge these XML strings without using Files as an intermediary?
Phillip Godzin
  • 660
  • 1
  • 9
  • 21
0
votes
2 answers

How to import the xml into another xml?

I have 2 xml files, and in the first file need to do the import second file, I tried to do it with Xinclude: first.xml:
0
votes
1 answer

JSONIX / AJV: how to use Xinclude inside JSONIX for validation?

I try to use JSONIX on nodejs and using the AJV for validation of the incoming XML. Normally I use something like this: News.xml: Max Mustermann NEWS24
markus0074
  • 309
  • 1
  • 4
  • 14
0
votes
0 answers

Java XML parsing - detect text not within an element

I have an XML file where all text must be contained/enclosed within an element i.e. if an element contain a child then it cannot contain text. Example: This is allowed: