summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorAndré Malo <nd@apache.org>2003-05-29 17:49:49 +0200
committerAndré Malo <nd@apache.org>2003-05-29 17:49:49 +0200
commit65286830517775d9d998aa00fa1aa64b319bf39b (patch)
tree5df60d0aa1cb8a259c0ba2363e4c103be95b1f09 /docs
parent- revert my patch (r1.155) since it produces regressions. (diff)
downloadapache2-65286830517775d9d998aa00fa1aa64b319bf39b.tar.xz
apache2-65286830517775d9d998aa00fa1aa64b319bf39b.zip
- add rel="alternate" attribute
- use rel and hreflang attribute only if the link points to another language - add newlines for better diffs (the next will be a huge one ...) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100087 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs')
-rw-r--r--docs/manual/style/xsl/common.xsl13
1 files changed, 10 insertions, 3 deletions
diff --git a/docs/manual/style/xsl/common.xsl b/docs/manual/style/xsl/common.xsl
index b78ba97e91..f36f185bb1 100644
--- a/docs/manual/style/xsl/common.xsl
+++ b/docs/manual/style/xsl/common.xsl
@@ -318,14 +318,19 @@
<xsl:for-each select="$metafile/variants/variant">
<xsl:sort select="." />
- <a hreflang="{.}"
- href="{$path}/{.}{$metafile/path}{$metafile/basename}.html">
+ <a href="{$path}/{.}{$metafile/path}{$metafile/basename}.html">
<xsl:if test="$metafile/basename = 'index'">
<xsl:attribute name="href">
<xsl:value-of
select="concat($path, '/', ., $metafile/path)" />
</xsl:attribute>
</xsl:if>
+ <xsl:if test="$messages/@lang != .">
+ <xsl:attribute name="hreflang">
+ <xsl:value-of select="." />
+ </xsl:attribute>
+ <xsl:attribute name="rel">alternate</xsl:attribute>
+ </xsl:if>
<xsl:attribute name="title">
<xsl:choose>
<xsl:when test=". != 'fr'"> <!-- no language file avail. -->
@@ -342,7 +347,9 @@
<xsl:value-of select="." />
&nbsp;
</a>
- <xsl:if test="position() != last()"> | </xsl:if>
+ <xsl:if test="position() != last()">
+ <xsl:text> |&#xA;</xsl:text>
+ </xsl:if>
</xsl:for-each>
</p>&lf;
</div> <!-- /.{$position}lang -->