Re: [docbook-apps] xsl/groff option argument is listed with the description

From
Tim Waugh <>
Date
2003-05-23T17:17:15+00:00
ID
Thread
Re: [docbook-apps] xsl/groff option argument is listed with the description
On Fri, May 23, 2003 at 01:23:11PM -0400, Sam Steingold wrote:

> <xsl:template match="varlistentry/term">
>  <span class="term"><xsl:call-template name="anchor"/>
>   <xsl:apply-templates/>&#10;.PD 0&#10;.TP
>  </span>
> </xsl:template>

But <span class=...> is HTML, not groff!  Try this:

<xsl:template match="varlistentry/term|glossterm">
  <xsl:variable name="content">
    <xsl:apply-templates/>
  </xsl:variable>
  <xsl:value-of select="normalize-space($content)"/>
  <xsl:text>&#10;.PD 0&#10;.TP&#10;</xsl:text>
</xsl:template>

<xsl:template
     match="varlistentry/term[position()=last()]|glossterm[position()=last()]"
     priority="2">
  <xsl:variable name="content">
    <xsl:apply-templates/>
  </xsl:variable>
  <xsl:value-of select="normalize-space($content)"/>
</xsl:template>

Tim.
*/