1 <xsl:stylesheet version="1.0"
2 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
7 omit-xml-declaration="yes"
10 <xsl:template match="/">
11 <table frame="topbot" rowsep="0" colsep="0" role="grammar">
12 <title>tactics</title>
15 <xsl:apply-templates select="//varlistentry[@role='tactic.synopsis']">
16 <xsl:sort select="ancestor::sect1/title" />
17 </xsl:apply-templates>
23 <xsl:template match="varlistentry">
25 <xsl:variable name="tactic">
26 <xsl:value-of select="ancestor::sect1/title" />
32 <xsl:when test="position()=1">
33 <xsl:attribute name="id">grammar.tactic</xsl:attribute>
34 <xsl:text disable-output-escaping='yes'>&tactic;</xsl:text>
40 <xsl:when test="position()=1">
41 <xsl:text>::=</xsl:text>
44 <xsl:text>|</xsl:text>
49 <xsl:for-each select="listitem/para/* | listitem/para/child::text()">
52 <xsl:when test="string(.) = $tactic">
53 <xsl:element name="link">
54 <xsl:attribute name="linkend">
55 <xsl:text>tac_</xsl:text>
56 <xsl:value-of select="$tactic" />
58 <xsl:copy-of select="." />
63 <xsl:copy-of select="." />