diff options
Diffstat (limited to 'templates/video.google.com/search.xsl')
-rw-r--r-- | templates/video.google.com/search.xsl | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/templates/video.google.com/search.xsl b/templates/video.google.com/search.xsl new file mode 100644 index 0000000..07dbda6 --- /dev/null +++ b/templates/video.google.com/search.xsl @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> + +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:str="http://exslt.org/strings"> + +<xsl:template match="/"> +<wvmenu> + <title>Google video search</title> + + <textfield name="q"> + <label>Search terms</label> + </textfield> + + <itemlist name="so"> + <label>Sort by</label> + <item value="">Relevance</item> + <item value=",sbd:1">Date</item> + </itemlist> + + <itemlist name="dur"> + <label>Duration</label> + <item value="">All durations</item> + <item value=",dur:s">Short (< 4 min)</item> + <item value=",dur:m">Medium (4-20 min)</item> + <item value=",dur:l">Long (> 20 min)</item> + </itemlist> + + <button> + <label>Search</label> + <submission>wvt:///video.google.com/searchresults.xsl?srcurl=<xsl:value-of select="str:encode-uri('http://www.google.com/search?q={q}&tbs=vid:1{dur}{so}', true())"/>&HTTP-header=User-Agent,Mozilla/5.0</submission> + </button> +</wvmenu> +</xsl:template> + +</xsl:stylesheet> |