Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1943)

Unified Diff: third_party/xdg-utils/scripts/xsl/refentry2htmlindex.xsl

Issue 151098: Patch from mdm@google.com... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/
Patch Set: Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/xdg-utils/scripts/xsl/README ('k') | third_party/xdg-utils/scripts/xsl/sharedmime-list.xsl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/xdg-utils/scripts/xsl/refentry2htmlindex.xsl
===================================================================
--- third_party/xdg-utils/scripts/xsl/refentry2htmlindex.xsl (revision 0)
+++ third_party/xdg-utils/scripts/xsl/refentry2htmlindex.xsl (revision 0)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<xsl:stylesheet version="1.0"
+xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<xsl:output method="html"
+ encoding="UTF-8"
+ omit-xml-declaration="yes"
+ indent="no"/>
+<xsl:template match="/">
+ <xsl:for-each select='refentry/refnamediv'>
+ <xsl:variable name="href">
+ <xsl:value-of select="refname"/>
+ <xsl:text>.html</xsl:text>
+ </xsl:variable>
+ <tr>
+ <td><a href="{$href}"><xsl:value-of select="refname"/></a>:</td>
+ <td><xsl:value-of select="refpurpose"/></td>
+ </tr>
+ </xsl:for-each>
+</xsl:template>
+</xsl:stylesheet>
« no previous file with comments | « third_party/xdg-utils/scripts/xsl/README ('k') | third_party/xdg-utils/scripts/xsl/sharedmime-list.xsl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698