cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <va...@reverycodes.com>
Subject Re: Request: uncomment and change <debugger>enabled</debugger> in cocoon.xconf
Date Thu, 14 Oct 2004 13:33:14 GMT
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

Mime
View raw message