profile-onechunk.xsl 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?xml version="1.0"?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3. xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
  4. version="1.0"
  5. exclude-result-prefixes="doc">
  6. <!-- ********************************************************************
  7. $Id: profile-onechunk.xsl 6910 2007-06-28 23:23:30Z xmldoc $
  8. ********************************************************************
  9. This file is part of the XSL DocBook Stylesheet distribution.
  10. See ../README or http://docbook.sf.net/release/xsl/current/ for
  11. copyright and other information.
  12. ******************************************************************** -->
  13. <!-- ==================================================================== -->
  14. <xsl:import href="profile-chunk.xsl"/>
  15. <!-- Ok, using the onechunk parameter makes this all work again. -->
  16. <!-- It does have the disadvantage that it only works for documents that have -->
  17. <!-- a root element that is considered a chunk by the chunk.xsl stylesheet. -->
  18. <!-- Ideally, onechunk would let anything be a chunk. But not today. -->
  19. <xsl:param name="onechunk" select="1"/>
  20. <xsl:param name="suppress.navigation">1</xsl:param>
  21. <xsl:template name="href.target.uri">
  22. <xsl:param name="object" select="."/>
  23. <xsl:text>#</xsl:text>
  24. <xsl:call-template name="object.id">
  25. <xsl:with-param name="object" select="$object"/>
  26. </xsl:call-template>
  27. </xsl:template>
  28. </xsl:stylesheet>