Posted:
12-May-2008 23:31 Somehow I missed this earlier, but it seems like exactly what I want to do. Since saxon is bypassing the NK accessors it can't get in that dependency. so instead, I can use attachDependency to explicitly add the dependency on the underlying files. <instr> <type>attachDependency</type> <operand>this:response</operand> <param>file:///tmp/xmlfiles</param> <target>this:response</target> </instr> |
However, this ends up with it being always expired - it looks like NK is unable to determine expiries on file: urls. Using the request trace, if I enter a file: url, it always comes up as already expired. My example code above is pretty much complete, the only thing missing is the set of documents to be queried. For example, file:///tmp/xmlfiles/1.xml is <doc> <title>hello</title> </doc> |
and file:///tmp/xmlfiles/2.xml is <doc> <title>world</title> </doc> |
with the result of the xquery being something like <result:sequence xmlns:result="saxon"> <result:element> <titles> <title>hello</title> <title>world</title> </titles> </result:element> </result:sequence> |
|