<xsl:template match="* | @*">
<xsl:copy><xsl:apply-templates select="* | @* /></xsl:copy>
</xsl:template>
<xsl:template match="form">
<form method="post">
<input type="text" name="NAME"/>
</form>
</xsl:template>
Should do the trick...
B
-----Original Message-----
From: Noel Golding [mailto:noel(_at_)spearreport(_dot_)com]
Sent: 11 November 2002 16:24
To: XSL-List(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] transform only a section of xml
I am sure this is a FAQ but I am not sure how to ask this question
properly without illustrating it. I would like to transform only a
portion of an xml document while mainting the rest of the structure.
<!-- original -->
<xml>
<section>
<title>title</title>
<para>
<form id="1"/> <!-- item to transform -->
</para>
</section>
</xml>
<!-- transform to -->
<xml>
<section>
<title>title</title>
<para>
<form method="post">
<input type="text" name="NAME" />
</form>
</para>
</section>
</xml>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list