Commit d5106f24 authored by Edith Cannet's avatar Edith Cannet
Browse files

tei : amélioration gestion index (classement via clé lang, surtitre,...

tei : amélioration gestion index (classement via clé lang, surtitre, recensions, encadrés, rtl, front (épigraphe, notes, remerciements, erratum, résumé), identifiants auteur, méta version imprimée, mots-clés
parent bc3c45c5
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ Source code under CECILL-C licence. Please refer to the LICENSE.txt file for mor
    <xsl:if test="not(following-sibling::tei:back) and //tei:index">
        <!-- création d'un back non existant et si présence d'entrée d'index-->
        <back xmlns="http://www.tei-c.org/ns/1.0" >
            <div xmlns="http://www.tei-c.org/ns/1.0" type="index" xml:id="index">
            <div xmlns="http://www.tei-c.org/ns/1.0" type="index" xml:id="index-Bo">
                <head>Index</head>
                <xsl:for-each select="//tei:index">
                    <xsl:variable name="indexName">
@@ -67,7 +67,7 @@ Source code under CECILL-C licence. Please refer to the LICENSE.txt file for mor
        <xsl:copy-of select="@*"/>
        <xsl:apply-templates/>
        <xsl:if test="//tei:index">
            <div xmlns="http://www.tei-c.org/ns/1.0" type="index" xml:id="index">
            <div xmlns="http://www.tei-c.org/ns/1.0" type="index" xml:id="index-Ba">
                <head>Index</head>
                <xsl:for-each select="//tei:index">
                    <xsl:variable name="indexName">
@@ -102,7 +102,7 @@ Source code under CECILL-C licence. Please refer to the LICENSE.txt file for mor
    
<xsl:template match="//tei:index">
    <xsl:variable name="termId" select="concat('term',count(./preceding::tei:term) + 1)"/>
    <anchor xmlns="http://www.tei-c.org/ns/1.0" n="{concat('index-',@indexName,':',child::tei:term)}" xml:id="{$termId}"/>
    <anchor xmlns="http://www.tei-c.org/ns/1.0" n="{concat('index-',@indexName,':',child::tei:term)}"><xsl:attribute name="xml:id"><xsl:value-of select="$termId"/></xsl:attribute></anchor>
</xsl:template>
    
</xsl:stylesheet>
 No newline at end of file
+2 −1
Original line number Diff line number Diff line
@@ -28,7 +28,8 @@
</xsl:template>

<xsl:template match="//tei:div[@type='index']">
    <div type="index" xmlns="http://www.tei-c.org/ns/1.0" xml:id="{@xml:id}">
    <div type="index" xmlns="http://www.tei-c.org/ns/1.0">
        <xsl:attribute name="xml:id"><xsl:value-of select="@xml:id"/></xsl:attribute>
        <head>Index</head>
        <xsl:for-each select="//tei:index[@n='level1']/tei:term/text()">
            <xsl:sort select="." data-type="text" order="ascending" lang="{$lang}"/>
+272 −139

File changed.

Preview size limit exceeded, changes collapsed.