topical media & game development

talk show tell print

basic-xml-08-Ages.xsl / xsl

  <?xml version='1.0'?>
  <xsl:param name="person" />
  <xsl:template match="/">
     <title>Finding an age using an XSLT parameter</title>
     <xsl:apply-templates select="/Ages/Person[@name=person]" />
  <xsl:template match="Person">
  <p>The age of <xsl:value-of select="person" /> is <xsl:value-of select="@age" /></p>

(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.