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

XML XInclude looses namespace in included nodes

I'm trying to use namespaces on a xml file composed by more files. XML Schema
Kamafeather
  • 8,663
  • 14
  • 69
  • 99
1
vote
1 answer

Can I use XInclude with Java 1.5 XML Properties?

Since JDK 1.5 Properties can be loaded from a simple XML file (see IBM article). Is it possible to use XInclude in one of these XML properties files to compose multiple files?
Edward Dale
  • 29,597
  • 13
  • 90
  • 129
1
vote
2 answers

xslt document function doesn't resolve the xinclude tags in the referenced xml file

I'm looking for a solution to resolve xincludes at documents referenced by the document() function (XSLT). On my evalutation I tried the xsltproc (doesn't work) and now I stuck on the saxon 6.5.5 in combination with the apache xerces 2.11.0. This is…
markus0074
  • 309
  • 1
  • 4
  • 14
1
vote
1 answer

Adding xml prefix declaration with lxml in python

Short version : How to add the xmlns:xi="http://www.w3.org/2001/XInclude" prefix decleration to my root element in python with lxml ? Context : I have some XML files that include IDs to other files. These IDs represent the referenced file names.…
Tibor Udvari
  • 2,932
  • 3
  • 23
  • 39
1
vote
1 answer

Parsing XML using document() which includes references in XSLT

There is my problem. I have an XML file using references and including other XML file XML file (parsed by XSL) :
Rems
  • 55
  • 9
1
vote
0 answers

Line number of xinclude while unmarshalling using jaxb

I found this question on SO. I shows how to get the line numbers of individual xml elements while unmarshalling with JAXB. I extended this example being able to use xinclude. Unfortunately, I'm not able to get the line number of the xinclude. So,…
kon
  • 3,732
  • 3
  • 26
  • 34
1
vote
0 answers

Write XML file with xinclude(xi:include) blocks with lxml

I wish to automatically write a collective XML file using lxml and therefore I need to write "xi:include" something like: ...
1
vote
2 answers

lxml, xi:include, and original file

I'm using lxml to parse a file that contains xi:include elements, and I'm resolve the includes using xinclude(). Given an element, is there any way to identify the file and source line that the element originally appeared in? For example: from lxml…
Lorin Hochstein
  • 57,372
  • 31
  • 105
  • 141
1
vote
1 answer

XInclude not evaluated in XSLT transformation using PHP

I am trying to include different source files (e.g. file1.xml and file2.xml) and have these includes resolved for an XSLT transformation using PHPs XSLTProcessor. This is my input: source.xml
hielsnoppe
  • 2,819
  • 3
  • 31
  • 56
1
vote
1 answer

Get list of Image paths from given XML document using XSLT 1.0

I am having a xml document like below, First chapter
vish
  • 105
  • 10
1
vote
1 answer

Do mapping between xml:base attribute and other node values of a xml file using XSLT 1.0

I am having a xml document like below, First chapter
vish
  • 105
  • 10
1
vote
2 answers

In XSLT, how do I get the filepath of the xml file of a certain element if that xml file was included with xinclude?

I have these XML files: master.xml (which uses XInclude to include child1.xml and child2.xml) child1.xml child2.xml Both child1.xml and child2.xml contain a
element with some text. In the XSLT transformation, I 'd want to add the name of…
Geoffrey De Smet
  • 26,223
  • 11
  • 73
  • 120
0
votes
1 answer

XML XInclude does not display correctly?

I am testing XML.XInclude following its structure guide: http://www.w3.org/2001/XInclude.xsd I have a child1.xml file: a child2.xml file:
olidev
  • 20,058
  • 51
  • 133
  • 197
0
votes
1 answer

Converting Docbook 5.0 (with partial includes) to PDF

I was trying to convert a docbook document with fragmented/partial includes to pdf using Xerces 2.7.1 and Xalan 2.7.0. This did not work until I figured out that in order to use…
Tie-fighter
  • 1,035
  • 2
  • 8
  • 9
0
votes
1 answer

adding elements to including file via XInclude

Can I somehow add elements to included file using XPointer or XPath or anything else? Main file field.xml address
witzawitz
  • 416
  • 1
  • 5
  • 11