XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Agustín BonilloSubject: Problem with stylusxql calls
Author: Agustín Bonillo
Date: 28 Oct 2004 09:04 PM
Hi, I have a problem with stylusxql calls:

I have installed Stylus Studio 6.0 212f.
I want execute a xquery file that it contains a external parameter
called "documentos".

The problem is when I call to Stylusxql. I call so:

stylusxql -out results.xml -param documentos=documentos.xml archivo.xquery

The error produced is:

Error while evaluating external variable documentos
Error: An attempt was made to perform an axis step when the
Context Item was not a node [err:XP0020]

What is the problem??? How can I execute this query???

I'm sorry, I don't speak english very well.

I hope you can resolve my problem.

Thanks you.


UnknownNoname(3).

Postnext
Minollo I.Subject: Re: Problem with stylusxql calls
Author: Minollo I.
Date: 28 Oct 2004 10:00 PM
It looks like the attached XQuery didn't come through.

Anyway, assuming "documentos" is a string, probably you want to change the
command line invocation into something similar to:

stylusxql -out results.xml -param documentos='documentos.xml' archivo.xquery

Hope this helps,
Minollo

Postnext
Agustín BonilloSubject: Re: Problem with stylusxql calls
Author: Agustín Bonillo
Date: 31 Oct 2004 06:47 AM
Hi Minollo.

I have used the call that you have told me:

"stylusxql -out results.xml -param documentos='documentos.xml' archivo.xquery"

and it produces this error:

Error: Error retrieving resource: documentos.xml

Do you know why this error occurs???

Thanks You for your help.

Postnext
Ivan PedruzziSubject: Re: Problem with stylusxql calls
Author: Ivan Pedruzzi
Date: 31 Oct 2004 12:25 PM

Without see the xquery source it's difficult to say.

Is the file called documentos.xml in the same directory of the xquery
you are executing?

if it's not you should pass the full path like that

stylusxql -out results.xml -param documentos='file:///c:/myxml/documentos.xml' archivo.xquery

Ivan

Posttop
Agustín BonilloSubject: Re: Problem with stylusxql calls
Author: Agustín Bonillo
Date: 02 Nov 2004 04:34 AM
Thansk you. I have repair my problem.

Good Bye.

 
Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.