Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Part 2

Web services software repository, Part 1

Return to article


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>

Return to article