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

  1. <?xml version="1.0" encoding="US-ASCII"?>
  2. <!--This file was created automatically by html2xhtml-->
  3. <!--from the HTML stylesheets. Do not edit this file.-->
  4. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  5.  
  6. <!-- ********************************************************************
  7.      $Id: html.xsl,v 1.1.2.3 2002/09/04 13:55:40 jdj Exp $
  8.      ********************************************************************
  9.  
  10.      This file is part of the XSL DocBook Stylesheet distribution.
  11.      See ../README or http://nwalsh.com/docbook/xsl/ for copyright
  12.      and other information.
  13.  
  14.      ******************************************************************** -->
  15.  
  16. <xsl:template name="anchor">
  17.   <xsl:param name="node" select="."/>
  18.   <xsl:param name="conditional" select="1"/>
  19.   <xsl:variable name="id">
  20.     <xsl:call-template name="object.id">
  21.       <xsl:with-param name="object" select="$node"/>
  22.     </xsl:call-template>
  23.   </xsl:variable>
  24.   <xsl:if test="$conditional = 0 or $node/@id">
  25.     <a xmlns="http://www.w3.org/1999/xhtml" id="{$id}"/>
  26.   </xsl:if>
  27. </xsl:template>
  28.  
  29. <xsl:template name="href.target.uri">
  30.   <xsl:param name="context" select="."/>
  31.   <xsl:param name="object" select="."/>
  32.   <xsl:text>#</xsl:text>
  33.   <xsl:call-template name="object.id">
  34.     <xsl:with-param name="object" select="$object"/>
  35.   </xsl:call-template>
  36. </xsl:template>
  37.  
  38. <xsl:template name="href.target">
  39.   <xsl:param name="context" select="."/>
  40.   <xsl:param name="object" select="."/>
  41.   <xsl:text>#</xsl:text>
  42.   <xsl:call-template name="object.id">
  43.     <xsl:with-param name="object" select="$object"/>
  44.   </xsl:call-template>
  45. </xsl:template>
  46.  
  47. <xsl:template name="dingbat">
  48.   <xsl:param name="dingbat">bullet</xsl:param>
  49.   <xsl:call-template name="dingbat.characters">
  50.     <xsl:with-param name="dingbat" select="$dingbat"/>
  51.   </xsl:call-template>
  52. </xsl:template>
  53.  
  54. <xsl:template name="dingbat.characters">
  55.   <!-- now that I'm using the real serializer, all that dingbat malarky -->
  56.   <!-- isn't necessary anymore... -->
  57.   <xsl:param name="dingbat">bullet</xsl:param>
  58.   <xsl:choose>
  59.     <xsl:when test="$dingbat='bullet'">•</xsl:when>
  60.     <xsl:when test="$dingbat='copyright'">©</xsl:when>
  61.     <xsl:when test="$dingbat='trademark'">™</xsl:when>
  62.     <xsl:when test="$dingbat='trade'">™</xsl:when>
  63.     <xsl:when test="$dingbat='registered'">®</xsl:when>
  64.     <xsl:when test="$dingbat='service'">(SM)</xsl:when>
  65.     <xsl:when test="$dingbat='nbsp'"> </xsl:when>
  66.     <xsl:when test="$dingbat='ldquo'">“</xsl:when>
  67.     <xsl:when test="$dingbat='rdquo'">”</xsl:when>
  68.     <xsl:when test="$dingbat='lsquo'">‘</xsl:when>
  69.     <xsl:when test="$dingbat='rsquo'">’</xsl:when>
  70.     <xsl:when test="$dingbat='em-dash'">—</xsl:when>
  71.     <xsl:when test="$dingbat='mdash'">—</xsl:when>
  72.     <xsl:when test="$dingbat='en-dash'">–</xsl:when>
  73.     <xsl:when test="$dingbat='ndash'">–</xsl:when>
  74.     <xsl:otherwise>
  75.       <xsl:text>•</xsl:text>
  76.     </xsl:otherwise>
  77.   </xsl:choose>
  78. </xsl:template>
  79.  
  80. </xsl:stylesheet>
  81.