[Yanel-dev] BasicXMLResource inconsistencies

Evaldas Taroza etaroza at optaros.com
Mon Jan 14 14:08:34 CET 2008


Josias Thöny wrote:
> Evaldas Taroza wrote:
>> Hi,
>> there are static properties in BasicXMLResource:
>> SERIALIZER_OMIT_XML_DECLARATION = "serializer-omit-xml-declaration";
>> SERIALIZER_DOCTYPE_PUBLIC = "serializer-doctype-public";
>> SERIALIZER_DOCTYPE_SYSTEM = "serializer-doctype-system";
> 
> I think those properties are obsolete and should be removed.
> Thanks for pointing this out.
>
> The serializer can be overridden in the rc like so:
> 
> <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>
>   </views>
> </yanel:custom-config>
> 
The thing is that these properties
<omit-xml-declaration>
<doctype-public>
<doctype-system>

don't override serializer's behaviour... That needs to be implemented in 
BasicXMLResource.

Evaldas


More information about the Yanel-development mailing list