diff options
-rw-r--r-- | import_filters/ot-massy.xslt | 28 |
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> + |