Expand | Collapse

◀ 9. Hypertext links11. Tables ▶

10. Lists

This stylesheet implements the XHTML List Module.

xsl:stylesheet id="stylesheet" exclude-result-prefixes="x2 lit xs" version="1.0" xml:lang="en"
  
    Definition lists
    Ordered lists
    Unordered lists
  

10.1. Definition lists

xsl:template match="x2:dl"
        xsl:call-template name="copy-xhtml1"
      
xsl:template match="x2:dt"
        xsl:call-template name="copy-xhtml1"
      
xsl:template match="x2:dd"
        xsl:call-template name="copy-xhtml1"
      
xsl:template match="x2:di"
        xsl:apply-templates
      

10.2. Ordered lists

xsl:template match="x2:ol"
        xsl:call-template name="copy-xhtml1"
      
xsl:template match="x2:ol/x2:li"
        xsl:call-template name="copy-xhtml1"
      

10.3. Unordered lists

xsl:template match="x2:ul"
      <--
  <xsl:if test="parent::x2:p">
          <xsl:text disable-output-escaping="yes">&lt;/p&gt;</xsl:text>
        </xsl:if>
-->
        xsl:call-template name="copy-xhtml1"
      <--
  <xsl:if test="parent::x2:p">
          <xsl:text disable-output-escaping="yes">&lt;p&gt;</xsl:text>
        </xsl:if>
-->
      
xsl:template match="x2:ul/x2:li"
        xsl:call-template name="copy-xhtml1"
      

Formatted using xhtml2to1 by Steve Cheng.