qexo-general
[Top][All Lists]
Advanced

[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>
        &lt;xml-stylesheet type='text/xsl' href='GetFortune.xsl'
&gt;

        </html>address@hidden html]$

But it puts the angle brackets out as &lt; and &gt;.  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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]