Works !!! Thanks !
---------------------------------------- David A. Lee Senior Principal Software Engineer Epocrates, Inc. [email protected]<mailto:[email protected]> 812-482-5224 From: [email protected] [mailto:[email protected]] On Behalf Of Danny Sokolsky Sent: Wednesday, July 20, 2011 12:26 PM To: General MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] HTML serialization in app server Hi David, There are a couple of things you can do. On the App Server configuration, you can set the output encoding to ASCII. It defaults to UTF-8. Also, in your XQuery code, you can declare an xdmp:output option, which uses the serialization methods referred to in the thread you posted. Here is the link in the doc to that: http://docs.marklogic.com/4.2doc/docapp.xqy#display.xqy?fname=http://pubs/4.2doc/xml/xquery/langoverview.xml%2347415 Now remember if you are using cq you will not see these take effect, as the option has to be set in the "outer" query, and cq does an eval (which is the "outer" query). And if you are using XSLT, the xsl:output instruction handles this. -Danny From: [email protected] [mailto:[email protected]] On Behalf Of Lee, David Sent: Wednesday, July 20, 2011 9:12 AM To: General Mark Logic Developer Discussion ([email protected]) Subject: [MarkLogic Dev General] HTML serialization in app server I'm trying to generate Javascript inline in HTML and running into problems serializing "&" and ">" ... See http://markmail.org/search/?q=list%3Acom.x-query.talk#query:list%3Acom.x-query.talk+page:1+mid:f64pf62hcilqbqew+state:results I am looking at ML functions and cant find one that controls the serialization. Is there a way to force HTML serialization in an App server ? Thank you ! ---------------------------------------- David A. Lee Senior Principal Software Engineer Epocrates, Inc. [email protected]<mailto:[email protected]> 812-482-5224
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
