profile-onechunk.xsl 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?xml version="1.0" encoding="US-ASCII"?>
  2. <!--This file was created automatically by xsl2profile-->
  3. <!--from the DocBook XSL stylesheets.-->
  4. <!--This file was created automatically by html2xhtml-->
  5. <!--from the HTML stylesheets.-->
  6. <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">
  7. <!-- ********************************************************************
  8. $Id: onechunk.xsl 6910 2007-06-28 23:23:30Z xmldoc $
  9. ********************************************************************
  10. This file is part of the XSL DocBook Stylesheet distribution.
  11. See ../README or http://docbook.sf.net/release/xsl/current/ for
  12. copyright and other information.
  13. ******************************************************************** -->
  14. <!-- ==================================================================== -->
  15. <xsl:import href="chunk.xsl"/>
  16. <!-- Ok, using the onechunk parameter makes this all work again. -->
  17. <!-- It does have the disadvantage that it only works for documents that have -->
  18. <!-- a root element that is considered a chunk by the chunk.xsl stylesheet. -->
  19. <!-- Ideally, onechunk would let anything be a chunk. But not today. -->
  20. <xsl:param name="onechunk" select="1"/>
  21. <xsl:param name="suppress.navigation">1</xsl:param>
  22. <xsl:template name="href.target.uri">
  23. <xsl:param name="object" select="."/>
  24. <xsl:text>#</xsl:text>
  25. <xsl:call-template name="object.id">
  26. <xsl:with-param name="object" select="$object"/>
  27. </xsl:call-template>
  28. </xsl:template>
  29. </xsl:stylesheet>