Mercurial > hg > nginx-site
diff xslt/link.xslt @ 605:bfdc7833085a
Regenerated.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Fri, 20 Jul 2012 13:15:21 +0000 |
parents | eea23daa6e57 |
children | e7c6edbe69a7 |
line wrap: on
line diff
--- a/xslt/link.xslt Fri Jul 20 13:14:50 2012 +0000 +++ b/xslt/link.xslt Fri Jul 20 13:15:21 2012 +0000 @@ -9,8 +9,19 @@ <xsl:template match="origin"> - <a href="{document($ORIGIN)/*/@link}"> + <a> + + <xsl:attribute name="href"> + + <xsl:call-template name="root"> + <xsl:with-param select="$ORIGIN" name="path"/> + </xsl:call-template> + + <xsl:value-of select=" concat(substring-before($ORIGIN, '.xml'), '.html')"/> + </xsl:attribute> + <xsl:apply-templates/> + </a> </xsl:template>