Duane Morin wrote:
....
> In other words "Find all <C> tags and insert <MyTag> after it."
>
> I am at a loss as to how to do this. I can get the "Find all C's and
> do this afterward..." but how to I say "And leave the rest of the file
> exactly as it is?" Can I even do that? Do I have to explicitly say
> "Find A, write A, find B, write B...find C, write C and then write
> MyTag...."?? That can't be right, can it?
start with the 'identity template', which copies your document recursively:
--
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns

sl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="node()|@*">
<xsl:copy>
<xsl:apply-templates select="node()|@*" />
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
--
and add templates for elements, you want modified/deleted... , in your case:
....
<xsl:template match="C">
<xsl:copy-of select=".">
<MyTag/>
</xsl:template>
....
m.