returned html page is empty

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

returned html page is empty

masjab-2
Hey, 

can someone please tell me how to make the content of a xquery visible?
It´s always returned as an xml file and when I put in the "declare option exist:serialize "method=xhtml" it´s empty....

xquery version "1.0";
declare namespace exist = "http://exist.sourceforge.net/NS/exist";
declare namespace xmldb = "http://exist-db.org/xquery/xmldb";
declare namespace request="http://exist-db.org/xquery/request";
(:declare option exist:serialize "method=xhtml media-type=text/html omit-xml-declaration=no indent=yes 
        doctype-public=-//W3C//DTD XHTML 1.0 Transitional//EN
        doctype-system=http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";
:)
let $sD := request:get-data()
let $lemma := $sD/search[name='something1']/textValue/text()
let $coll1 := xmldb:xcollection('/db/dictionary/data')//entry[lemma &= $lemma] 
return
<html>
    {$coll1}
</html>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: returned html page is empty

masjab-2
almost solved...
It hase to be 

declare option exist:serialize "method=html media-type=text/html indent=yes";

But still I have one problem:
How can I integrate the returned page into my orbeon "my-theme" xslt template?








Am 02.06.2008 um 12:16 schrieb Masen J:

Hey, 

can someone please tell me how to make the content of a xquery visible?
It´s always returned as an xml file and when I put in the "declare option exist:serialize "method=xhtml" it´s empty....

xquery version "1.0";
declare namespace exist = "http://exist.sourceforge.net/NS/exist";
declare namespace xmldb = "http://exist-db.org/xquery/xmldb";
declare namespace request="http://exist-db.org/xquery/request";
(:declare option exist:serialize "method=xhtml media-type=text/html omit-xml-declaration=no indent=yes 
        doctype-public=-//W3C//DTD&#160;XHTML&#160;1.0&#160;Transitional//EN
        doctype-system=http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";
:)
let $sD := request:get-data()
let $lemma := $sD/search[name='something1']/textValue/text()
let $coll1 := xmldb:xcollection('/db/dictionary/data')//entry[lemma &= $lemma] 
return
<html>
    {$coll1}
</html>

--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
OW2 mailing lists service home page: http://www.ow2.org/wws



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws