Listing 4: Displaying the results of the rdfserver.complete function
<xsl:template match='/'>
<html>
<head>
<title>Index of Software using extension functions</title>
</head>
<body>
<dl>
<xsl:apply-templates select='ftssext:rdfserver.complete("","http://www.w3.org/1999/02/22-rdf-syntax-ns#type","http://localhost/document")'/>
</dl>
</body>
</html>
</xsl:template>
<xsl:template match='Statement'>
<xsl:param name='title' select='ftssext:rdfserver.complete(Subject,"http://purl.org/dc/elements/1.1#Title","")'/>
<xsl:param name='description' select='ftssext:rdfserver.complete(Subject,"http://purl.org/dc/elements/1.1#Description","")'/>
<dt><a href='http://localhost:8080/{Subject}?xslt=software.xslt'><xsl:value-of select='$title/Object'/></a></dt>
<dd><xsl:value-of select='$description/Object'/></dd>
</xsl:template>
|