
122 II Buildable Tools
<xsl:stylesheet version = 1.0
xmlns: xsl= http :// www.w3. org/1999/ XSL /Transform
xmlns:a = http :// www.collada . org/2005/11/COLLADASchema >
<xsl: template match="/a:COLLADA " >
<html >
<body >
<h2> External references </h2>
<table border ="1">
<tr bgcolor ="#9 acd32" >
<th > id < / th>
<th > url</ th >
</ tr>
<xsl:for -each select ="a:library_images/a:image">
<tr>
<td > < xsl : value - of select ="@id"/ ></td>
<td > < xsl : value - of select ="a:init_from"/></td>
</ tr>
</ xsl :for - each >
</table >
</body >
</html >
</xsl: template >
</xsl: stylesheet >
Listing 9.3. An XSL template (program) to list all external image files.
It prints