profile-onechunk.xsl 1.8 KB

123456789101112131415161718192021222324252627282930313233
  1. <?xml version="1.0" encoding="US-ASCII"?><!--This file was created automatically by xsl2profile--><!--from the DocBook XSL stylesheets.--><!--This file was created automatically by html2xhtml--><!--from the HTML stylesheets. Do not edit this file.--><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" xmlns="http://www.w3.org/1999/xhtml" xmlns:exslt="http://exslt.org/common" xmlns:ng="http://docbook.org/docbook-ng" xmlns:db="http://docbook.org/ns/docbook" exslt:dummy="dummy" ng:dummy="dummy" db:dummy="dummy" extension-element-prefixes="exslt" version="1.0" exclude-result-prefixes="doc exslt">
  2. <!-- ********************************************************************
  3. $Id$
  4. ********************************************************************
  5. This file is part of the XSL DocBook Stylesheet distribution.
  6. See ../README or http://nwalsh.com/docbook/xsl/ for copyright
  7. and other information.
  8. ******************************************************************** -->
  9. <!-- ==================================================================== -->
  10. <xsl:import href="chunk.xsl"/>
  11. <!-- Ok, using the onechunk parameter makes this all work again. -->
  12. <!-- It does have the disadvantage that it only works for documents that have -->
  13. <!-- a root element that is considered a chunk by the chunk.xsl stylesheet. -->
  14. <!-- Ideally, onechunk would let anything be a chunk. But not today. -->
  15. <xsl:param name="onechunk" select="1"/>
  16. <xsl:param name="suppress.navigation">1</xsl:param>
  17. <xsl:template name="href.target.uri">
  18. <xsl:param name="object" select="."/>
  19. <xsl:text>#</xsl:text>
  20. <xsl:call-template name="object.id">
  21. <xsl:with-param name="object" select="$object"/>
  22. </xsl:call-template>
  23. </xsl:template>
  24. </xsl:stylesheet>