A Filter problem of XQuery Transformation in OSB
936963Nov 19 2012 — edited Nov 20 2012in a project, i use XQuery Transformation of OSB to realize filter function,but have some trouble.
in the XQuery Transfornation,i use xuquer's FWR expression
" <ns0:name>
{ for $cp in doc("D:\osbspace\Test\XQUERY\book.xml")/bookstore
where $cp/book= data($getGreeting1/ns1:name)
return 2
}
</ns0:name>
"
to get the "book.xml", can only use Absolute path("D:\osbspace\Test\XQUERY\book.xml"),but
i want to use Relative path like"../XQUERY/book.xml",and it report abnormal"Error retrieving resource 'file://book.xml'".
I have tride in the XMLSpy,the ative path is worked,why can't it(Relative path) be used in OSB's XQuery Transformation?
Anyone can help me? Sorry for my bad English.