That's Brilliant! Thank you Geert
2009/7/30 Geert Josten <geert.jos...@daidalos.nl>: > Hi Philip, > > I am not aware of XQuery features that allow specifying doctype for > outputting, similar to how that is possible in XSLT. Nor is there to my > knowledge specific functionality in MarkLogic Server to handle this. But > doing it the way below will work perfectly, just add the following statement > somewhere in your query body: > > xdmp:set-response-content-type("text/html; charset=utf-8") > > Kind regards, > Geert > >> > > > Drs. G.P.H. Josten > Consultant > > > http://www.daidalos.nl/ > Daidalos BV > Source of Innovation > Hoekeindsehof 1-4 > 2665 JZ Bleiswijk > Tel.: +31 (0) 10 850 1200 > Fax: +31 (0) 10 850 1199 > http://www.daidalos.nl/ > KvK 27164984 > De informatie - verzonden in of met dit emailbericht - is afkomstig van > Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit > bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit > bericht kunnen geen rechten worden ontleend. > > >> From: general-boun...@developer.marklogic.com >> [mailto:general-boun...@developer.marklogic.com] On Behalf Of >> Philip Fennell >> Sent: donderdag 30 juli 2009 11:05 >> To: general@developer.marklogic.com >> Subject: [MarkLogic Dev General] MarkLogic Server 4.1 and >> setting serialization option... >> >> Hello, >> >> I have a question regarding the setting of serialization >> options, specifically DOCTYPE declarations, for the output of >> an XQuery... yes that old chestnut! >> >> I've noticed from previous e-mails to this list that treating >> the DOCTYPE declaration as a string is a possible solution, >> but from the results I have had so far ML Server 4.1 returns >> the document as text/plain if you do something like this: >> >> >> xquery version "1.0-ml"; >> >> '<!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"> >> ... >> </html> >> >> >> I've searched the developer zone, but to no avail. >> >> I know that the provision of serialization setting is >> optional but is there any other way of setting this with ML Server? >> >> >> Regards >> >> Philip Fennell >> _______________________________________________ >> General mailing list >> General@developer.marklogic.com >> http://xqzone.com/mailman/listinfo/general >> > > _______________________________________________ > General mailing list > General@developer.marklogic.com > http://xqzone.com/mailman/listinfo/general > _______________________________________________ General mailing list General@developer.marklogic.com http://xqzone.com/mailman/listinfo/general