[Yanel-dev] Documentation of BasicXMLResource and setting of
mime-types
simon litwan
simon.litwan at wyona.com
Tue Dec 4 08:21:21 CET 2007
Michael Wechner schrieb:
> Hi
>
> Is the usage of the BasicXMLResource documented somewhere resp. how
> does the following custom config work?
it's not documented yet.
>
> <yanel:custom-config>
> <views>
> <view id="default" type="jelly">
> <template>/usecases/default.jelly</template>
> </view>
there was a description in the bug:
http://bugzilla.wyona.com/cgi-bin/bugzilla/show_bug.cgi?id=5624
<yanel:custom-config>
<views>
<view id="default">
<mime-type>text/html</mime-type>
<xslt>/xslt/global.xsl</xslt>
<serializer key="HTML_TRANSITIONAL">
<omit-xml-declaration>yes</omit-xml-declaration>
<doctype-public>-//W3C//DTD XHTML 1.0 Transitional//EN</doctype-public>
<doctype-system>http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</doctype-system>
</serializer>
</view>
<view id="source">
<mime-type>application/xml</mime-type>
</view>
<view id="xhtml">
<mime-type>application/xhtml+xml</mime-type>
<xslt>/xslt/global.xsl</xslt>
<serializer key="XHTML_STRICT"/>
</view>
<view id="test">
<mime-type>text/html</mime-type>
<xslt>/xslt/viewtest.xsl</xslt>
<xslt>/xslt/global.xsl</xslt>
</view>
</views>
</yanel:custom-config>
HTH
simon
>
>
> Also is it possible to define within such a custom config a mime type
> per view?
>
> Thanks
>
> Michi
>
More information about the Yanel-development
mailing list