Skip to content
Snippets Groups Projects
Commit cf2da324 authored by Martin de la Iglesia's avatar Martin de la Iglesia
Browse files

Link-Generierung verbessert für Titel mit Schrägstrichen

parent 705b94c5
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<xsl:template match="/"> <xsl:template match="/">
<xsl:variable name="title" select="tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title"/> <xsl:variable name="title" select="tei:TEI/tei:teiHeader/tei:fileDesc/tei:titleStmt/tei:title"/>
<xsl:variable name="filename" select="replace(replace(replace(replace(lower-case($title),'ä','ae'),'ö','oe'),'ü','ue'),' ','')"/> <xsl:variable name="filename" select="replace(replace(replace(replace(lower-case(translate($title, '/ ', '')), 'ä', 'ae'), 'ö', 'oe'), 'ü', 'ue'), '–', '_')"/>
<xsl:result-document href="{$filename}.kml" method="xml" encoding="utf-8" indent="yes"> <xsl:result-document href="{$filename}.kml" method="xml" encoding="utf-8" indent="yes">
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom"> <kml xmlns="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">
<xsl:apply-templates select="tei:TEI/tei:text//tei:rs[@role = 'present'][@type = 'place' or @type = 'work'][preceding::tei:date[ancestor::tei:text]]"> <xsl:apply-templates select="tei:TEI/tei:text//tei:rs[@role = 'present'][@type = 'place' or @type = 'work'][preceding::tei:date[ancestor::tei:text]]">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment