Menu

#747 XInclude XPointer Namespace declaration lost

v9.0
closed
nobody
None
5
2012-10-08
2007-12-06
No

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:


<info>
<title>XInclude Test</title>
</info>


<xi:include parse="xml" xpointer="1/2" href="..">
<para>Test</para>
</xi:include>

..


The result is:

<info>
<title>XInclude Test</title>
</info>



<...>
<para>Test</para>

..

Hope it's really a bug and not luck of my XMl knowledge.

Regrads and thanks.

Discussion

  • Michael Kay

    Michael Kay - 2007-12-10

    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.

     
  • Michael Kay

    Michael Kay - 2008-01-18

    Logged In: YES
    user_id=251681
    Originator: NO

    Closed because this is probably a bug in the version of Xerces that was used.