cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 28704] New: - [PATCH] Allow XConfToolTask to modify multiple attributes
Date Fri, 30 Apr 2004 06:50:56 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28704>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28704

[PATCH] Allow XConfToolTask to modify multiple attributes

           Summary: [PATCH] Allow XConfToolTask to modify multiple
                    attributes
           Product: Cocoon 2
           Version: Current CVS 2.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: core
        AssignedTo: dev@cocoon.apache.org
        ReportedBy: Ralph_Goers@dslextreme.com


The attached patch allows XConfToolTask to modify multiple attributes in a
single file. This is very useful in updating the pool parameters. 

The immplemmentation requires that attributes names start with "add-attribute-".
What follows the '-' is the attribute name. The value specified for this will
become the value of the attribute.  For example, the following will modify the
pool-max, pool-min, and pool-grow attributes on the file generator.  In
addition, it suppresses the comments that would normally be inserted. This is
useful when several patches are applied, some of which add new content while
some only modify attributes.

<xmap xpath="/sitemap/components/generators/generator[@name='file']"
      add-attribute-pool-max="100" add-attribute-pool-min="25"
      add-attribute-pool-grow="5" add-comments="false"
      />

Mime
View raw message