| 
 
Subject: RE: [xsl] transform only a section of xml From: "Ben Robb" <Ben@xxxxxxxxxx> Date: Mon, 11 Nov 2002 16:59:00 -0000  | 
<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@xxxxxxxxxxxxxxx] Sent: 11 November 2002 16:24 To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx 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
| Current Thread | 
|---|
  | 
| <- Previous | Index | Next -> | 
|---|---|---|
| RE: [xsl] transform only a section , Michael Kay | Thread | [xsl] Platform detection, Russell Kohn | 
| Re: [xsl] transform only a section , David Carlisle | Date | RE: [xsl] transform only a section , Michael Kay | 
| Month |