[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: xsl:call-template : How to use it

Subject: RE: xsl:call-template : How to use it
From: "Chris Bayes" <Chris@xxxxxxxxxxx>
Date: Sun, 25 Mar 2001 23:10:48 +0100
xsl call template use
Armand,
Your problem is do do with the namespace you are using. Use this instead
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
This has to be **THE BIGGEST FAQ OF ALL TIME** swamping all others by 90%

Ciao Chris

XML/XSL Portal
http://www.bayes.co.uk/xml


>-----Original Message-----
>From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
>[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Armand
>Delcros
>Sent: 25 March 2001 22:57
>To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
>Cc: xsl-list@xxxxxxxxxxxxxxxxxxxxxx; tbarrage@xxxxxxxxxxxxxxxxxxxxxx
>Subject: Re:  xsl:call-template : How to use it
>
>
>Hmmm, sorry if you find my question stupid but I also have read the FAQ
>:
>http://www.dpawson.co.uk/xsl/N7654.html
>But I really don't understant my problem.
>Help me if you can..
>
>Thanks
>Armand Delcros
>
>On 25 Mar 2001 20:59:36 +0200, Armand Delcros wrote:
>> 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
>>
>
>
> 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.