You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by H....@MI.unimaas.nl on 2004/10/13 16:18:02 UTC
RE: Request: uncomment and change enabled in
cocoon.xconf
Ok, this seems to be what I need, but I cannot find info on the syntax? What
I need the patch file to do is:
if-exist "...../debugger" then
unless "..../debugger/text()='enabled'" replace-with "enabled"
else
insert "<debugger/>"
I have the unless part, but that only works if the <debugger> tag exists.
Thanks.
Bye, Helma
> -----Original Message-----
> From: Vadim Gritsenko [mailto:vadim@reverycodes.com]
> Sent: Wednesday, 13 October, 2004 15:35
> To: dev@cocoon.apache.org
> Subject: Re: Request: uncomment and change
> <debugger>enabled</debugger> in coc oon.xconf
>
>
> H.vanderLinden@MI.unimaas.nl wrote:
> > Hi,
> >
> > small "feature" request: could someone please change the following
> > line in
> > cocoon.xconf:
> >
> > <!-- <debugger>enabled</debugger> -->
> >
> > to
> >
> > <debugger>disabled</debugger>
> >
> > (and if necessary change the code that acts on this).
> >
> > I'm using the flowscript debugger and each time I update my Cocoon
> > version (from SVN) I have to change this line manually before my
> > XPatchTask works again. :-(
>
> You can just change your patch task to append <debugger/> tag
> if it's not
> present. No need to remove comment.
>
> Vadim
>
Re: Request: uncomment and change enabled in
cocoon.xconf
Posted by Vadim Gritsenko <va...@reverycodes.com>.
H.vanderLinden@MI.unimaas.nl wrote:
> Ok, this seems to be what I need, but I cannot find info on the syntax? What
> I need the patch file to do is:
>
> if-exist "...../debugger" then
> unless "..../debugger/text()='enabled'" replace-with "enabled"
> else
> insert "<debugger/>"
>
> I have the unless part, but that only works if the <debugger> tag exists.
Here is what you need...
<xconf xpath="/cocoon/flow-interpreters/component-instance[@name='javascript']"
unless="debugger">
<debugger>enabled</debugger>
</xconf>
Vadim
> Thanks.
>
> Bye, Helma
>
>
>>-----Original Message-----
>>From: Vadim Gritsenko [mailto:vadim@reverycodes.com]
>>Sent: Wednesday, 13 October, 2004 15:35
>>To: dev@cocoon.apache.org
>>Subject: Re: Request: uncomment and change
>><debugger>enabled</debugger> in coc oon.xconf
>>
>>
>>H.vanderLinden@MI.unimaas.nl wrote:
>>
>>>Hi,
>>>
>>>small "feature" request: could someone please change the following
>>>line in
>>>cocoon.xconf:
>>>
>>><!-- <debugger>enabled</debugger> -->
>>>
>>>to
>>>
>>><debugger>disabled</debugger>
>>>
>>>(and if necessary change the code that acts on this).
>>>
>>>I'm using the flowscript debugger and each time I update my Cocoon
>>>version (from SVN) I have to change this line manually before my
>>>XPatchTask works again. :-(
>>
>>You can just change your patch task to append <debugger/> tag
>>if it's not
>>present. No need to remove comment.
>>
>>Vadim