[yelp-xsl] Adding some ARIA landmark roles



commit 15d1fc310798df78199c9488ec1a166be7bbbc3a
Author: Shaun McCance <shaunm gnome org>
Date:   Fri Nov 2 23:34:48 2012 -0400

    Adding some ARIA landmark roles

 xslt/common/html.xsl                   |    2 +-
 xslt/docbook/html/db2html-division.xsl |    2 +-
 xslt/docbook/html/db2html-links.xsl    |    4 ++--
 xslt/mallard/html/mal2html-links.xsl   |    2 +-
 xslt/mallard/html/mal2html-page.xsl    |    6 +++---
 5 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/xslt/common/html.xsl b/xslt/common/html.xsl
index 3498c4b..c00fb7f 100644
--- a/xslt/common/html.xsl
+++ b/xslt/common/html.xsl
@@ -269,7 +269,7 @@ as ${node} to this template.
       <xsl:call-template name="html.top.custom">
         <xsl:with-param name="node" select="$node"/>
       </xsl:call-template>
-      <div class="page">
+      <div class="page" role="main">
         <div class="header"> 
           <xsl:call-template name="html.header.custom">
             <xsl:with-param name="node" select="$node"/>
diff --git a/xslt/docbook/html/db2html-division.xsl b/xslt/docbook/html/db2html-division.xsl
index 2abd288..d97ddf8 100644
--- a/xslt/docbook/html/db2html-division.xsl
+++ b/xslt/docbook/html/db2html-division.xsl
@@ -367,7 +367,7 @@ the division. By default it is called by the %{html.footer.mode} implementation.
     ($authors | $editors | $translators))"/>
   <xsl:variable name="legal" select="$info/legalnotice | $info/db:legalnotice"/>
   <xsl:if test="$copyrights or $authors or $editors or $translators or $othercredits or $legal">
-    <div class="sect about">
+    <div class="sect about" role="contentinfo">
       <div class="hgroup">
         <h2>
           <xsl:call-template name="l10n.gettext">
diff --git a/xslt/docbook/html/db2html-links.xsl b/xslt/docbook/html/db2html-links.xsl
index 788bc95..0700b53 100644
--- a/xslt/docbook/html/db2html-links.xsl
+++ b/xslt/docbook/html/db2html-links.xsl
@@ -42,7 +42,7 @@ This template outputs a trail of links for the ancestor pages of ${node}.
 <xsl:template name="db2html.links.linktrail">
   <xsl:param name="node" select="."/>
   <xsl:if test="$node/ancestor::*">
-    <div class="trails">
+    <div class="trails" role="navigation">
       <div class="trail">
         <!-- The parens put the nodes back in document order -->
         <xsl:for-each select="($node/ancestor::*)">
@@ -175,7 +175,7 @@ whether or not they are chunked.
   <xsl:param name="node" select="."/>
   <xsl:param name="divisions" select="/false"/>
   <xsl:if test="$divisions">
-    <div class="links sectionlinks">
+    <div class="links sectionlinks" role="navigation">
       <ul>
         <xsl:for-each select="$divisions">
           <li class="links">
diff --git a/xslt/mallard/html/mal2html-links.xsl b/xslt/mallard/html/mal2html-links.xsl
index b5e28d2..39da854 100644
--- a/xslt/mallard/html/mal2html-links.xsl
+++ b/xslt/mallard/html/mal2html-links.xsl
@@ -468,7 +468,7 @@ element containing ${node}.
     </xsl:choose>
   </xsl:variable>
   <xsl:if test="$node/../mal:section">
-    <div>
+    <div role="navigation">
       <xsl:attribute name="class">
         <xsl:text>links sectionlinks</xsl:text>
         <xsl:choose>
diff --git a/xslt/mallard/html/mal2html-page.xsl b/xslt/mallard/html/mal2html-page.xsl
index 1c3240b..a3b9bce 100644
--- a/xslt/mallard/html/mal2html-page.xsl
+++ b/xslt/mallard/html/mal2html-page.xsl
@@ -59,7 +59,7 @@ the #{page} element. Information is extracted from the #{info} element of ${node
 <xsl:template name="mal2html.page.about">
   <xsl:param name="node" select="."/>
   <xsl:if test="$node/mal:info/mal:credit or $node/mal:info/mal:license">
-  <div class="sect about">
+  <div class="sect about" role="contentinfo">
     <div class="hgroup">
       <h2>
         <xsl:call-template name="l10n.gettext">
@@ -248,7 +248,7 @@ on each one. Otherwise, it calls the stub template *{mal2html.page.linktrails.em
   <xsl:variable name="trailnodes" select="exsl:node-set($linktrails)/*"/>
   <xsl:choose>
     <xsl:when test="count($trailnodes) &gt; 0">
-      <div class="trails">
+      <div class="trails" role="navigation">
         <xsl:for-each select="$trailnodes">
           <xsl:sort select="(.//mal:title[ type='sort'])[1]"/>
           <xsl:sort select="(.//mal:title[ type='sort'])[2]"/>
@@ -719,7 +719,7 @@ templates that handle #{page} and #{section} elements.
                   ($postlinks[self::mal:links[ type = 'seealso']] or
                     (mal:section and not(mal:links[ type = 'seealso']))))
                 ">
-    <div class="sect sect-links">
+    <div class="sect sect-links" role="navigation">
       <div class="hgroup"/>
       <div class="contents">
         <xsl:for-each select="$postlinks">



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]