xsl-list
[Top] [All Lists]

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

2003-04-09 23:24:50
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



<Prev in Thread] Current Thread [Next in Thread>
  • RE: Newbie Q: Why are element contents being passed through ?, Cams Ismael <=