doctest.xsl revision 653:c4cb73fc93db
1<?xml version="1.0"?> 2<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 3<xsl:output method="html" version="4.0" indent="yes" encoding="iso-8859-1"/> 4 5<xsl:template match="/"> 6<html> 7<body> 8<xsl:variable name="colors" select="document('temp/colors.xml')/colors"/> 9<p>Nodes in color <xsl:value-of select="count($colors)"/></p> 10<xsl:apply-templates/> 11</body> 12</html> 13</xsl:template> 14 15</xsl:stylesheet> 16 17