<info>
<title>XInclude Test</title>
</info>
<xi:include parse="xml" xpointer="1/2" href="..">
<para>Test</para>
</xi:include>
Hello, when I use for example <xi:xinclude parse="xml" xpointer="1/2" href="..."> in any place of my source documents the required fragment gets included but all following elements loose their namespace declaration. I played with it for several hours but the only workaround I found was to explicitly declare relevant prefixes again on all following parent first ancestor elements.</xi:xinclude>
Example:
Hope it's really a bug and not luck of my XMl knowledge.
Regrads and thanks.
Logged In: YES
user_id=251681
Originator: NO
This isn't the right place to raise this kind of enquiry - this area is for confirmed bugs only (there's a bright yellow note on the "Submit New" page to that effect. Please use the saxon-help mailing list or forum in future. Apart from anything else, you're likely to get a quicker response.
XInclude processing is done by the Xerces parser, not by Saxon itself. The XInclude processor in the version of Xerces that ships with J2SE 5 is very buggy; try switching to the latest Xerces distribution from Apache.
Logged In: YES
user_id=251681
Originator: NO
Closed because this is probably a bug in the version of Xerces that was used.