This discussion is archived
4 Replies Latest reply: Nov 19, 2012 10:44 PM by Eric Elzinga RSS

A Filter problem of XQuery Transformation in OSB

936963 Newbie
Currently Being Moderated
in 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
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.


  • Correct Answers - 10 points
  • Helpful Answers - 5 points