|
View:
New views
1 Messages
—
Rating Filter:
Alert me
|
|
|
[ exist-Bugs-2020841 ] transform document($name, $node) uses wrong contextBugs item #2020841, was opened at 2008-07-17 18:08
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=2020841&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: Brad Clements (bkc) Assigned to: Nobody/Anonymous (nobody) Summary: transform document($name, $node) uses wrong context Initial Comment: project.version=1.3.0dev project.build=20080716 svn.revision=8000 document($a, $b) does not resolve 'a' with respect to 'b', but rather with respect to the stylesheet's context relative-test.xq demonstrates that document('child.xml', /) does not resolve 'child.xml' in the context of the document that is referred to by node / (root.xml), but rather uses the context of the stylesheet itself. This appear to be a bug in eXist.src.org.exist.xquery.functions.transform.Transform.DatabaseResolver.resolve(String, String), where xalan passes 'null' for base, and resolve() doesn't even look at base anyway. exist.log shows (w/ modified Transform.java): 2008-07-17 13:41:45,336 [SocketListener0-3] DEBUG (NativeSerializer.java [serializeToReceiver]:107) - serializing document 88 (/db/byways/test/bugtests/resources/root.xml) to SAX took 0 2008-07-17 13:41:45,336 [SocketListener0-3] DEBUG (Transform.java [resolve]:496) - DatabaseResolver.resolve href='child.xml', base='null' 2008-07-17 13:41:45,337 [SocketListener0-3] DEBUG (Collection.java [getDocument]:511) - Document child.xml not found! 2008-07-17 13:41:45,337 [SocketListener0-3] DEBUG (NativeBroker.java [getXMLResource]:1595) - document '/db/byways/test/bugtests/child.xml' not found! 2008-07-17 13:41:45,337 [SocketListener0-3] DEBUG (Transform.java [resolve]:514) - Document child.xml not found in collection /db/byways/test/bugtests where the expected document path should be /db/byways/test/bugtests/resources/child.xml' the attached .zip file contains relative-test.xq that demonstrates this (and 2 other bugs to be filed separately) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=117691&aid=2020841&group_id=17691 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Exist-open mailing list Exist-open@... https://lists.sourceforge.net/lists/listinfo/exist-open |
| Free Forum Powered by Nabble | Forum Help |