diff options
Diffstat (limited to '.config/pancake/unclutter/hoogle.xsl')
-rw-r--r-- | .config/pancake/unclutter/hoogle.xsl | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/.config/pancake/unclutter/hoogle.xsl b/.config/pancake/unclutter/hoogle.xsl new file mode 100644 index 0000000..87a4ea4 --- /dev/null +++ b/.config/pancake/unclutter/hoogle.xsl @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> + <xsl:output method="html" indent="yes"/> + <xsl:template match="/"> + <html> + <body> + Hoogle: <xsl:value-of select="//h1" /> + <ul> + <xsl:for-each select="//div[@class='ans']"> + <li> + <xsl:copy-of select="a[@class='a']" /> + <xsl:value-of select="a[position()=3]" /> + <xsl:copy-of select="following::div[position()=1]" /> + <xsl:copy-of select="following::div[position()=2]" /> + <br/> + </li> + </xsl:for-each> + </ul> + </body> + </html> + </xsl:template> +</xsl:stylesheet> |