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
1
vote
1 answer

Java and XML: How to get list of included files

I have problem with by Xinclude or as an entity included files. I need to know, which files have been included by parser. Example: ]>
Theodor Keinstein
  • 1,653
  • 2
  • 26
  • 47
1
vote
0 answers

XSLT and XInclude

Possible Duplicate: Default support for xinclude in Java 6? I have a three XML files called A.xml,B.xml and C.xml. A includes B and C through XInclude. I want Saxon to process A.xml AFTER resolving the includes in A.xml. So far, I can activate…
Stephan
  • 41,764
  • 65
  • 238
  • 329
1
vote
1 answer

How to resolve XInclude instructions in a XML file from command line with XSLT 3.0

Our XML data is stored in separate files, so the personnel can work individually on simple modules. The separate files are assembled to one master file to be processed further. Currently I am doing this within the IDE of the Oxygen XML Editor. To…
1
vote
1 answer

Does a PHP supports recursively processing of xi:include elements?

What is the best Php code to load an XML file with a correct XInclude syntax (with XPointer) and include XML recursively? Example (the Xinclude syntax should be correct): index.xml includes legal/sitemap.xml:
1
vote
1 answer

Why isn’t Jing picking up xml:id for XInclude?

Given the following files a.rnc: start = a a = element a { b } b = element b { attribute xml:id { xsd:ID }?, attribute xml:base { xsd:ID }?, empty } a.xml:
user322381
  • 51
  • 1
  • 5
1
vote
0 answers

"Build" an XML file that collates all XIncludes

I am currently using XInclude to reduce the amount of duplication in my XML log4j2 configuration files. However, I was wondering if there is a tool that will collate all of the files XInclude-ed (...) and produce a single XML file?
MeanwhileInHell
  • 6,780
  • 17
  • 57
  • 106
1
vote
1 answer

lxml and python: how to set "global" entities

I am using lxml to parse an xml file in python. The xml has the purpose of configuring my code. Since I need to use many different configurations which slightly differ, I am using the xi:include feature. It would be really useful to be able to…
Matteo S.
  • 111
  • 5
1
vote
2 answers

XInclude not working with Saxon?

I have this XSLT stylesheet xinclude-test.xsl:
MetroWind
  • 541
  • 4
  • 16
1
vote
3 answers

Is it possible to use wildcards with XInclude tags?

I'm afraid it's not possible, but haven't found anywhere it is said to be impossible either. I'd like to include a set of files within a XML document using wildcards. Like this:
Antonio Pérez
  • 6,702
  • 4
  • 36
  • 61
1
vote
1 answer

DOCTYPE is deprecated and Xinclude does not do it

I need a way to include a fragmented XML not containing a global opening/closing tag/element. The fragment is growing because a program is appending data (more blocks) into it from time to time, so it neither going to have an ending tag nor an…
Guasqueño
  • 405
  • 9
  • 20
1
vote
1 answer

XSD-generated class doesn't include XInclude content after deserialization

I'm using the XmlSerializer class to deserialize a XSD.exe-generated class from an XML document. The XML document has two XInclude tags to other XML documents. After deserialization, the XInclude content is missing. Does anyone know if the .NET…
goombaloon
  • 3,039
  • 8
  • 37
  • 55
1
vote
1 answer

XInclude in XSLT Stylesheets (eXist-db)

Some of my stylesheets are a bit large and some of their parts are repeating. I would like to use XInclude for them—which would allow me to separate them aside the whole stylesheet. I can’t use xsl:import or xsl:include here because I need to inject…
Honza Hejzl
  • 874
  • 8
  • 23
1
vote
3 answers

any simple tool to parse XML xinclude several elements in the same file

want to use a simple tool (now, I use "xmllint") to parse a xml file, which use 'xinclude' in multiple levels. There are multiple elements in single file. then my application can parse the result xml file ea, (there is NO xinclude in it) the command…
Akira Yuki
  • 11
  • 3
1
vote
0 answers

How can I validate my xml file, without validating included files?

I have a python script that validates my xml file (file "a") using an xml schema. It works great, and now I want to include another xml file (file "b") in the original xml (file "a"). The issue is, I want to validate file "a" without validating the…
GoldenEagle
  • 115
  • 1
  • 2
  • 15
1
vote
0 answers

Replacing dmref tags with XInclude tags correctly

Fellow Forum Members, I need help in replacing tags with tags within a XML file known as a Publication Module (PM). My PM lists 125 XML files and I want to feed this PM file to my Arbortext XML Editor as a PM file it recognizes so…
Matrix
  • 181
  • 2
  • 10