summaryrefslogtreecommitdiff
path: root/import_filters
diff options
context:
space:
mode:
authorValérie-Emma Leroux <emma@iggdrasil.net>2016-09-19 13:45:34 +0200
committerValérie-Emma Leroux <emma@iggdrasil.net>2016-09-19 13:45:34 +0200
commit501530b36bd2bfde0f9d6f29f69fba868272f7a3 (patch)
treefbb82d0b2906b50de4eb65aba9f61dfdab8f0225 /import_filters
parent996fda6af4b0ad431e32187dc2ad59a49f66b089 (diff)
parent0b4867c720c9a2dc49996ed1a45580138a749caa (diff)
downloadChimère - projet Saclay-501530b36bd2bfde0f9d6f29f69fba868272f7a3.tar.bz2
Chimère - projet Saclay-501530b36bd2bfde0f9d6f29f69fba868272f7a3.zip
Merge branch 'saclay-v2.2' of git.iggdrasil.net:/srv/git/chimere_saclay into saclay-v2.2
Diffstat (limited to 'import_filters')
-rw-r--r--import_filters/ot-massy.xslt28
1 files changed, 28 insertions, 0 deletions
diff --git a/import_filters/ot-massy.xslt b/import_filters/ot-massy.xslt
new file mode 100644
index 0000000..762e768
--- /dev/null
+++ b/import_filters/ot-massy.xslt
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:a="http://www.caravelis.com/webservice/data" xmlns:tif="http://www.tourinfrance.net/Tourinfrance3/" xmlns:fmp="http://www.filemaker.com/fmpdsoresult" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/">
+<xsl:output method="xml" indent="yes"/>
+ <xsl:template match="/">
+ <items>
+ <xsl:apply-templates select="/a:listeoi/a:ois/tif:oi" />
+ </items>
+ </xsl:template>
+
+ <xsl:template match="tif:oi">
+ <item>
+ <name>Office de tourisme de Massy : <xsl:value-of select="tif:dublincore/dc:title"/></name>
+ <xsl:for-each select="tif:multimedia/tif:detailmultimedia[@libelle='Image']">
+ <image><xsl:value-of select="tif:url"/></image>
+ </xsl:for-each>
+ <description>
+ <xsl:value-of select="tif:dublincore/dc:subject"/>
+ <br /><xsl:value-of select="tif:dublincore/dc:description"/></description>
+ <start_date><xsl:value-of select="tif:periodes/tif:detailperiode/tif:dates/tif:detaildates/tif:datedebut"/></start_date>
+ <end_date><xsl:value-of select="tif:periodes/tif:detailperiode/tif:dates/tif:detaildates/tif:datefin"/></end_date>
+ <key>OT-massy-<xsl:value-of select="tif:dublincore/dc:identifier"/></key>
+ <lat><xsl:value-of select="tif:geolocalisations/tif:detailgeolocalisation/tif:zone/tif:points/tif:detailpoint/tif:coordonnees/tif:detailcoordonnees/tif:latitude"/></lat>
+ <lon><xsl:value-of select="tif:geolocalisations/tif:detailgeolocalisation/tif:zone/tif:points/tif:detailpoint/tif:coordonnees/tif:detailcoordonnees/tif:longitude"/></lon>
+ </item>
+ </xsl:template>
+
+</xsl:stylesheet>
+