« Return to Thread: xquery return xhtml fail

xquery return xhtml fail

by solrD :: Rate this Message:

Reply to Author | View in Thread

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

 « Return to Thread: xquery return xhtml fail

LightInTheBox - Buy quality products at wholesale price!