After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 68882 - Implement the ID/IDREF fixup of Xinclude
Implement the ID/IDREF fixup of Xinclude
Status: VERIFIED FIXED
Product: libxslt
Classification: Platform
Component: general
1.0.10
Other other
: Normal normal
: ---
Assigned To: Daniel Veillard
Daniel Veillard
Depends on:
Blocks:
 
 
Reported: 2002-01-16 23:50 UTC by Robert Stayton
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Robert Stayton 2002-01-16 23:50:46 UTC
The updated XInclude spec has a fixup for resolving ID/IDREFs in included 
documents.  This needs to be implemented.
Comment 1 Daniel Veillard 2002-02-10 11:02:40 UTC
I think the ID part should be fixed in CVS now and will be in the
next release:

orchis:~/XML -> cat test/XInclude/docs/docids.xml 
<!DOCTYPE book [
<!ELEMENT book (doc*)>
<!ELEMENT doc (isid*)>
<!ELEMENT isid EMPTY>
<!ATTLIST isid myid ID #IMPLIED>
]>
<book>
<doc>
<isid myid="mine"/>
<isid myid="dup"/>
</doc>
<!-- including another XML document with IDs -->
<xinclude:include xmlns:xinclude="http://www.w3.org/2001/XInclude"
		 href="../ents/ids.xml"/>
</book>
orchis:~/XML -> cat test/XInclude/ents/ids.xml    
<!DOCTYPE doc [
<!ELEMENT doc (isid*)>
<!ELEMENT isid EMPTY>
<!ATTLIST isid myid ID #IMPLIED>
]>
<doc>
<isid myid="dup"/>
<isid myid="foo"/>
<isid myid="bar"/>
</doc>
orchis:~/XML -> xmllint --xinclude --shell test/XInclude/docs/docids.xml
/ > dir id('foo')
ELEMENT isid
  ATTRIBUTE myid
    TEXT
      content=foo
/ > 

  The IDs from the included Infoset have been merged in the
resulting infoset, and then available to XPath,

  This should fix your problem :-)

Daniel
Comment 2 Daniel Veillard 2002-02-12 08:36:31 UTC
The libxml2-2.4.15 / libxslt-1.0.12 release should fix the problem,

  thanks,

Daniel