atom feed6 messages in net.sourceforge.lists.saxon-help[saxon] Saxon on Java URLs
FromSent OnAttachments
Rademacher, GuntherMay 15, 2008 2:44 am 
Michael KayMay 15, 2008 3:07 am 
Rademacher, GuntherMay 15, 2008 6:03 am 
Michael KayMay 15, 2008 11:42 pm 
Rademacher, GuntherMay 18, 2008 11:51 pm 
Michael KayMay 19, 2008 12:04 am 
Subject:[saxon] Saxon on Java URLs
From:Rademacher, Gunther (
Date:May 15, 2008 2:44:58 am

When I ran some XQuery code that calls Java, I came across a problem with Java URLs being passed around in the query. Here is a small example:

declare namespace url=""; url:to-string(url:new(""))

This returns:

The anyURI value '""' is not an acceptable Java URL

with a call stack of

at net.sf.saxon.expr.PJConverter$AnyURIValueToURL.convert( 763) at net.sf.saxon.functions.ExtensionFunctionCall.getTargetInstance(Extension at java:315) at net.sf.saxon.functions.ExtensionFunctionCall.iterate(ExtensionFunctionCa at net.sf.saxon.expr.Expression.evaluateItem( at net.sf.saxon.expr.Expression.process( at at net.sf.saxon.Query.runQuery( at net.sf.saxon.Query.doQuery( at net.sf.saxon.Query.main(

Best regards, Gunther

Software AG - Sitz/Registered office: Uhlandstra?e 12, 64297 Darmstadt, Germany,
- Registergericht/Commercial register: Darmstadt HRB 1562 - Vorstand/ Management
Board: Karl-Heinz Streibich (Vorsitzender/Chairman), David Broadbent, Mark
Edwards, Dr. Peter Kurpick,Arnd Zinnhardt; - Aufsichtsratsvorsitzender/ Chairman
of the Supervisory Board: Frank F. Beelitz -