[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qexo-general] What's wrong for this FLWR expression?
From: |
Per Bothner |
Subject: |
Re: [Qexo-general] What's wrong for this FLWR expression? |
Date: |
Wed, 26 Mar 2003 09:08:45 -0800 |
User-agent: |
Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.3) Gecko/20030312 |
fan wrote:
> Please help me to solve this problem! Thanks!!!
compiled.jar;F:\JBuilder7\jdk1.3.1\demo\jfc\Java2D\Java2Demo.jar;F:\JBuilder7\jdk1.3.1\jre\lib\i18n.jar;F:\JBuilder7\jdk1.3.1\jre\lib\jaws.jar;F:\JBuilder7\jdk1.3.1\jre\lib\rt.jar;F:\JBuilder7\jdk1.3.1\jre\lib\sunrsasign.jar;F:\JBuilder7\jdk1.3.1\lib\dt.jar;F:\JBuilder7\jdk1.3.1\lib\htmlconverter.jar;F:\JBuilder7\jdk1.3.1\lib\tools.jar"
> kawatest.KawaTest "for $x in
> (document(F:\test\DataSources\XML\dblp1.xml)) where title='Advanced
> Programming in the Unix environment' return <KawaXQueryResult> {
> $x/dblp } </KawaXQueryResult>"
>
> for $x in (document(F:\test\DataSources\XML\dblp1.xml)) where
> title='Advanced Programming in the Unix environment' return
> <KawaXQueryResult> { $x/dblp }
>
>
> </KawaXQueryResult>=>java.lang.RuntimeException: invalid syntax in eval
> form:
> <string>:1:24: invalid characters after 'NCName:'
The 1:24 means means that the parser discovered an error at
line 1 column 24 - i.e. the argument to document.
The argument to document is an expression that *evaluates*
to a URL. A unquoted URL is not an expression. You need
to quote it:
for $x in document("F:\...") where .... return ...
Technically "F:\test\DataSources\XML\dblp1.xml" isn't a
valid URL either, but Kawa should handle it OK (though
I haven't tested that with Windows drive letters).
--Per Bothner
address@hidden http://per.bothner.com/