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

Use Saxon Proccessor to Process XQuery

James A. Robinson jim.robinson at stanford.edu
Fri Dec 28 09:03:11 PST 2007


  Use Saxon Proccessor to Process XQuery
 
>   I wonder if there are any of you on this list use Saxon (Java) to 
> process XQuery files. I currently process my XQuery files with a XML 

Sure it's possible to do that.

> declare variable $text external;

I'm having a hard time understanding how this parameter relates to the
firstName parameter you pass below in your example.

> The query works, without a terminal prompt, that is. What I want to do 
> is to call it with a command prompt so I can change my variable from 
> case to case. According to Dr. Kay's article in Learn XQuery in 10 
> minutes, the prompt is as follows:
> 
>   java net.sf.saxon.Query sample.xquery firstName=Lisa

On a Linux/Unix/MacOS X machine, assuming java is in your
execution path, you should be able to run:

  java -classpath /path/to/your/saxon8.jar net.sf.saxon.Query sample.xquery firstName=Lisa

though I would have expected a parameter 'text=Lisa', given your
declaration of a $text external variable.

On a Windows machine I'd imagine the classpath argument would be
something more like C:\some\path\to\your\saxon8.jar


Jim

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
James A. Robinson                       http://x-query.com/mailman/listinfo/talk
Stanford University HighWire Press      http://highwire.stanford.edu/
+1 650 7237294 (Work)                   +1 650 7259335 (Fax)


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.