/[drupal]/contributions/modules/export_docbook/h2db.xsl
ViewVC logotype

Diff of /contributions/modules/export_docbook/h2db.xsl

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.1.4.42, Sun Sep 21 16:52:52 2008 UTC revision 1.1.4.43, Sun Sep 21 20:46:03 2008 UTC
# Line 1  Line 1 
1  <?xml version="1.0" encoding="UTF-8"?>  <?xml version="1.0" encoding="UTF-8"?>
2  <!-- $Id: h2db.xsl,v 1.1.4.41 2008/09/21 11:51:12 robertDouglass Exp $ -->  <!-- $Id: h2db.xsl,v 1.1.4.42 2008/09/21 16:52:52 robertDouglass Exp $ -->
3  <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"  <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4   xmlns:html="http://www.w3.org/1999/xhtml" exclude-result-prefixes="xsl html">   xmlns:html="http://www.w3.org/1999/xhtml" exclude-result-prefixes="xsl html">
5    
# Line 143  Line 143 
143     <xsl:value-of select="."/>     <xsl:value-of select="."/>
144    </xsl:element>    </xsl:element>
145    <xsl:value-of select="' '"/>    <xsl:value-of select="' '"/>
146      <!-- Most of the time the <xsl:value-of select="."/> will
147           take care of all the needs of the child nodes. In the
148           case of dfn and acronym, however, extra processing is in
149           order to handle indexterms, so apply those templates
150           specifically. -->
151      <xsl:apply-templates select="html:dfn | html:acronym"/>
152   </xsl:template>   </xsl:template>
153    
154   <xsl:template match="html:a[@name != '']" priority="1">   <xsl:template match="html:a[@name != '']" priority="1">
# Line 237  Line 243 
243   </xsl:template>   </xsl:template>
244    
245   <!-- Glossary module support -->   <!-- Glossary module support -->
246     <xsl:template match="html:dfn | html:acronym">
  <xsl:template match="html:dfn">  
247    <xsl:call-template name="indexterm">    <xsl:call-template name="indexterm">
248     <xsl:with-param name="primary">     <xsl:with-param name="primary" select="."/>
     <xsl:apply-templates/>  
    </xsl:with-param>  
249    </xsl:call-template>    </xsl:call-template>
250      <!-- If dfn or acronym elements appear on their own (ie not in an <a> element)
251           their child nodes should be processed normally. If they're in an <a>, however,
252           the child nodes have already been processed as part of the <a> handling. -->
253      <xsl:if test="parent[name()] != 'a'">
254       <xsl:apply-templates/>
255      </xsl:if>
256   </xsl:template>   </xsl:template>
257    
258   <!-- Images -->   <!-- Images -->

Legend:
Removed from v.1.1.4.42  
changed lines
  Added in v.1.1.4.43

  ViewVC Help
Powered by ViewVC 1.1.2