RE: [xsl] Newbie Q: Why are element contents being passed through ?

Subject: RE: [xsl] 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