At 12.37 28/01/2002 -0300, you wrote: >Hello, > >How can I make a XSLT transformation of just a couple of elements, >leaving the rest untouched, without having to select everything and >passing it through?
You can create a "catch all" template with lower priority, for example : <xsl:template match="something"> <do>something</do> </xsl:template> <xsl:template match="*|node()" priority="-10"> <xsl:copy-of select="."/> </xsl:template> This means that if "something" is found, it will be processed by the first template, if "else" is found it will be processed by the second template, which does a copy. The lower priority is an optional, since the XSLT processor should use the first template since it's more specific, but I've had some strange results, and forcing it is a good idea. I'm not sure about the <xsl:copy-of ..> ... it could cause some duplications, you could try a <xsl:copy/> and see which one works better ... Ciao Simone --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>