keywords.xsl 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?xml version='1.0'?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3. version='1.0'>
  4. <!-- ********************************************************************
  5. $Id: keywords.xsl 6910 2007-06-28 23:23:30Z xmldoc $
  6. ********************************************************************
  7. This file is part of the XSL DocBook Stylesheet distribution.
  8. See ../README or http://docbook.sf.net/release/xsl/current/ for
  9. copyright and other information.
  10. ******************************************************************** -->
  11. <xsl:template match="keywordset"></xsl:template>
  12. <xsl:template match="subjectset"></xsl:template>
  13. <!-- ==================================================================== -->
  14. <xsl:template match="keywordset" mode="html.header">
  15. <meta name="keywords">
  16. <xsl:attribute name="content">
  17. <xsl:apply-templates select="keyword" mode="html.header"/>
  18. </xsl:attribute>
  19. </meta>
  20. </xsl:template>
  21. <xsl:template match="keyword" mode="html.header">
  22. <xsl:apply-templates/>
  23. <xsl:if test="following-sibling::keyword">, </xsl:if>
  24. </xsl:template>
  25. <!-- ==================================================================== -->
  26. </xsl:stylesheet>