home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2003 October / INTERNET108.ISO / pc / software / windows / building / xmlspy / xmlspyentcomplete5.exe / Data1.cab / _C28F9FFE6AB247C0A1F38FB11A01EC04 < prev    next >
Encoding:
Extensible Markup Language  |  2002-09-04  |  888 b   |  25 lines

  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. <xsl:import href="chunk.xsl"/>
  8.  
  9. <!-- Ok, using the onechunk parameter makes this all work again. -->
  10. <!-- It does have the disadvantage that it only works for documents that have -->
  11. <!-- a root element that is considered a chunk by the chunk.xsl stylesheet. -->
  12. <!-- Ideally, onechunk would let anything be a chunk. But not today. -->
  13.  
  14. <xsl:param name="onechunk" select="1"/>
  15.  
  16. <xsl:template name="href.target.uri">
  17.   <xsl:param name="object" select="."/>
  18.   <xsl:text>#</xsl:text>
  19.   <xsl:call-template name="object.id">
  20.     <xsl:with-param name="object" select="$object"/>
  21.   </xsl:call-template>
  22. </xsl:template>
  23.  
  24. </xsl:stylesheet>
  25.