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> ... |
Get XML Topic Maps: Creating and Using Topic Maps for the Web now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.