From: <sju...@ko...> - 2006-07-28 07:06:38
|
Hello all, I upgraded from the 20060313 snapshot to the recent 1.0rc yesterday. =20 Most things seem to work fine, but the XInclude expansion isn't =20 working like it used to. More precisely, in my case, fragment =20 identifiers are %-escaped, making the references invalid, and thus =20 killing the XIncludes. Example: <entry id=3D"33012"> <topicClass top=3D"fuolahas"/> <entryref xml:lang=3D"sme"> <xi:include href=3D"terms-sme.xml#xpointer(//entry=20 [@id=3D'=C4=8Dielgesah=C3=A1'])"/> </entryref> </entry> This XInclude shows up in the exist.log as follows: 2006-07-28 09:35:09,262 [P1-9] DEBUG (XIncludeFilter.java =20 [startElement]:169) - processing include ... 2006-07-28 09:35:09,264 [P1-9] DEBUG (XIncludeFilter.java =20 [processXInclude]:213) - found href=3D"terms-sme.xml#xpointer(//entry=20 [@id=3D'=C4=8Dielgesah=C3=A1'])" 2006-07-28 09:35:09,282 [P1-9] DEBUG (XQuery.java [compile]:154) - =20 Query diagnostics: [root-node]/descendant-or-self::entry[attribute::id =3D "%C4%8Dielgesah%=20= C3%A1"] 2006-07-28 09:35:09,283 [P1-9] DEBUG (XQuery.java [compile]:156) - =20 Compilation took 16 2006-07-28 09:35:09,284 [P1-9] INFO (XIncludeFilter.java =20 [processXInclude]:305) - xpointe r query: [root-node]/descendant-or-self::entry[attribute::id =3D "%C4%=20= 8Dielgesah%C3%A1"] 2006-07-28 09:35:09,303 [P1-9] DEBUG (HTTPUtils.java =20 [addLastModifiedHeader]:61) - mostRec entDocumentTime: 0 This bug effectively shuts down our application - we rely heavily on =20 XIncludes to avoid duplication of info. Nothing relevant has changed in our code as part of the upgrade, and =20 as the log shows, the first look-up uses the correct UTF-8 string =20 (without escaping), whereas the other two log entries display the =20 escaped variant that causes the include to fail. In cases where the =20 identifier consists of pure ASCII, the XInclude is resolved properly. I couldn't find any mentioning of this problem in the recent =20 discussions about XIncludes, nor in the changelog - my apologies if I =20= overlooked something. Best regards, Sjur |