httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n.@apache.org
Subject cvs commit: httpd-2.0/docs/manual/style/xsl common.xsl
Date Thu, 29 May 2003 15:49:50 GMT
nd          2003/05/29 08:49:50

  Modified:    docs/manual/style/xsl common.xsl
  Log:
  - 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 ...)
  
  Revision  Changes    Path
  1.35      +10 -3     httpd-2.0/docs/manual/style/xsl/common.xsl
  
  Index: common.xsl
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/docs/manual/style/xsl/common.xsl,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- common.xsl	20 May 2003 14:53:29 -0000	1.34
  +++ common.xsl	29 May 2003 15:49:49 -0000	1.35
  @@ -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 -->
  
  
  

Mime
View raw message