diff options
Diffstat (limited to 'import_filters/villiers-le-bacle.xslt')
-rw-r--r-- | import_filters/villiers-le-bacle.xslt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/import_filters/villiers-le-bacle.xslt b/import_filters/villiers-le-bacle.xslt new file mode 100644 index 0000000..1c33955 --- /dev/null +++ b/import_filters/villiers-le-bacle.xslt @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="utf-8" ?> +<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> +<xsl:output method="xml" indent="yes"/> + <xsl:template match="/"> + <items> + <xsl:for-each select="/html/body/div[@id='agenda']/ul/li"> + <item> + <date><xsl:value-of select="div[@class='ag-date']"/></date> + <name>Villiers-le-bâcle : <xsl:value-of select="div[@class='titre']/a"/></name> + <link><xsl:value-of select="div[@class='titre']/a/@href"/></link> + <key>villiers-le-bacle-<xsl:value-of select="div[@class='titre']/a/@href"/></key> + </item> + </xsl:for-each> + </items> + </xsl:template> +</xsl:stylesheet> + |