[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

module path question

Michael Kay mike at saxonica.com
Fri Mar 23 13:08:59 PST 2007


  module path question
> But I used the following command and still got the error.
>     java -cp $LIB/saxon8.jar net.sf.saxon.Query master.xquery
> 
> Mike could you please share your cmd?
> 

There's nothing special about the command. I've got

c:\tests\testsuite\qmodule002.xq:
=================================

(: MAIN MODULE :)

declare namespace ns1 = "namespace/ns1";

import module namespace ns2 = "namespace/ns2" at "dir/xmodule002b.xq";
ns2:fun1()

c:\tests\testsuite\dir\xmodule002b.xq
=====================================

module namespace ns2 = "namespace/ns2";

declare function ns2:fun1() {
	doc('source.xml')
};

c:\tests\testsuite\dir\source.xml
=================================

<any-source/>

and I do 

java -cp c:\saxon-build\8.7.3\bj\saxon8.jar net.sf.saxon.Query -t
c:\tests\testsuite\qmodule\qmodule002.xq

and it displays <any-source/>

Michael Kay
http://www.saxonica.com/



Purchase Stylus Studio Online Today!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.