|
Subject: [xsl] call-template vs apply-template From: "Daniel Joshua" <daniel.joshua@xxxxxxxxxxxx> Date: Mon, 7 Jun 2004 12:16:51 +0800 |
Hi,
I want to call template "abc" with element "def"
Here's the syntax for "call-template" and "apply-template":
<xsl:call-template name="abc"/>
<xsl:apply-templates select="def"/>
However, I dun seem to be able to combine the two above statement.
Currently as a workaround, I find myself using the below (for just 1
element).
<xsl:for-each select="def">
<xsl:call-template name="abc"/>
</xsl:for-each>
Is there a better way? How should I do it?
Regards,
Daniel
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Copyright symbol in MSXML, Watt, Daniel | Thread | Frustration High, Christopher Jacob |
| RE: [xsl] Text markup for web forum, Daniel Joshua | Date | RE: [xsl] call-template vs apply-te, Jarno.Elovirta |
| Month |