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
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Fred FooSubject: invalid relative uri with data conversion
Author: Fred Foo
Date: 03 Mar 2009 07:24 AM
Originally Posted: 03 Mar 2009 07:19 AM
I'm trying to run a simple data conversion xquery from a command line, but I keep getting this message:
-------------------------------
Error on line 2 of test.xquery:
FODC0002: Exception thrown by URIResolver: Invalid relative URI
{converter:file://c:\temp\test....}: Illegal character in opaque part at index
19:
converter:file://c:\temp\test.conv?file://c:\temp\test.txt
--------------------------------

What does this mean?

By the way, the same URI works fine inside Stylus Studio.

Postnext
Tony LavinioSubject: invalid relative uri with data conversion
Author: Tony Lavinio
Date: 03 Mar 2009 09:30 AM
The message explains it.
If you count in 19 characters, it gets you to the backslash.
URI references are supposed to use forward slashes, even when referring
to filenames.
If this URI is embedded in Java, the '\' followed by the 't' is being
interpreted as a TAB character.
Why does it work then in Stylus Studio? Good question. We use the
system libraries on whatever platform we host in, and they are just
inconsistent in their handling of '\' when not embedded in source code.

Postnext
Fred FooSubject: invalid relative uri with data conversion
Author: Fred Foo
Date: 03 Mar 2009 02:56 PM
Many thanks. Ok, if I replace the backslash with forward slash, it still works in Stylus Studio, but when running from a windows script I get the error: "FODC0002: java.net.MalformedURLException: unknown protocol: converter". I should probably make this the subject of a different topic, but can you point me in the right direction please?

I'm a complete newb with regard to setting up these custom conversions in SS so would appreciate any help!

Postnext
Tony LavinioSubject: invalid relative uri with data conversion
Author: Tony Lavinio
Date: 03 Mar 2009 05:54 PM
Are you using the DataDirect XQuery engine to process you query?
The converter: URI protocol is handled by the DataDirect XML Converters
library which is included with Stylus Studio.

Postnext
Fred FooSubject: invalid relative uri with data conversion
Author: Fred Foo
Date: 04 Mar 2009 04:36 PM
Ok, yes, my mistake. I was trying to run with the saxon query processor. I've changed my command file to run the DataDirect xQuery processor instead, but it tells me that the evaluation period has expired. I have a licenced version of Stylus Studio Enterprise, do I have to licence the DataDirect library separately? All I want to do is prove the functionality prior to recommending it to my customer. I would appreciate your advice.

Postnext
Tony LavinioSubject: invalid relative uri with data conversion
Author: Tony Lavinio
Date: 05 Mar 2009 12:08 AM
If you contact our sales organization via email and send them the reason
for an extension and your current license key, they can grant the
extension for you.

Posttop
Fred FooSubject: invalid relative uri with data conversion
Author: Fred Foo
Date: 05 Mar 2009 01:23 AM
Many thanks Tony, you've been very helpful.

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 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.