qexo-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qexo-general] Syntax questions


From: Marco Vezzoli
Subject: Re: [Qexo-general] Syntax questions
Date: Tue, 24 Dec 2002 11:05:49 +0100

try without quoting the tag; please note that what you are trying to do
is equivalent to this simpler constant xquery expression:

<html>
 <xml-stylesheet type='text/xsl' href='GetFortune.xsl'/>
</html>

or
 let 
$a := <xml-stylesheet type='text/xsl'href='GetFortune.xsl'/>
 return
<html>
{$a}
</html>

address@hidden wrote:
> 
> 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
> 
> _______________________________________________
> Qexo-general mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/qexo-general

-- 
Marco Vezzoli      tel. +39 039 603 6852
STMicroelectronics fax. +39 039 603 5055



reply via email to

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