<attribute name="class">
<text>unordered</text>
</attribute>
- <attribute name="data-level">
+ <attribute name="aria-level">
<text>1</text>
</attribute>
<element name="p" namespace="&xhtml;">
<attribute name="class">
<text>ordered</text>
</attribute>
- <attribute name="data-level">
+ <attribute name="aria-level">
<text>1</text>
</attribute>
<element name="p" namespace="&xhtml;">
<attribute name="class">
<text>unordered</text>
</attribute>
- <attribute name="data-level">
+ <attribute name="aria-level">
<text>2</text>
</attribute>
<element name="p" namespace="&xhtml;">
<attribute name="class">
<text>ordered</text>
</attribute>
- <attribute name="data-level">
+ <attribute name="aria-level">
<text>2</text>
</attribute>
<element name="p" namespace="&xhtml;">
<attribute name="class">
<text>unordered</text>
</attribute>
- <attribute name="data-level">
+ <attribute name="aria-level">
<text>3</text>
</attribute>
<element name="p" namespace="&xhtml;">
<attribute name="class">
<text>ordered</text>
</attribute>
- <attribute name="data-level">
+ <attribute name="aria-level">
<text>3</text>
</attribute>
<element name="p" namespace="&xhtml;">
<attribute name="class">
<text>unordered</text>
</attribute>
- <attribute name="data-level">
+ <attribute name="aria-level">
<text>4</text>
</attribute>
<element name="p" namespace="&xhtml;">
<attribute name="class">
<text>ordered</text>
</attribute>
- <attribute name="data-level">
+ <attribute name="aria-level">
<text>4</text>
</attribute>
<element name="p" namespace="&xhtml;">
<template match="html:li" mode="LesML:finalize-list">
<param name="parent-level" select="0"/>
<variable name="current-class" select="string(@class)"/>
- <variable name="current-level" select="number(@data-level)"/>
+ <variable name="current-level" select="number(@aria-level)"/>
<variable name="wrapper">
<choose>
<when test="@class='ordered'">
</otherwise>
</choose>
</variable>
- <variable name="notinlist" select="following-sibling::node()[not(self::html:div/processing-instruction()[local-name()='LesML-Continuation'] or self::html:li and (@data-level>$current-level or @data-level=$current-level and @class=$current-class))][1]"/>
+ <variable name="notinlist" select="following-sibling::node()[not(self::html:div/processing-instruction()[local-name()='LesML-Continuation'] or self::html:li and (@aria-level>$current-level or @aria-level=$current-level and @class=$current-class))][1]"/>
<element name="{$wrapper}" namespace="&xhtml;">
- <for-each select=".|exslset:leading(following-sibling::node(), $notinlist)[self::html:li and @data-level=$current-level]">
+ <for-each select=".|exslset:leading(following-sibling::node(), $notinlist)[self::html:li and @aria-level=$current-level]">
<variable name="notcontinuation" select="following-sibling::node()[not(self::html:div/processing-instruction()[local-name()='LesML-Continuation'])][1]"/>
<copy>
<apply-templates select="@*|node()" mode="LesML:finalize-tree"/>
<for-each select="exslset:leading(following-sibling::node(), $notcontinuation)">
<apply-templates select="node()" mode="LesML:finalize-tree"/>
</for-each>
- <if test="$notcontinuation/self::html:li[@data-level>$current-level]">
+ <if test="$notcontinuation/self::html:li[@aria-level>$current-level]">
<apply-templates select="$notcontinuation" mode="LesML:finalize-list">
<with-param name="parent-level" select="$current-level"/>
</apply-templates>
</copy>
</for-each>
</element>
- <if test="$notinlist/self::html:li[@data-level>$parent-level]">
+ <if test="$notinlist/self::html:li[@aria-level>$parent-level]">
<apply-templates select="$notinlist" mode="LesML:finalize-list">
<with-param name="parent-level" select="$parent-level"/>
</apply-templates>