Subject: [xsl] xsl:call-template : How to use it From: Armand Delcros <armand@xxxxxxxxxxxxx> Date: 25 Mar 2001 20:59:36 +0200 |
Hello, sorry, i've look on w3c website ... ms website but I don't understand how to call a template. This is the XML code : <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="call.xsl"> <ADMINISTRATION> <COUNTRY> <IDCOUNTRY>1</IDCOUNTRY> <NAMECOUNTRY>USA</NAMECOUNTRY> <PASSWD>FOO</PASSWD> </COUNTRY> </ADMINISTRATION> This is the XSL code: <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"> <xsl:template match="/"> <html> <body> <form> <xsl:call-template name="countrypasswd"/> </form> </body> </html> </xsl:template> <xsl:template name="countrypasswd" match="ADMINISTRATION"> <xsl:element name="INPUT"> <xsl:attribute name="TYPE">TEXT</xsl:attribute> <xsl:attribute name="NAME">passwd</xsl:attribute> <xsl:attribute name="VALUE"><xsl:value-of select="COUNTRY/PASSWD"/></xsl:attribute> </xsl:element> </xsl:template> </xsl:stylesheet> And MIcrost IE5 say that i'm not allowed to put the xsl:call-template here .... but where must I put the xsl:call-template tag ? What's wrong ? Thanks for your help Regards, Armand Delcros XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Help : Passing value from, Chris Bayes | Thread | Re: [xsl] xsl:call-template : How t, Armand Delcros |
Re: [xsl] Catching Entities With XS, David Carlisle | Date | [xsl] About XSLT engines using SAX , Peeyush |
Month |