topical media & game development

talk show tell print

basic-xml-08-Characters.xsl / xsl

   version="1.0" >
  <xsl:template match="/">
     <title>Age check on Characters.</title>
    <h3>The recorded age is unusually high. Please check original data.</h3>
    <xsl:apply-templates select="/Characters/Character" />
  <xsl:template match="Character">
   <xsl:if test="@age &gt; 110 " >
   <p><b><xsl:value-of select="." /></b> is older than expected. Please check if this character's age, <b><xsl:value-of select="@age" /></b>, is correct.</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.