topichead.xsl 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <!-- NOTE: THIS MODULE IS NO LONGER USED BY TOCJS PROCESSING!!! -->
  2. <!-- NOTE: THIS MODULE IS NO LONGER USED BY TOCJS PROCESSING!!! -->
  3. <!--
  4. This file is part of the DITA Open Toolkit project.
  5. Copyright 2007 Shawn McKenzie
  6. See the accompanying LICENSE file for applicable license.
  7. -->
  8. <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  9. <xsl:template match="*[contains(@class, ' mapgroup-d/topichead ')]">
  10. <xsl:param name="parent"/>
  11. <xsl:param name="contentwin"/>
  12. <!-- <xsl:variable name="self"
  13. select="translate(translate(translate(@navtitle, '/', ''), '.', ''), ' ', '')"/>-->
  14. <xsl:variable name="apos">'</xsl:variable>
  15. <xsl:variable name="self" select="translate(@navtitle, '$apos/\^&amp;|\¬`*.-) (%$£!+=', '')"/>
  16. <xsl:message>
  17. ######################## IN TOPICHEAD! parent: <xsl:value-of
  18. select="$parent"/> self: <xsl:value-of select="$self"/>
  19. </xsl:message>
  20. <xsl:text>var </xsl:text>
  21. <xsl:value-of select="$self"/>
  22. <xsl:text> = new YAHOO.widget.TextNode("</xsl:text>
  23. <xsl:value-of select="@navtitle"/>
  24. <xsl:text>", </xsl:text>
  25. <xsl:value-of select="$parent"/>
  26. <xsl:text>, false);</xsl:text>
  27. <xsl:apply-templates>
  28. <xsl:with-param name="parent" select="$self"/>
  29. <xsl:with-param name="contentwin" select="$contentwin"/>
  30. </xsl:apply-templates>
  31. </xsl:template>
  32. <!-- var tmpNode = new YAHOO.widget.TextNode("mylabel1", root, false); -->
  33. </xsl:stylesheet>