Skip to content

Commit

Permalink
XSL: Support links to glossary entries whose <glossterm>s contain onl…
Browse files Browse the repository at this point in the history
…y text.

Previously, a link of the form <glossterm linkend="id"/> where glossdef[@xml:id="id"]/glossterm contained only text nodes, rendered empty because <xsl:apply-templates> was being used to extract the contents of the glossdef/glossterm. This commit changes the XSLT to use <xsl:value-of>, instead. This works for the original case, but has the obvious and unfortunate side effect of stripping out children from all glossdef/glossterm elements. When I learn how to fix this properly, I will.
  • Loading branch information
runpaint committed Dec 31, 2010
1 parent 601e4f3 commit 2a5b500
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xsl/link.xsl
Expand Up @@ -167,7 +167,7 @@
</xsl:message> </xsl:message>
</xsl:if> </xsl:if>


<a class="glossterm" href="{$href}"><xsl:apply-templates select="$anchor/d:glossterm/*"/></a> <a class="glossterm" href="{$href}"><xsl:value-of select="$anchor/d:glossterm"/></a>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:template> </xsl:template>
Expand Down

0 comments on commit 2a5b500

Please sign in to comment.