I understand where you are coming from. I am looking at using XSLT to
transform the 'action.xml' file into a stylesheet that then applied to
another document will 'merge' the two. The example I have is using a
sitemap (for example) and an 'action.xml' file of 
-------------------
<xa:action xmlns:xa="http://ocom.com.au/xmlaction/1.0";
xmlns:map="http://apache.org/cocoon/sitemap/1.0";>
        <!-- Insert a new Action -->
        <xa:insert where="map:sitemap/map:components/map:actions">
                
                <map:action name="BindBean"
src="com.ocom.framework.cocoon.acting.BindBeanAction" />

        </xa:insert>
        
        <xa:replace where="map:sitemap/map:components/map:generators">
                <map:generators>NONE THEY ARE ALL GONE</map:generators>
        </xa:replace>
        
        <!-- Delete an action where @Name="BindBean" -->
        <xa:delete
where="map:sitemap/map:components/map:actions/map:[EMAIL PROTECTED]'DeleteMe
']" />
        
        <xa:update
where="map:sitemap/map:component/map:transformers/map:[EMAIL PROTECTED]
'xinclude']" >
                <map:transformer src="GONE" />
        </xa:update>
        
</xa:action>
------------------------
insert/replace/delete are easy and I have implemented them using XSLT
but update is really a merge and this it seems is not easy with XSLT.



Regards
 
 
Scott Warren
Ocom Software
... Exceeding Quality.....
phone |  (03) 9663 9156
mobile | +61 419 102063
email | mailto:[EMAIL PROTECTED]
web | ocom.com.au
 

-----Original Message-----
From: Joerg Heinicke [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 14 August 2003 5:22 PM
To: [EMAIL PROTECTED]
Subject: Re: XML Modification Transformer

What about XSLT?

Joerg

Scott Warren wrote:
> Is there a 'generic' XML modification transformer? I need a
transformer
> like the XConfToolTask tool used to build Cocoon (2.1rc1 atleast). The
> sunrise components seem to have the basic idea with
(InsertTransformer)
> but this only does inserts. Not deletes/updates.
> 
> Regards
>  
>  
> Scott Warren
> Ocom Software
> ... Exceeding Quality.....
> phone |  (03) 9663 9156
> mobile | +61 419 102063
> email | mailto:[EMAIL PROTECTED]
> web | ocom.com.au


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to