<?xml version="1.0"?> <!-- Copyright (c) 2002 Felix Rosencrantz Information about this tool can be found at: http://www.oocities.org/f_rosencrantz/xml_completion.htm --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="xml" indent="yes"/> <!-- Start --> <xsl:template match="/root"> <xsl:copy> <xsl:for-each select="actiontemplate[not(@tag = preceding::actiontemplate/@tag)]"> <xsl:apply-templates select="."/> </xsl:for-each> <defaultactiontemplate> <action> <command> _cc_handle <tagtext/> </command> </action> </defaultactiontemplate> </xsl:copy> </xsl:template> <xsl:template match="*|@*"> <xsl:copy><xsl:copy-of select="@*"/><xsl:apply-templates /></xsl:copy> </xsl:template> </xsl:stylesheet>