xsl-list
[Top] [All Lists]

RE: xsl:template having both name and match

2005-03-03 07:36:50
Thank you Jarno for explanation.. Using
<xsl:apply-templates/> within xsl:param is new for me!

Regards,
Mukul

--- Jarno(_dot_)Elovirta(_at_)nokia(_dot_)com wrote:
<xsl:template name="block/title"
name="section.heading">
  <xsl:param name="content">
    <xsl:apply-templates/>
  </xsl:param>
  <h2>
    <xsl:copy-of select="$content"/>
  </h2>
</xsl:template>
 
When you want to use the same template to generate
headings for both matched title elements and
autogenerated content.

Cheers,

Jarno - Rammstein: Moskau




        
                
__________________________________ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>