info.xsl 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?xml version='1.0'?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3. version='1.0'>
  4. <!-- ********************************************************************
  5. $Id: info.xsl 9297 2012-04-22 03:56:16Z bobstayton $
  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. <!-- These templates define the "default behavior" for info
  12. elements. Even if you don't process the *info wrappers,
  13. some of these elements are needed because the elements are
  14. processed from named templates that are called with modes.
  15. Since modes aren't sticky, these rules apply.
  16. (TODO: clarify this comment) -->
  17. <!-- ==================================================================== -->
  18. <!-- called from named templates in a given mode -->
  19. <xsl:template match="corpauthor">
  20. <span>
  21. <xsl:apply-templates select="." mode="common.html.attributes"/>
  22. <xsl:call-template name="id.attribute"/>
  23. <xsl:apply-templates/>
  24. </span>
  25. </xsl:template>
  26. <!-- ==================================================================== -->
  27. <xsl:template match="jobtitle">
  28. <span>
  29. <xsl:apply-templates select="." mode="common.html.attributes"/>
  30. <xsl:call-template name="id.attribute"/>
  31. <xsl:apply-templates/>
  32. </span>
  33. </xsl:template>
  34. <!-- ==================================================================== -->
  35. </xsl:stylesheet>