summaryrefslogtreecommitdiff
path: root/import_filters/ot-massy.xslt
blob: 762e768077c925ad7bf553c6bf68a6b65d8d75d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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>