Handle aria-describedby attributes properly in the single page spec.
authorCameron McCormack <cam@mcc.id.au>
Sat, 19 May 2012 11:54:12 +1000
changeset 26 a0b36f565b39
parent 25 a501318e854c
child 27 3ec73850b2e3
Handle aria-describedby attributes properly in the single page spec.
single-page.xsl
--- a/single-page.xsl	Fri May 18 15:50:06 2012 +1000
+++ b/single-page.xsl	Sat May 19 11:54:12 2012 +1000
@@ -85,6 +85,13 @@
     </xsl:attribute>
   </xsl:template>
 
+  <xsl:template match='@aria-describedby'>
+    <xsl:param name='c'/>
+    <xsl:attribute name='aria-describedby'>
+      <xsl:value-of select='concat($c, .)'/>
+    </xsl:attribute>
+  </xsl:template>
+
   <xsl:template match='h:script[@src="style/expanders.js"]'/>
   <xsl:template match='h:script[@data-script-mathjax]'/>