Expand | Collapse

◀ 6. Structuring elements8. Footnotes ▶

7. Text elements

This stylesheet formats the elements described in the XHTML Text Module, and some extension elements.

xsl:stylesheet id="stylesheet" exclude-result-prefixes="x2 lit i" version="1.0" xml:lang="en"
  
    Standard Text Module elements
    Extension text elements
    Support for XSL literate programming
  

7.1. Standard Text Module elements

7.1.1. The abbr element

xsl:template match="x2:abbr"
      xsl:call-template name="copy-xhtml1"
    

7.1.2. The cite element

xsl:template match="x2:cite"
      xsl:call-template name="copy-xhtml1"
    

7.1.3. The code element

xsl:template match="x2:code"
      xsl:call-template name="copy-xhtml1"
    

7.1.4. The dfn element

xsl:template match="x2:dfn"
      xsl:call-template name="copy-xhtml1"
    

7.1.5. The em element

xsl:template match="x2:em"
      xsl:call-template name="copy-xhtml1"
    

7.1.6. The kbd element

xsl:template match="x2:kbd"
      xsl:call-template name="copy-xhtml1"
    

7.1.7. The l element

xsl:template match="x2:l"
      xsl:call-template name="copy-xhtml1"
    

7.1.8. The quote element

xsl:template match="x2:quote"
      xsl:call-template name="copy-xhtml1"
    

7.1.9. The samp element

xsl:template match="x2:samp"
      xsl:call-template name="copy-xhtml1"
    

7.1.10. The span element

xsl:template match="x2:span"
      xsl:call-template name="copy-xhtml1"
    

7.1.11. The strong element

xsl:template match="x2:strong"
      xsl:call-template name="copy-xhtml1"
    

7.1.12. The sub element

xsl:template match="x2:sub"
      xsl:call-template name="copy-xhtml1"
    

7.1.13. The sup element

xsl:template match="x2:sup"
      xsl:call-template name="copy-xhtml1"
    

7.1.14. The var element

xsl:template match="x2:var"
      xsl:call-template name="copy-xhtml1"
    

7.2. Extension text elements

7.2.1. The i:mk element

xsl:template match="i:mk"
      <code class="markup">xsl:apply-templates</code>
    

7.2.2. The i:file element

xsl:template match="i:file"
      <kbd class="file">xsl:apply-templates</kbd>
    

7.2.3. The i:app element

xsl:template match="i:app"
      <b class="app">xsl:apply-templates</b>
    

7.3. Support for XSL literate programming

xsl:template match="i:template"
        <code class="template">xsl:apply-templates</code>
      
xsl:template match="i:mode"
        <code class="mode">xsl:apply-templates</code>
      

7.4. Character data

xsl:template match="text()"
      xsl:value-of select="." 
    

Formatted using xhtml2to1 by Steve Cheng.