call-template的问题
dory 2003-10-09 01:25:50 这个是XSL,帮忙详细解释一下,尤其是param和with-param还有其中的select ,
有点糊涂...............
先谢谢......
:)
<xsl:template match="/">
<HTML>
<HEAD>
<TITLE>Fitness Center</TITLE>
</HEAD>
<BODY>
<xsl:call-template name="displayNameWithFont">
<xsl:with-param name="fontFace" select="'Impact'"/>
<xsl:with-param name="name"
select="/FitnessCenter/Member[1]/Name"/>
</xsl:call-template>
<BR/>
...
</BODY>
</HTML>
</xsl:template>
<xsl:template name="displayNameWithFont">
<xsl:param name="fontFace" select="'Braggadocio'"/> <!-- default font -->
<xsl:param name="name"/>
<FONT face="{$fontFace}">
<xsl:value-of select="$name"/>
</FONT>
</xsl:template>