XDC - v. 0.6.1

File patterns.xsl

<xsl:stylesheet version="1.0">
  <xsl:import href="content-page.xsl"/>
</xsl:stylesheet>

The 'patterns.xsl' stylesheet is used to extract XPath patterns used in @see, {@link} and {@linkplain} tags. The XPath patterns are identified by a double hash character ('##') separating the (optional) source file and anchor in the link. This stylesheet constructs an XML result tree and therefore needs to "override" a few templates "inherited" from its "ancestor" stylesheets which insert HTML elements into the result tree.
Version:
0.6
Author:
Jens Voß


Template Summary
<xsl:template match="/"/>

This template "overrides" the root template defined in the base-page.xsl stylesheet.

<xsl:template match="/*" mode="contentPage.getMemberNames"/>

This template "implements" the "abstract" template defined in content-page.xsl.

<xsl:template match="/*" mode="contentPage.renderMembersDetailsGroup">
  <xsl:param name="memberNames"/>
</xsl:template>

This template "overrides" the template with mode="contentPage.renderMembersDetailsGroup" defined in content-page.xsl.

<xsl:template match="/|*" mode="contentPage.renderMemberDetails"/>

This template "overrides" the template with mode="contentPage.renderMemberDetails" defined in content-page.xsl.

<xsl:template match="/" mode="comments.displayXdcTag">
  <xsl:param name="text"/>
  <xsl:param name="tagName"/>
</xsl:template>

This template "overrides" the template with mode="comments.displayXdcTag" defined in the comments.xsl stylesheet.

<xsl:template match="/" mode="basePage.renderXdcTag">
  <xsl:param name="tagName"/>
  <xsl:param name="tagValue"/>
</xsl:template>

This template "overrides" the template with mode="basePage.renderXdcTag" defined in base-page.xsl.

<xsl:template match="/" mode="comments.resolveInlineTags">
  <xsl:param name="text"/>
</xsl:template>

This template "overrides" the template with mode="comments.resolveInlineTags" defined in the comments.xsl.

<xsl:template match="/" mode="patterns.getPattern">
  <xsl:param name="text"/>
  <xsl:param name="tagText"/>
</xsl:template>

This template is responsible for extracting one (or - by recursive invocation - more) <pattern> elements from a text containing one (or more) links with XPath patterns as anchors.


Template Detail
<xsl:template match="/"/>

This template "overrides" the root template defined in the base-page.xsl stylesheet.


<xsl:template match="/*" mode="contentPage.getMemberNames"/>

This template "implements" the "abstract" template defined in content-page.xsl.


<xsl:template match="/*" mode="contentPage.renderMembersDetailsGroup">
  <xsl:param name="memberNames"/>
</xsl:template>

This template "overrides" the template with mode="contentPage.renderMembersDetailsGroup" defined in content-page.xsl. The "parent" template inserts HTML tags into the result tree which is eliminated in this "implementation".


<xsl:template match="/|*" mode="contentPage.renderMemberDetails"/>

This template "overrides" the template with mode="contentPage.renderMemberDetails" defined in content-page.xsl. The "parent" template inserts HTML tags into the result tree which is eliminated in this "implementation".


<xsl:template match="/" mode="comments.displayXdcTag">
  <xsl:param name="text"/>
  <xsl:param name="tagName"/>
</xsl:template>

This template "overrides" the template with mode="comments.displayXdcTag" defined in the comments.xsl stylesheet. The "parent" template inserts HTML tags into the result tree which is eliminated in this "implementation".


<xsl:template match="/" mode="basePage.renderXdcTag">
  <xsl:param name="tagName"/>
  <xsl:param name="tagValue"/>
</xsl:template>

This template "overrides" the template with mode="basePage.renderXdcTag" defined in base-page.xsl. The "parent" template inserts HTML tags into the result tree which is eliminated in this "implementation".


<xsl:template match="/" mode="comments.resolveInlineTags">
  <xsl:param name="text"/>
</xsl:template>

This template "overrides" the template with mode="comments.resolveInlineTags" defined in the comments.xsl. The "parent" template inserts HTML tags into the result tree which is eliminated in this "implementation".


<xsl:template match="/" mode="patterns.getPattern">
  <xsl:param name="text"/>
  <xsl:param name="tagText"/>
</xsl:template>

This template is responsible for extracting one (or - by recursive invocation - more) <pattern> elements from a text containing one (or more) links with XPath patterns as anchors.


XDC - v. 0.6.1

Copyright © 2005 - 2006 Jens Voß.