]> git.kaiwu.me - nginx.git/commitdiff
Regenerate after previous commit.
authorRuslan Ermilov <ru@nginx.com>
Thu, 8 Sep 2011 13:26:37 +0000 (13:26 +0000)
committerRuslan Ermilov <ru@nginx.com>
Thu, 8 Sep 2011 13:26:37 +0000 (13:26 +0000)
docs/xslt/content.xslt

index 7817700c1b7d6cad705029306157ad0dab679f53..0245ae72551afa327386506735a154b06d487e60 100644 (file)
       <xsl:text>)</xsl:text>
    </xsl:template>
 
+   <xsl:template match="link[@url]"> 
+      <a href="{@url}">
+         <xsl:apply-templates/>
+      </a>
+   </xsl:template>
+
    <xsl:template match="link[@id and not(@doc)]"> 
       <a href="#{@id}">
          <xsl:apply-templates/>
       </a>
    </xsl:template>
 
+   <xsl:template match="link[@doc and not(@id)]">
+
+      <a href="{substring-before(@doc, '.xml')}.html">
+         <xsl:apply-templates/>
+      </a>
+   </xsl:template>
+
+   <xsl:template match="link[@id and @doc]">
+
+      <a href="{substring-before(@doc, '.xml')}.html#{@id}">
+         <xsl:apply-templates/>
+      </a>
+   </xsl:template>
+
    <xsl:template match="link"> 
       <u>
          <xsl:apply-templates/>