[Yanel-dev] "omit-doctype" when serializing XML/XHTML/HTML with a resource
Michael Wechner
michael.wechner at wyona.com
Fri Mar 2 14:39:44 CET 2012
Hi
I have just introduced (commit fc1fe3917f4d1ce7b1bd653f3fe9128df2a4299c)
the "omit-doctype" element,
which is useful, when producing XML/XHTML/HTML snippets instead
full-blown documents.
For example jquery does not seem to like the DOCTYPE when loading
(X)HTML via the "load" method.
By default doctypes will be added as before, but one can omit a doctype
by doing it as is demonstrated in the example below:
<yanel:custom-config>
<views xmlns="http://www.wyona.org/yanel/rti/1.0">
<view id="default">
<xslt>/app/xslt/element.xsl</xslt>
<mime-type>text/html</mime-type>
<serializer key="HTML_TRANSITIONAL">
<indent>no</indent>
<omit-doctype>true</omit-doctype>
</serializer>
</view>
</views>
</yanel:custom-config>
HTH
Michael
More information about the Yanel-development
mailing list