Skip to content

Commit

Permalink
remove extension from filenames in URIs
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-n-cooper committed May 21, 2018
1 parent cbcb540 commit 1612c58
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions xslt/generate-structure-xml.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -36,28 +36,28 @@
<guidelines lang="{@lang}">
<understanding>
<name>Introduction to Understanding WCAG 2.1</name>
<file href="intro.html"/>
<file href="intro"/>
</understanding>
<understanding>
<name>Understanding Techniques for WCAG Success Criteria</name>
<file href="understanding-techniques.html"/>
<file href="understanding-techniques"/>
</understanding>
<xsl:apply-templates select="//html:section[@class='principle']"/>
<understanding>
<name>Understanding Conformance</name>
<file href="conformance.html"/>
<file href="conformance"/>
</understanding>
<understanding>
<name>How to Refer to WCAG 2.1 from Other Documents</name>
<file href="refer-to-wcag.html"/>
<file href="refer-to-wcag"/>
</understanding>
<understanding>
<name>Documenting Accessibility Support for Uses of a Web Technology</name>
<file href="documenting-accessibility-support.html"/>
<file href="documenting-accessibility-support"/>
</understanding>
<understanding>
<name>Understanding Metadata</name>
<file href="understanding-metadata.html"/>
<file href="understanding-metadata"/>
</understanding>
<xsl:apply-templates select="//html:dfn"/>
</guidelines>
Expand All @@ -81,7 +81,7 @@
<num><xsl:number level="multiple" count="html:section[@class='principle']|html:section[@class='guideline' or @class = 'guideline new']" format="1.1"/></num>
<name><xsl:value-of select="wcag:find-heading(.)"/></name>
<xsl:call-template name="content"/>
<file href="{wcag:generate-id(wcag:find-heading(.))}.html"/>
<file href="{wcag:generate-id(wcag:find-heading(.))}"/>
<xsl:apply-templates select="html:section"/>
</guideline>
</xsl:template>
Expand All @@ -94,7 +94,7 @@
<name><xsl:value-of select="wcag:find-heading(.)"/></name>
<xsl:call-template name="content"/>
<level><xsl:value-of select="html:p[@class='conformance-level']"/></level>
<file href="{wcag:generate-id(wcag:find-heading(.))}.html"/>
<file href="{wcag:generate-id(wcag:find-heading(.))}"/>
</success-criterion>
</xsl:template>

Expand Down
4 changes: 2 additions & 2 deletions xslt/generate-understanding.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@
<xsl:when test="version = 'WCAG21'">21/</xsl:when>
</xsl:choose>
</xsl:variable>
<xsl:result-document href="{$output.dir}/{file/@href}" encoding="utf-8" exclude-result-prefixes="#all" indent="yes" method="xml" omit-xml-declaration="yes">
<xsl:apply-templates select="document(resolve-uri(file/@href, concat($base.dir, $subpath)))">
<xsl:result-document href="{$output.dir}/{file/@href}.html" encoding="utf-8" exclude-result-prefixes="#all" indent="yes" method="xml" omit-xml-declaration="yes">
<xsl:apply-templates select="document(resolve-uri(concat(file/@href, '.html'), concat($base.dir, $subpath)))">
<xsl:with-param name="meta" select="." tunnel="yes"/>
</xsl:apply-templates>
</xsl:result-document>
Expand Down

0 comments on commit 1612c58

Please sign in to comment.