From: SourceForge.net <no...@so...> - 2007-07-26 12:26:33
|
Bugs item #1761000, was opened at 2007-07-26 12:26 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=117691&aid=1761000&group_id=17691 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Steffen M. Boelaars (boelaars) Assigned to: Nobody/Anonymous (nobody) Summary: XInclude random behaviour Initial Comment: There is a problem with the XInclude system in eXist. Sometimes xi:include elements are parsed and the target included, and sometimes not when they really should be. Take the following two example documents in the exist database: - /db/fui/sdt/as/ALC1_FULL.xml: <?xml version="1.0" encoding="UTF-8"?> <config xmlns:xi="http://www.w3.org/2001/XInclude"> <xi:include href="/db/fui/sdt/systems.xml#xpointer(//system[@name='ALC1']/*)"/> <parameter name="version">1</parameter> <parameter name="inst_server">server1.example.com</parameter> </config> - /db/fui/sdt/systems.xml: <?xml version="1.0" encoding="UTF-8"?> <template> <system name="ALC1"> <parameter name="bu">SDT</parameter> <parameter name="env">ALC1</parameter> <parameter name="db_sid">d1rwa</parameter> </system> </template> Now run the following XQuery: <root>{doc('/db/fui/sdt/as/ALC1_FULL.xml')/config}</root> The result is as expected: <root> <config> <parameter name="bu">SDT</parameter> <parameter name="env">ALC1</parameter> <parameter name="db_sid">d1rwa</parameter> <parameter name="version">1</parameter> <parameter name="inst_server">server1.example.com</parameter> </config> </root> But now expand the query a little bit to be slightly more specific: <root>{doc('/db/fui/sdt/as/ALC1_FULL.xml')/config/parameter}</root> You'd expect this to return the same set of parameters except without the surrounding config element. But no, the result is: <root> <parameter name="version">1</parameter> <parameter name="inst_server">server1.example.com</parameter> </root> The xi:include is suddenly not included anymore! This happens on both eXist 1.1.1-newcore and eXist 1.0.2-rev5396 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=117691&aid=1761000&group_id=17691 |