From: Giampiero L. <glo...@eb...> - 2002-11-16 11:24:03
|
In the Exist database I have stored 3 files such as the following: <?xml version=3D"1.0" encoding=3D"UTF-8"?> <xi:include xmlns:xi=3D"http://www.w3.org/2001/XInclude" = href=3D"....."/> these files are in exist /db/Dottrina/Codice/AmministrazioneCentrale/ = sub-directory. Using the Cocoon interface when I search the "xi:include" element = starting from /db path = (http://localhost:8080/exist/xmldb/db/?xpath=3Dxi:include) the results are correct: xi:include [1]=20 parent collection: /db=20 <xi:include href = =3D"cocoon:/xmldb/db/Legislazione/2001/urn:nir:stato:legge:2001-12-28;448= " exist:id =3D"1" exist:source = =3D"/db/Dottrina/Codice/AmministrazioneCentrale/xinclude:urn:nir:stato:le= gge:2001-12-28;448" /> =20 <xi:include href = =3D"cocoon:/xmldb/db/Legislazione/2001/urn:nir:ministero.pubblica.istruzi= one:intesa:2001-04-19;17" exist:id =3D"1" exist:source = =3D"/db/Dottrina/Codice/AmministrazioneCentrale/xinclude:urn:nir:minister= o:pubblica.istruzione:intesa:2001-04-19;17" /> =20 <xi:include href = =3D"cocoon:/xmldb/db/Legislazione/1993/urn:nir:stato:decreto:legislativo:= 1993-02-03;29" exist:id =3D"1" exist:source = =3D"/db/Dottrina/Codice/AmministrazioneCentrale/xinclude:urn:nir:stato:de= creto:legislativo:1993-02-03;29" /> =20 But, if I search the "xi:include" element starting from /db/Dottrina/ = for example = (http://localhost:8080/exist/xmldb/db/Dottrina/?xpath=3Dxi:include), I = get only two results: xi:include [1]=20 parent collection: /db/Dottrina=20 <xi:include href = =3D"cocoon:/xmldb/db/Legislazione/2001/urn:nir:ministero.pubblica.istruzi= one:intesa:2001-04-19;17" exist:id =3D"1" exist:source = =3D"/db/Dottrina/Codice/AmministrazioneCentrale/xinclude:urn:nir:minister= o:pubblica.istruzione:intesa:2001-04-19;17" /> =20 <xi:include href = =3D"cocoon:/xmldb/db/Legislazione/1993/urn:nir:stato:decreto:legislativo:= 1993-02-03;29" exist:id =3D"1" exist:source = =3D"/db/Dottrina/Codice/AmministrazioneCentrale/xinclude:urn:nir:stato:de= creto:legislativo:1993-02-03;29" /> =20 I don't understand why. Giampiero Longobardi |
From: Michael B. <mbn...@mb...> - 2002-11-16 12:11:07
|
Giampiero Longobardi wrote: [...] > Using the Cocoon interface when I search the "xi:include" element starting > from /db path the results are correct: [..] I don't find it easy to read html-formatted postings, but from what I can make out there's a basic oddity here: all your results seem to have the same exist:id attribute value of 1. Have you tried querying via one of the command-line clients? Michael |