2008/6/30 Adam Retter <adam@exist-db.org>:
.xq files are executed by Cocoon, whereas .xql files are executed by
eXist - I would try a .xql file if I was you, then eXist will have
control over the output and if you set the correct serialization
options then this should work fine.
 
thanks, both .xq and .xql  i tried,but doesnot work, (*.jar file installer 64bits ubuntu 4core cpu, apache2 + rproxy eXist1.2.3)
and now i find, if i use tomcat OR jetty and a exist.war it is work.
so , i want to ask , is there platform problems?





2008/6/27 ㄏㄨㄚ <dn2965@gmail.com>:
> HI everyOne..
>
> my eXist is 1.2.3 ,Ubuntu8 64bits,java jre 6+
>
> http://localhost:8088  rproxy to http://domainname/eXist
> i use a r-proxy redirect a 8088 port to http://url/eXist/.../x.xq
>
> this is my xquery
>
> xquery version "1.0";
> declare namespace exist="http://exist.sourceforge.net/NS/exist";
> declare option exist:serialize "indent=yes method=xhtml
> doctype-public=-//W3C//DTD&#160;XHTML&#160;1.0&#160;Strict//EN
> doctype-system=http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";
> <html xmlns="http://www.w3.org/1999/xhtml">
>      <head>
>         <title id="sp">test</title>
>     </head>
>     <body>
>         <h1>test</h1>
>     </body>
> </html>
> browsers(FF safari oprea) return
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml">
>     <head>
>         <title id="sp">test</title>
>     </head>
>     <body>
>         <h1>test</h1>
>     </body>
> </html>
>
> it's  right, and correct display, but IE return a xml Tree in browser...
>
>
>
>
>
> yes, maybe you know i want to output a xhtml document, but i tried many way
> to set  declare option exist:serialize  my eXist still cannot output a
> xhtml...
> so someone can help
>
>
> some one say apache need to fix minetype for xhtml like this
> http://www.ibm.com/developerworks/xml/library/x-tipapachexhtml/?S_TACT=105AGX52&S_CMP=cn-a-r
> http://www.w3.org/TR/xhtml-media-types/#application-xhtml-xml
> but in my this case it doesn't work~~~
>
>
> and if someone have time can use IE visit this  test url
>
> http://projects.ddbc.edu.tw/eXist/rest/db/YBh/xq/testhtml.xq
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Exist-open mailing list
> Exist-open@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/exist-open
>
>



--
Adam Retter

eXist Developer
{ England }
adam@exist-db.org
irc://irc.freenode.net/existdb