 |
Return to article.
Listing 7. The style sheet builds a list of project descriptions
<xsl:template match="xm:File[@isDirectory='true']">
<xsl:variable name="index-name" select="concat(text(),'/index.xml')"/>
<xsl:variable name="index-doc" select="document(concat('x-source:',$index-name))"/>
<xsl:if test="not($index-doc/xm:NotAvailable)">
<xsl:variable name="index-info" select="$index-doc/db:article/db:articleinfo"/>
<li>
<a href="{$index-name}">
<xsl:value-of select="$index-info/db:title"/>
<xsl:if test="$index-info/db:subtitle">
<xsl:text>: </xsl:text>
<xsl:value-of select="$index-info/db:subtitle"/>
</xsl:if>
</a>
</li>
</xsl:if>
</xsl:template>
|
Return to article.
|  |
|