O'Reilly logo

XML Topic Maps: Creating and Using Topic Maps for the Web by Jack Park, Sam Hunting

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The XSLT Back-End and Presentation Layers

Now we will look at using XSLT templates from the back-end (query) and presentation layers to extract and visualize metadata and relationships.

Querying Topic Types

The templates in Listing 9-6 call the getTopicRef XSLT template to find instantiated ancestor <topic> elements along certain <instanceOf> channels (see below). In this section, as promised above, we examine how this works. Listing 9-9 shows a code fragment calling the getTopicRef template.

Listing 9-9. XSLT fragment calling the getTopicRef template
 <xsl:call-template name="getTopicRef"> <xsl:with-param name="topic" select="key('topic',instanceOf/topicRef/@xlink:href))"/> <xsl:with-param name="ref">#orole</xsl:with-param> </xsl:call-template> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required