[Yanel-dev] Configuring the mime-type of a view

Michael Wechner michael.wechner at wyona.com
Mon Oct 1 15:45:03 CEST 2007


Hi

Unfortunately Windows' IE has trouble within the XML declaration <?xml 
version="1.0"?> and as a workaround one can set the mime-type of the 
default view to text/html within the XML resource config instance.

But the problem then is, that the introspection will also say that the 
mime-type is text/html

https://127.0.0.1:8443/yanel/yanel-website/en/about.html?yanel.resource.usecase=introspection

but which is not very good, because editors as for instance Yulup won't 
check on well-formedness etc.

I would suggest to introduce a

<yanel:property name="source-view-mime-type" value="..."/>

for the XML resource which then would allow to set the correct mime-type 
also for the source view.

Of course one should think about a more general solution, because it 
concerns more than just the XML resource, but it would at least fix the 
issue of the XML resource.

WDYT?

Cheers

Michi

-- 
Michael Wechner
Wyona      -   Open Source Content Management - Yanel, Yulup
http://www.wyona.com
michael.wechner at wyona.com, michi at apache.org
+41 44 272 91 61



More information about the Yanel-development mailing list