As far as I can see the ddtek:serialize-to-url() call can easily be dispensed with - Saxon will automatically serialize the results if you run from the command line.
 
Judging from the information at http://www.datadirect.com/developer/data-integration/tutorials/adapters-unleashed/index.ssp, it looks to me as if you can use the DataDirect XML Converters from Saxon when running Saxon from the command line by nominating the StylusFileFactory class as your URIResolver using the -r option on the Saxon command line.
 

Regards,

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



From: Jolene Meyer [mailto:jolene.meyer@endries.com]
Sent: 29 January 2010 19:50
To: Mailing list for the SAXON XSLT and XQuery processor
Subject: Re: [saxon] beginners help

Below is an email I got from Stylus Studio.  If I remove the ddtek stuff, and purchase the XML converters along with Saxon, would I be able to automate it?

 

Thanks

Jolene

 

Hi Jolene,

Stylus Studio ships with a license for DataDirect XQuery and Saxon-SA that is only allowed to run through the IDE. In order to run your query from the command line (or from a custom Java program) you need to obtain a full license from either one vendor (http://www.xquery.com and http://www.saxonica.com). In case your query is not using any advanced feature of XQuery (e.g. schema typing) you could also use the open-source (and free) Saxon-B processor.

If the conversion step is done through DataDirect XML Converters, you also need a license from http://www.xmlconverters.com

 

Hope this helps,

Alberto

 

Jolene Meyer

 

Computer Programmer/Analyst

 

(920) 756 6168

 

 

 

 

-----Original Message-----
From: Michael Kay [mailto:mike@saxonica.com]
Sent: Thursday, January 28, 2010 11:12 AM
To: 'Mailing list for the SAXON XSLT and XQuery processor'
Subject: Re: [saxon] beginners help

 

 

There are couple of things in this query that are specific to the ddtek

Query processor and that won't work with Saxon.

 

Firstly, the call ddtek:serialize-to-url() is a vendor-specific extension

function.

 

Secondly, the format of the URI passed to the doc() function is

vendor-specific. I suspect this is taking a flat file and presenting it as

an XML document. Neat idea, but not supported by Saxon.

 

Regards,

 

Michael Kay

http://www.saxonica.com/

http://twitter.com/michaelhkay

 

 

> -----Original Message-----

> From: Jolene Meyer [mailto:jolene.meyer@endries.com]

> Sent: 28 January 2010 17:02

> To: Mailing list for the SAXON XSLT and XQuery processor

> Subject: Re: [saxon] beginners help

>

> Here is my xQuery

>

> Jolene Meyer

>

> Computer Programmer/Analyst

>

> (920) 756 6168

>

>

>

> -----Original Message-----

> From: Martin Honnen [mailto:Martin.Honnen@arcor.de]

> Sent: Thursday, January 28, 2010 10:52 AM

> To: Mailing list for the SAXON XSLT and XQuery processor

> Subject: Re: [saxon] beginners help

>

> Jolene Meyer wrote:

> > I am very very new to this.

> >

> > 

> >

> > I see all your xQuery command line scripts all call for an input XML

> file.

> >

> > 

> >

> > My input file is a non-XML file and my xQuery takes that

> and converts

> it

> > to a XML and then processes to my needed format.

>

> Does XQuery allow you to process any non-XML files? I thought

> the unparsed-text function is only part of XSLT, not of

> XQuery. How exactly does your XQuery read that file?

>

> > Can Saxon run without an input file in the command line? If

> so, do you

>

> > have an example.

>

> java -cp C:\programs\saxon\saxon9.jar net.sf.saxon.Query query.xq

>

> should do, of course with the path adjusted to your

> installation of the saxon jar.

>

> --

>

>          Martin Honnen

>          http://msmvps.com/blogs/martin_honnen/

>

> --------------------------------------------------------------

> ----------

> ------

> The Planet: dedicated and managed hosting, cloud storage,

> colocation Stay online with enterprise data centers and the

> best network in the business Choose flexible plans and

> management services without long-term contracts Personal 24x7

> support from experience hosting pros just a phone call away.

> http://p.sf.net/sfu/theplanet-com

> _______________________________________________

> saxon-help mailing list archived at

> http://saxon.markmail.org/ saxon-help@lists.sourceforge.net

> https://lists.sourceforge.net/lists/listinfo/saxon-help

>

 

 

------------------------------------------------------------------------------

The Planet: dedicated and managed hosting, cloud storage, colocation

Stay online with enterprise data centers and the best network in the business

Choose flexible plans and management services without long-term contracts

Personal 24x7 support from experience hosting pros just a phone call away.

http://p.sf.net/sfu/theplanet-com

_______________________________________________

saxon-help mailing list archived at http://saxon.markmail.org/

saxon-help@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/saxon-help