xinclude

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 <xinclude> and <xfragment> tags. Unfortunately, IzPack does not combine them together when you build your installer. This requires you to package the files with the installer, which just won't work. I was about to start writin...

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 specifically setting the transformer factory as System.getProperty("javax.xml.transform.Tr...

JAXP XIncludes with xpointer() scheme

Is there a way to use the xpointer() scheme with JAXP? The Xcerces FAQ states that only element() is supported (http://xerces.apache.org/xerces2-j/faq-xinclude.html). But i need to resolve those XIncludes because i have to deal with "legacy" documents. ...

How is XInclude processed, and how does it resolve references?

This is a general theory question, but how is XInclude manifested? I understand the theory, but I have two questions about the implementation of it. First, I assume there are "XInclude processors"? Just like XML has parsers, I assume there is something with processes XML files for XInclude references -- inflating the references with t...

XML XInclude and two elements with the same name

I have two different XML files (IzPack installation to be exact) which a common part. Naturally, I would like to keep this common part in one (external) file and to include it into two XML installation files. I cannot make it work as it appears that XInclude can only include files with XML elements. To illustrate the example, here is s...

xerces xinclude error

I am using Apache Xerces 3.0.1 XInclude. I want to use the xinclude mechanism to include XML files. I have three XML files all in the same directory. test_a.xml xincludes test_b.xml which xincludes test_c.xml. When I just have test_a.xml xinclude test_b.xml, it works. However, when I have test_b.xml xinclude test_c.xml I get the followin...

how to transform XML files before processing xinclude

Hi, I have numerous XML files that are organized into different directories. I need to combine them and transform the result using XSLT. So far, I have already done this except for one problem: some XML files need to be transformed first before it can be included into the result. xinclude seems to ignore the xml-stylesheet declaratio...

How do I use an environment variables in xi:include of a XML file?

I would like to use an environment variable in the href link of the xi:include node of an XML file. Currently the Perl XInclude parser doesn't support any variables but only absolute paths. Is there a method where this can be overcome? for example, my xi:include node will look like this: <xi:include href="$GLOBAL_ROOT/alternative.xml"> ...

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: <?xml version="1.0" encoding="UTF-8"?> <VisionServer xmlns:xi="http://www.w3.org/2001/XInclude"&gt; ...

How to use LINQ to read XML that contains xincluded files?

I am currently using VS2008, C# 3.5, and LINQ to read an XML file. (call it A.xml) I want to include other XML files in A.xml with xinclude. My initial attempts have failed, and I've not found any existing info published on how these two work together. I'm creating the root element of my query by calling XElement.Load() Is there some ot...

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? ...