[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qexo-general] Syntax questions
From: |
Eric Safern |
Subject: |
[Qexo-general] Syntax questions |
Date: |
Tue, 24 Dec 2002 00:57:35 -0800 |
Hi,
Having some difficulties.
The following code:
$ cat x.xql
let
$newline := "
",
$header1 := "<xml-stylesheet type='text/xsl' href='GetFor
tune.xsl'>"
return
{$header1} {$newline}
$
fails to compile:
$ java -cp
/usr/share/kaffe/servlet.jar:/home/esafern/work/kawa/kawa/kawa-1.6.99.jar
kawa.repl --xquery ./x.xql
./x.xql:7:4: missing PrimaryExpr
./x.xql:7:4: missing ')' - saw @:3
./x.xql:7:5: missing ')' - saw @:4
./x.xql:7:13: missing ')' - saw @:12
./x.xql:7:15: missing PrimaryExpr
./x.xql:7:15: missing ')' - saw @:14
./x.xql:7:24: missing ')' - saw @:23
$
Any idea what's wrong with that syntax?
When I change the code by adding some useless tags, it compiles:
$ cat x.xql
let
$newline := "
",
$header1 := "<xml-stylesheet type='text/xsl' href='GetFo
rtune.xsl'>"
return
<html>
{$header1} {$newline}
</html>
$ java -cp
/usr/share/kaffe/servlet.jar:/home/esafern/work/kawa/kawa/kawa-1.6.99.jar
kawa.repl --xquery ./x.xql
<html>
<xml-stylesheet type='text/xsl' href='GetFortune.xsl'
>
</html>address@hidden html]$
But it puts the angle brackets out as < and >. How do I generate the
tag
straight? I tried putting it there in plain text, but the parser didn't
like the ? symbols.
Any suggestions will be greatly appreciated.
Thanks,
Eric Safern
- [Qexo-general] Invoking a Java Method, Eric Safern, 2002/12/23
- [Qexo-general] Servlets from the cgi-bin wrapper - some suggested fixes and a question, Eric Safern, 2002/12/23
- [Qexo-general] Syntax questions,
Eric Safern <=
- Re: [Qexo-general] Syntax questions, Marco Vezzoli, 2002/12/24
- RE: [Qexo-general] Syntax questions, Eric Safern, 2002/12/24
- Re: [Qexo-general] Syntax questions, Per Bothner, 2002/12/24
- RE: [Qexo-general] Syntax questions, Eric Safern, 2002/12/25
- Re: [Qexo-general] Syntax questions, Per Bothner, 2002/12/25
- [Qexo-general] Parsing command line arguments, Eric Safern, 2002/12/25