Skip to content

Commit

Permalink
improve gladvisory
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-n-cooper committed May 21, 2018
1 parent 1612c58 commit 6cd748f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion xslt/generate-understanding.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
<xsl:apply-templates select="//html:section[@id = 'resources']"/>
<xsl:apply-templates select="//html:section[@id = 'techniques']"/>
<xsl:if test="name($meta) = 'guideline'">
<xsl:apply-templates select="//html:section[@id = 'advisory']"/>
<xsl:apply-templates select="//html:section[@id = 'advisory']" mode="gladvisory"/>
<xsl:call-template name="gl-sc"/>
</xsl:if>
</main>
Expand Down Expand Up @@ -272,6 +272,15 @@
</xsl:copy>
</xsl:template>

<xsl:template match="html:section[@id = 'advisory']" mode="gladvisory">
<xsl:copy>
<xsl:apply-templates select="@*"/>
<h2>Advisory Techniques</h2>
<p>Specific techniques for meeting each Success Criterion for this guideline are listed in the understanding sections for each Success Criterion (listed below). If there are techniques, however, for addressing this guideline that do not fall under any of the success criteria, they are listed here. These techniques are not required or sufficient for meeting any success criteria, but can make certain types of Web content more accessible to more people.</p>
<xsl:apply-templates select="html:*[not(wcag:isheading(.))]"/>
</xsl:copy>
</xsl:template>

<xsl:template match="html:section[@id = 'failure']">
<xsl:copy>
<xsl:apply-templates select="@*"/>
Expand Down

0 comments on commit 6cd748f

Please sign in to comment.