topical media & game development 
  
  
    
    
  
 professional-xml-08-language-calltemplate.xsl / xsl
  <?xml version="1.0" encoding="UTF-8"?>
  <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
          <xsl:output method="text" encoding="UTF-16"/>
          <xsl:template match="/">
                  <xsl:apply-templates select="//product" />
          </xsl:template>
          <xsl:template match="product">
                  <xsl:value-of select="name" />: <xsl:call-template name="price" />
                  <xsl:text>
</xsl:text>
          </xsl:template>
          <xsl:template name="price">
                  <xsl:value-of select="format-number(price, '#.00')" />
          </xsl:template>
  </xsl:stylesheet>
  
  
  
(C) Æliens 
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. 
In case of other copyright issues, contact the author.