Subject: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.
Subject: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.
Subject: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!
Subject: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.
Subject: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.
Subject: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.