Hi Mary, I tried adding
*declare option **xdmp:output* "cdata-section-elements=title"; to my script, but my titles still don't become CDATA. However, entering "title" in the *output cdata section localname *app server config worked. Any idea what I could be missing ? Am using ML 8.0-3 . Regards, Danny On Tue, May 5, 2015 at 9:40 AM, Mary Holstege <[email protected]> wrote: > > If you really want CDATA escaping for certain elements, you can use the > output options to control this. > > See https://docs.marklogic.com/guide/app-dev/appserver-control#id_86940 > for how to set output options at the appserver level and > https://docs.marklogic.com/guide/xquery/langoverview#id_71572 for how to > do so on a query by query level using prolog options. > > In your case, putting this at the top of your query should do it: > > declare option xdmp:output "cdata-section-elements=text"; > > Note, however, that testing this via QConsole won't be effective, > because of the way QConsole works, its own serialization options will > win out. > > //Mary > > On 05/05/2015 04:42 AM, Florent Georges wrote: > > Hi, > > > > First I guess your question has nothing to do with the email you > quote. > > > > You need to ask the question why you need CDATA. You most likely do > > not. Why is the following result not good for you? > > > > <text><p>Sample content of a P element.</p></text> > > > > Regards, > > > _______________________________________________ > General mailing list > [email protected] > Manage your subscription at: > http://developer.marklogic.com/mailman/listinfo/general >
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
