Subject: RE: Newbie Q: Why are element contents being passed through?
From: Cams Ismael <Ismael.Cams@xxxxxxxxxxx>
Date: Thu, 10 Apr 2003 08:24:50 +0200
|
Hello,
> <xsl:template match='form'>
> <form>
> <xsl:copy-of select='@*'/>
> <xsl:apply-templates/>
> </form>
> </xsl:template>
The reason for your problem is the xsl:apply-templates element. For every
element that is encountered under <form> a template is applied. Because you
didn't specify any template yourself the default template is used, which
results in the output you get.
Kind regards,
Ismaël
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- RE: Newbie Q: Why are element contents being passed through?, (continued)
- Allan Jones - Thu, 10 Apr 2003 10:59:43 -0400 (EDT)
- Agnes Kielen - Thu, 10 Apr 2003 11:26:46 -0400 (EDT)
- Michael Kay - Thu, 10 Apr 2003 11:27:34 -0400 (EDT)
- Dimitre Novatchev - Thu, 10 Apr 2003 14:17:13 -0400 (EDT)
- Cams Ismael - Thu, 10 Apr 2003 11:20:34 -0400 (EDT) <=
- Passin, Tom - Thu, 10 Apr 2003 11:23:46 -0400 (EDT)
- Jarno . Elovirta - Thu, 10 Apr 2003 11:55:40 -0400 (EDT)
- Cross, Neal - Development Controller - Thu, 10 Apr 2003 12:05:42 -0400 (EDT)
|
|