<!-- inven.xsl: convert inven.xml to demonstrate use of arbitrary data 
     (in this case, part/@partNum values) as linking destinations for 4/04
	  weblog entry. Bob DuCharme.-->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
					 version="1.0">


  <xsl:template match="inventory">
	 <html><head><title>Inventory</title>
	 <style>
		<xsl:comment>
        h1,h2,p {  font-family: verdana, arial,helvetica; }
		</xsl:comment>
	 </style>
	 </head>
	 <body><h1>Inventory</h1>
	 <xsl:apply-templates/>
	 </body></html>
  </xsl:template>

  <xsl:template match="part">
	 <h2 id="{@partNum}"><xsl:value-of select="name"/></h2>
	 <p><xsl:value-of select="@quantity"/> remaining</p>
  </xsl:template>

</xsl:stylesheet>
