Loading tei2html.xsl +16 −4 Original line number Diff line number Diff line Loading @@ -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"/> Loading Loading @@ -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> Loading Loading
tei2html.xsl +16 −4 Original line number Diff line number Diff line Loading @@ -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"/> Loading Loading @@ -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> Loading