Hi Andrew,

I changed and I got the same error as when I use fn:base-uri(.)

Description: XDMP-NOTANODE: doc()/child::ns1:article/ 
descendant::ns1:sub[not(attribute::temp1 or
attribute::temp2)]/document-uri(root(.)) -- xs:anyURI("/pt/ajr_1.xml") is not a
node


The result is really only one document, but it seems that I cannot put
fn:document-uri at the end of the query.

Thanks, 
Helen


>>> Andrew Welch <[email protected]> 1/20/2010 1:43 PM >>>
2010/1/20 Helen Chen <[email protected]>:
> Hi Andrew and Geert,
>
> It did work much much faster and better, I can run it on production now.
>  Thanks a lot.
>
> And I got one problem:
>
> at the end of the query, if I have /fn:document-uri(.), like my query is :
> fn:doc()/ns1:article//ns1:sub[fn:not(@temp1 or @temp2 )]/fn:document-uri(.)
> then I got empty sequence,

change it to pass the root node to the document-uri function:

fn:document-uri(fn:root(.))


cheers
-- 
Andrew Welch
http://andrewjwelch.com 
Kernow: http://kernowforsaxon.sf.net/
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to