You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Walsh, Mark" <ma...@csu.edu.au> on 2004/11/10 09:18:03 UTC
Modifying an attribute with xpatch
I am trying to use the <xpatch> task to change the attribute
check-reload from yes to no in the sitemap element in cocoon.xconf.
Unfortunately, running my patch below causes the check-reload attribute
to change from "yes" to "yesno".
My patch looks like this
<cocoonxconf xpath="/cocoon/sitemap/@check-reload"
remove="/cocoon/sitemap/@check-reload/text()">no</cocoonxconf>
Before running the patch, the line in cocoon.xconf looks like this.
<sitemap check-reload="yes" .../>
After running my patch, the line in cocoon.xconf looks like this.
<sitemap check-reload="yesno" .../>
Any ideas/help would be appreciated. I am using cocoon 2.1.4
Re: Modifying an attribute with xpatch
Posted by Ralph Goers <Ra...@dslextreme.com>.
Walsh, Mark wrote:
> I am trying to use the <xpatch> task to change the attribute
> check-reload from yes to no in the sitemap element in cocoon.xconf.
>
>
>
> Unfortunately, running my patch below causes the check-reload
> attribute to change from "yes" to "yesno".
>
>
>
> My patch looks like this
>
> <cocoonxconf xpath="/cocoon/sitemap/@check-reload"
>
>
> remove="/cocoon/sitemap/@check-reload/text()">no</cocoonxconf>
>
>
>
> Before running the patch, the line in cocoon.xconf looks like this.
>
> <sitemap check-reload="yes" .../>
>
>
>
> After running my patch, the line in cocoon.xconf looks like this.
>
> <sitemap check-reload="yesno" .../>
>
>
>
> Any ideas/help would be appreciated. I am using cocoon 2.1.4
>
We do this with
<xconf xpath="/cocoon/sitemap" add-attribute="check-reload" value="no"
add-comments="false"/>
However, some enhancements were made to xpatch and I don't recall if
they are in 2.1.4 or only in 2.1.5.1.
Ralph
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org