[Yanel-usage] changing yanel toolbar

Michael Wechner michael.wechner at wyona.com
Wed Jun 29 23:36:30 CEST 2011


Am 29.06.11 18:03, schrieb Bettina Messmer:
> Hi,
>
> I'm trying now to add some functionality to my changed toolbar.
>
> Therefore I want to add a simple xml file (just containing html code) in a first step.
>
> I added:
>
>    <matcher pattern="**.upload-picture-left.html" rcpath="/usecases/pictureleft.yanel-rc"/>
>    <matcher pattern="**.upload-picture-right.html" rcpath="/usecases/pictureright.yanel-rc"/>
>
> to the map file. In usecases I added the according-files containing:
>
> <?xml version="1.0"?>
>
> <yanel:resource-config xmlns:yanel="http://www.wyona.org/yanel/rti/1.0">
>    <yanel:rti name="xml" namespace="http://www.wyona.org/yanel/resource/1.0"/>
>
>    <yanel:property name="xslt" value="/app/xslt/global2.xsl"/>
>    <yanel:property name="xslt-body" value="/app/xslt/picture-upload-left.xsl"/>
>    <yanel:property name="mime-type" value="application/xhtml+xml"/>
>
> </yanel:resource-config>


please note that the "xml" resource has different properties than the 
"contact-form" resource, hence give it a try with:

<yanel:resource-config xmlns:yanel="http://www.wyona.org/yanel/rti/1.0">
<yanel:rti name="xml" namespace="http://www.wyona.org/yanel/resource/1.0"/>

<yanel:property name="xslt" value="/app/xslt/picture-upload-left.xsl"/>
<yanel:property name="xslt" value="/app/xslt/global2.xsl"/>
<yanel:property name="mime-type" value="application/xhtml+xml"/>

</yanel:resource-config>


(also please make sure that your XSLT's are well-formed, e.g. input 
elements closed)

HTH

Michael


> In app/xslt/ my xsl file is located.
>
> Now my Body is displaye, when I comment the global".xsl property. But if it is uncommented, the file is not considered. Does anybody know why?
>
> thanks a lot and greets,
>
> Bettina
>



More information about the Yanel-usage mailing list