Mercurial > hg > nginx-site
changeset 605:bfdc7833085a
Regenerated.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Fri, 20 Jul 2012 13:15:21 +0000 |
parents | b2db67ca29cc |
children | cb43695220b2 |
files | xslt/body.xslt xslt/link.xslt |
diffstat | 2 files changed, 13 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/xslt/body.xslt +++ b/xslt/body.xslt @@ -70,7 +70,7 @@ <tr> <td valign="top"> - <xsl:if test="$ORIGIN and document($ORIGIN)/*/@rev and (not(@rev) or @rev != document($ORIGIN)/*/@rev)"> + <xsl:if test="$ORIGIN and document(concat($XML, '/', $ORIGIN))/*/@rev and (not(@rev) or @rev != document(concat($XML, '/', $ORIGIN))/*/@rev)"> <span>
--- a/xslt/link.xslt +++ b/xslt/link.xslt @@ -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>