Skip to content

Commit

Permalink
add terms to xml structure
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-n-cooper committed May 19, 2018
1 parent bebbb34 commit bb8b056
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions xslt/generate-structure-xml.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
<name>Understanding Metadata</name>
<file href="understanding-metadata.html"/>
</understanding>
<xsl:apply-templates select="//html:dfn"/>
</guidelines>
</xsl:template>

Expand Down Expand Up @@ -97,4 +98,15 @@
</success-criterion>
</xsl:template>

<xsl:template match="html:dfn">
<xsl:variable name="alts" select="tokenize(@data-lt, '\|')"></xsl:variable>
<term>
<id><xsl:text>dfn-</xsl:text><xsl:value-of select="wcag:generate-id(.)"/></id>
<name><xsl:value-of select="."/></name>
<xsl:for-each select="$alts">
<name><xsl:value-of select="."/></name>
</xsl:for-each>
</term>
</xsl:template>

</xsl:stylesheet>

0 comments on commit bb8b056

Please sign in to comment.