summaryrefslogtreecommitdiff
path: root/chimere/tests/villiers-le-bacle.xslt
diff options
context:
space:
mode:
Diffstat (limited to 'chimere/tests/villiers-le-bacle.xslt')
-rw-r--r--chimere/tests/villiers-le-bacle.xslt17
1 files changed, 17 insertions, 0 deletions
diff --git a/chimere/tests/villiers-le-bacle.xslt b/chimere/tests/villiers-le-bacle.xslt
new file mode 100644
index 0000000..fd062b1
--- /dev/null
+++ b/chimere/tests/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><xsl:value-of select="div[@class='titre']/a"/></name>
+ <link><xsl:value-of select="div[@class='titre']/a/@href"/></link>
+ <key><xsl:value-of select="div[@class='titre']/a/@href"/></key>
+ </item>
+ </xsl:for-each>
+ </items>
+ </xsl:template>
+</xsl:stylesheet>
+