
I'm very sorry to ask again, but I was not able to execute an XQuery file against an XML document ... I have 10.1 installed on Mc OS X. When I edit a transformation scenario, I have the options JAXP Saxon-B 9.1.0.5 Saxon-SA 9.1.0.5 Saxon6.5.5 Xalan Xsltproc As far as I understood, I should use Saxon version 9.x transformers. I use the XQuery file as "XSL URL". When I apply the scenario, I got the error: ----------------- SystemID: /Users/zastrow/Documents/ss09/xquery/second.xquery Programmname: Saxon6.5.5 Feherlevel: error Beschreibung: Failed to parse stylesheet SystemID: /Users/zastrow/Documents/ss09/xquery/second.xquery Programmname: Saxon6.5.5 Feherlevel: fatal Beschreibung: Content is not allowed in prolog. Anfang: 1:1 ------------------ I'm quite sure that I'm doing something wrong ..? Best, Tom -- Thomas Zastrow Seminar fuer Sprachwissenschaft Universitaet Tuebingen Wilhelm Str. 19 D-72074 Tuebingen http://www.thomas-zastrow.de Tel.: 07071/29-73968 Fax: 07071/29-5214

Thomas Zastrow wrote:
SystemID: /Users/zastrow/Documents/ss09/xquery/second.xquery Programmname: Saxon6.5.5 Feherlevel: error Beschreibung: Failed to parse stylesheet
Indeed, Saxon 6 does not support XQuery :-) Are you sure you selected Saxon-B? Regards, -- Florent Georges http://www.fgeorges.org/

Hello, You have to associate the scenario with the XQuery file, not the XML file, that is make the association when the currently edited file is an XQuery file, not an XML file. In a future version we will extend the scenarios associated with XML files to allow also setting an XQuery transformation but that will make the creation and editing of scenarios more complex. Only the Saxon 9 transformer allows a standalone input XML file. The other built-in XQuery engines are database connections which read their input from a database server so the scenario is set on the XQuery file. Regards, Sorin Thomas Zastrow wrote:
I'm very sorry to ask again, but I was not able to execute an XQuery file against an XML document ... I have 10.1 installed on Mc OS X.
When I edit a transformation scenario, I have the options
JAXP Saxon-B 9.1.0.5 Saxon-SA 9.1.0.5 Saxon6.5.5 Xalan Xsltproc
As far as I understood, I should use Saxon version 9.x transformers. I use the XQuery file as "XSL URL". When I apply the scenario, I got the error:
----------------- SystemID: /Users/zastrow/Documents/ss09/xquery/second.xquery Programmname: Saxon6.5.5 Feherlevel: error Beschreibung: Failed to parse stylesheet
SystemID: /Users/zastrow/Documents/ss09/xquery/second.xquery Programmname: Saxon6.5.5 Feherlevel: fatal Beschreibung: Content is not allowed in prolog. Anfang: 1:1 ------------------
I'm quite sure that I'm doing something wrong ..?
Best,
Tom

Sorin Ristache schrieb:
Hello,
You have to associate the scenario with the XQuery file, not the XML file, that is make the association when the currently edited file is an XQuery file, not an XML file. In a future version we will extend the scenarios associated with XML files to allow also setting an XQuery transformation but that will make the creation and editing of scenarios more complex.
Only the Saxon 9 transformer allows a standalone input XML file. The other built-in XQuery engines are database connections which read their input from a database server so the scenario is set on the XQuery file.
Regards, Sorin
Dear all, thanks for your replies. I'm sure that the XQuery is OK, on the comandline it runs without any problems. I made a screenshot of my settings: http://www.thomas-zastrow.de/temp/screenshot_oxygen.jpg Perhaps I understand something wrong here ... Thanks for any help, Tom -- Thomas Zastrow Seminar fuer Sprachwissenschaft Universitaet Tuebingen Wilhelm Str. 19 D-72074 Tuebingen http://www.thomas-zastrow.de Tel.: 07071/29-73968 Fax: 07071/29-5214

Hi Thomas, As Sorin mentioned, the current file needs to the the XQuery file, not the XML file. The XML files have only the XSLT transformation scenarios. So, click on the first.xquery file to make it the current file and then click on the Configure Transformation Scenario action. Let us know if you still have problems. Best Regards, George -- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Thomas Zastrow wrote:
Sorin Ristache schrieb:
Hello,
You have to associate the scenario with the XQuery file, not the XML file, that is make the association when the currently edited file is an XQuery file, not an XML file. In a future version we will extend the scenarios associated with XML files to allow also setting an XQuery transformation but that will make the creation and editing of scenarios more complex.
Only the Saxon 9 transformer allows a standalone input XML file. The other built-in XQuery engines are database connections which read their input from a database server so the scenario is set on the XQuery file.
Regards, Sorin
Dear all,
thanks for your replies. I'm sure that the XQuery is OK, on the comandline it runs without any problems.
I made a screenshot of my settings:
http://www.thomas-zastrow.de/temp/screenshot_oxygen.jpg
Perhaps I understand something wrong here ...
Thanks for any help,
Tom

George Cristian Bina schrieb:
Hi Thomas,
As Sorin mentioned, the current file needs to the the XQuery file, not the XML file. The XML files have only the XSLT transformation scenarios. So, click on the first.xquery file to make it the current file and then click on the Configure Transformation Scenario action. Let us know if you still have problems.
Best Regards, George Hello George,
thank you very much, now I understood it and it works perfect ;-) Best wishes, Tom -- Thomas Zastrow Seminar fuer Sprachwissenschaft Universitaet Tuebingen Wilhelm Str. 19 D-72074 Tuebingen http://www.thomas-zastrow.de Tel.: 07071/29-73968 Fax: 07071/29-5214
participants (4)
-
Florent Georges
-
George Cristian Bina
-
Sorin Ristache
-
Thomas Zastrow