Skip to content
This repository has been archived by the owner on Dec 21, 2020. It is now read-only.

Commit

Permalink
rewrite script for 'idno type=termithIdentifier'
Browse files Browse the repository at this point in the history
  • Loading branch information
nCombo committed Oct 9, 2015
1 parent 6ee87d8 commit 37140d4
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@
<xsl:copy>
<xsl:apply-templates select="availability"/>
<xsl:apply-templates select="idno"/>
<xsl:element name="idno">
<xsl:attribute name="type">
<xsl:value-of>termithIdentifier</xsl:value-of>
</xsl:attribute>
<xsl:variable name="filename" select="tokenize(base-uri(.), '/')[last()]"/>
<!--<xsl:value-of select="substring-before($filename, '.tei')"/>-->
<xsl:value-of select="$filename"/>
</xsl:element>
</xsl:copy>
</xsl:template>

Expand All @@ -110,14 +118,6 @@
<xsl:template match="idno">
<xsl:copy-of select="."/>
<!-- identifiant termith: recupere le nom de fichier -->
<xsl:element name="idno">
<xsl:attribute name="type">
<xsl:value-of>termithIdentifier</xsl:value-of>
</xsl:attribute>
<xsl:variable name="filename" select="tokenize(base-uri(.), '/')[last()]"/>
<!--<xsl:value-of select="substring-before($filename, '.tei')"/>-->
<xsl:value-of select="$filename"/>
</xsl:element>
</xsl:template>

<xsl:template match="sourceDesc">
Expand Down

0 comments on commit 37140d4

Please sign in to comment.