Hi!

Delete.xsl: 

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" 
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
        xmlns:fo="http://www.w3.org/1999/XSL/Format";
        xmlns:source="http://apache.org/cocoon/source/1.0";
        xmlns:h="http://apache.org/cocoon/request/2.0";>

<xsl:param name="datei"/>

<xsl:template match="/">

        <sourcewriter>
        
           <source:delete>
           
                        <source:source><xsl:value-of
select="$datei"/></source:source>
                                        
           </source:delete>

        </sourcewriter>

</xsl:template>

</xsl:stylesheet>

Works with this sitemap:

              <map:match pattern="*/*/**/*(*).write">
                        <map:generate type="request"/>
                                <map:transform src="xml/xsl/{4}.xsl">
                                        <map:parameter name="datei"
value="{3}"/>
                                        <map:parameter name="position"
value="{5}"/>
                                </map:transform>
                                <map:transform type="write-source">
                                        <map:parameter name="serializer"
value="xml"/>
                                </map:transform>
                                <map:serialize type="xml"/>           
              </map:match>

I've used that transformer in a prototype and it works fine (creating and
updating also) it's not the fastest solution, but for prototyping it's
okay...

Best regards - Claus
__________________________________________

Claus Straube
Francéstrasse 31
80997 München
+49 (089) 14 16 682

=> -----Ursprüngliche Nachricht-----
=> Von: David Merrilees [mailto:[EMAIL PROTECTED]
=> Gesendet: Mittwoch, 6. April 2005 17:24
=> An: users@cocoon.apache.org
=> Betreff: SourceWritingTransformer
=> 
=> Has anyone got a working example of SourceWritingTransformer? I can't
=> get a peep out of it.
=> 
=> 
=> ---------------------------------------------------------------------
=> 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