Commit 7f209289 authored by Edith Cannet's avatar Edith Cannet
Browse files

màj XSLT tei2html syntaxe XSLT 1 sur branch compatible 3.4

parent d602533f
Loading
Loading
Loading
Loading
+16 −4
Original line number Diff line number Diff line
@@ -650,9 +650,15 @@
    
    <!-- liste -->
    <xsl:template match="tei:list">
        <xsl:variable name="listType" select="if( @type = 'ordered' )
        then ( 'ol' ) else ( 'ul' )"/>
        <xsl:variable name="attributeValue" select="replace(@rendition, '^#?list-', 'list-style-type:')"/>
        <xsl:variable name="listType">
            <xsl:choose>
                <xsl:when test="@type='ordered'">ol</xsl:when>
                <xsl:otherwise>ul</xsl:otherwise>
            </xsl:choose>
        </xsl:variable>
        <xsl:variable name="attributeValue">
            <xsl:value-of select="concat('list-style-type:',substring-after(@rendition,'#list-'))"/>
        </xsl:variable>
        <xsl:element name="{$listType}">
            <xsl:attribute name="class" select="concat('index-',@type)"/>
            <xsl:attribute name="id" select="@xml:id"/>
@@ -708,7 +714,13 @@
    
    <xsl:template match="*[namespace-uri()='http://www.w3.org/1998/Math/MathML']">
        <xsl:element name="{local-name()}">
            <xsl:copy-of select="@* except(@display)"/>
            <xsl:for-each select="@*">
              <xsl:if test="name() != 'display'">
                <xsl:attribute name="{name()}">
                  <xsl:value-of select="."/>
                </xsl:attribute>
              </xsl:if>
            </xsl:for-each>
            <xsl:apply-templates select="node()"/>
        </xsl:element>
    </xsl:template>