On 08/21/2013 11:18 PM, Bardo Nelgen wrote: > > Hi all, > > sorry to pick this up again so late, but is there a solution for > Cocoon 2.2 as well? > > Tried both approaches without the desired result, for a piece of > generated JavaScript… > > As the XML serialization did not work as advertised in this thread so > far, I'm currently going with > >> <map:serialize type="text" > > > and keep getting > > http://www.cityapi.eu/semaworx/MyCompressed.js > > Looking for ideas on how to make the Doctype disappear *without* > running an extra XSLT cycle? > > Any hint is appreciated!! > > Best, > > Bardo > > > On 19.06.13 18:55, Mansour Al Akeel wrote: >> <map:parameter name="omit-xml-declaration" value="yes"/> >
On this eMail the reason why top posting is not such a good idea for ml. I have no clue about the context. However <map:serialize type="text" > will return mime-type="text/plain" You want mime-type="application/json" <map:serialize type="text" mime-type="application/json"> <map:parameter name="omit-xml-declaration" value="yes"/> </map:serialize> HTH -- Thorsten Scherler <scherler.at.gmail.com> codeBusters S.L. - web based systems <consulting, training and solutions> http://www.codebusters.es/ --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org