[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: calling a template


Subject: RE: calling a template
From: "Benjamin Corliss" <benjamin@xxxxxxxxxxxxxxx>
Date: Tue, 21 Sep 1999 14:57:51 -0700

<xsl:call-template name="template-name"/>

"template-name" must be defined with @name as follows.

<xsl:template name="template-name">
.
.
.
</xsl:template>

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Terence Kwan
Sent: Tuesday, September 21, 1999 1:41 PM
To: XSL-List@xxxxxxxxxxxxxxxx
Subject: calling a template


Is there an easy way to call a template (just like a subroutine) -
assume that the template only contain static text?

Currently, I need to do:

....
<xsl:apply-templates select="node">
...

I want to just call the template as a subroutine so it will just insert
some static text. This will make my localization people happy because we
can group all the static text information in one single file and use xsl
include to include the static text file.

Thanks

TK


 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
Keywords
xsl