|
[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 XQueryJames A. Robinson jim.robinson at stanford.eduFri Dec 28 09:03:11 PST 2007
> 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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






