-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathlibmozrecent.xsl
More file actions
24 lines (22 loc) · 842 Bytes
/
libmozrecent.xsl
File metadata and controls
24 lines (22 loc) · 842 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!-- mozrecent.xsl (XSL library) -->
<!-- named templates for extracting entries from the Mozilla Download Mgr dialog's list -->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:NC="http://home.netscape.com/NC-rdf#"
xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
<xsl:template name="print_entry">
<xsl:choose>
<xsl:when test="starts-with(@RDF:about,'file://')">
<xsl:value-of select="substring-after(@RDF:about,'file://')" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@RDF:about" />
</xsl:otherwise>
</xsl:choose>
<xsl:text> = </xsl:text>
<xsl:value-of select="./NC:URL/@RDF:resource" />
<!-- dump a linefeed -->
<xsl:text>
</xsl:text>
</xsl:template>
</xsl:stylesheet>