Foundry support for aria- attributes

git-svn-id: https://svn.libreccm.org/ccm/trunk@5258 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2018-02-07 18:21:31 +00:00
parent 581b8cde66
commit fff68b52b0
1 changed files with 19 additions and 4 deletions

View File

@ -231,6 +231,12 @@
<xsl:copy-of select="$current-layout-node/@*[starts-with(name(), 'data-')]"/>
</xsl:template>
<xsl:template name="foundry:copy-data-attributes">
<xsl:param name="current-layout-node" select="current()"/>
<xsl:copy-of select="$current-layout-node/@*[starts-with(name(), 'aria-')]"/>
</xsl:template>
<foundry:doc section="devel" type="function">
<foundry:doc-desc>
@ -557,22 +563,31 @@
<xsl:param name="title" select="''"/>
<xsl:call-template name="foundry:set-id-and-class">
<xsl:with-param name="current-layout-node" select="$current-layout-node"/>
<xsl:with-param name="current-layout-node"
select="$current-layout-node"/>
<xsl:with-param name="id" select="$id"/>
<xsl:with-param name="class" select="$class"/>
</xsl:call-template>
<xsl:call-template name="foundry:copy-aria-attributes">
<xsl:with-param name="current-layout-node"
select="$current-layout-node"/>
</xsl:call-template>
<xsl:call-template name="foundry:copy-data-attributes">
<xsl:with-param name="current-layout-node" select="$current-layout-node"/>
<xsl:with-param name="current-layout-node"
select="$current-layout-node"/>
</xsl:call-template>
<xsl:call-template name="foundry:process-title-attribute">
<xsl:with-param name="current-layout-node" select="$current-layout-node"/>
<xsl:with-param name="current-layout-node"
select="$current-layout-node"/>
<xsl:with-param name="title" select="$title"/>
</xsl:call-template>
<xsl:call-template name="foundry:copy-attributes">
<xsl:with-param name="current-layout-node" select="$current-layout-node"/>
<xsl:with-param name="current-layout-node"
select="$current-layout-node"/>
<xsl:with-param name="attributes" select="$copy-attributes"/>
</xsl:call-template>
</xsl:template>