xquery return xhtml fail

View: New views
5 Messages — Rating Filter:   Alert me  

xquery return xhtml fail

by solrD :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 XHTML 1.0 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@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: xquery return xhtml fail

by Adam Retter-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

.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.

2008/6/27 ㄏㄨㄚ <dn2965@...>:

> 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 XHTML 1.0 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@...
> https://lists.sourceforge.net/lists/listinfo/exist-open
>
>



--
Adam Retter

eXist Developer
{ England }
adam@...
irc://irc.freenode.net/existdb
-------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: xquery return xhtml fail

by solrD :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



2008/6/30 Adam Retter <adam@...>:
.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@...>:
> 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@...
> https://lists.sourceforge.net/lists/listinfo/exist-open
>
>



--
Adam Retter

eXist Developer
{ England }
adam@...
irc://irc.freenode.net/existdb





-------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: xquery return xhtml fail

by Adam Retter-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

We are not aware of any platform problems to date apart from with GNU Classpath.

2008/6/30 ㄏㄨㄚ <dn2965@...>:

>
>
> 2008/6/30 Adam Retter <adam@...>:
>>
>> .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@...>:
>> > 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 XHTML 1.0 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@...
>> > https://lists.sourceforge.net/lists/listinfo/exist-open
>> >
>> >
>>
>>
>>
>> --
>> Adam Retter
>>
>> eXist Developer
>> { England }
>> adam@...
>> irc://irc.freenode.net/existdb
>
>
>
>
>



--
Adam Retter

eXist Developer
{ England }
adam@...
irc://irc.freenode.net/existdb
-------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: xquery return xhtml fail

by Dannes Wessels-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

On Mon, Jun 30, 2008 at 5:32 PM, ㄏㄨㄚ <dn2965@...> wrote:
> 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?

when exist is running from "the jar" or as "war" the behaviour should
be the same. Note that exist uses jetty internally;
Maybe you have an issue with the reverse proxy.......... There are no
platform issues know.

D.

-------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/exist-open