Expand | Collapse

◀ 17. Stylesheet to nicely format XML markup19. Numbering ▶

18. Support for literate programming

xsl:stylesheet id="stylesheet" exclude-result-prefixes="x2 lit i" version="1.0" xml:lang="en"

<--

<xsl:template match="x2:a[@lit:href]">
  <a>
    <xsl:attribute name="href">
      <xsl:call-template name="map-uri">
        <xsl:with-param name="href" select="@lit:href" />
      </xsl:call-template>
    </xsl:attribute>

    <xsl:apply-templates />
  </a>
</xsl:template>

-->

Formatted using xhtml2to1 by Steve Cheng.