aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2006-10-24 00:24:42 +0000
committerRob Austein <sra@hactrn.net>2006-10-24 00:24:42 +0000
commit8ed16a12bf57ddb328c0b842fd04bd62b0a778df (patch)
treecac06861078fd8b80577ce7eee5be403879ed87b
parent261032220be6fb59fe5badd50438e040eebaba72 (diff)
rcynic.xsl
svn path=/rcynic/rcynic.xsl; revision=428
-rw-r--r--rcynic/rcynic.xsl78
1 files changed, 78 insertions, 0 deletions
diff --git a/rcynic/rcynic.xsl b/rcynic/rcynic.xsl
new file mode 100644
index 00000000..d038c927
--- /dev/null
+++ b/rcynic/rcynic.xsl
@@ -0,0 +1,78 @@
+<?xml version="1.0"?>
+<!--
+ - Copyright (C) 2006 American Registry for Internet Numbers ("ARIN")
+ -
+ - Permission to use, copy, modify, and distribute this software for any
+ - purpose with or without fee is hereby granted, provided that the above
+ - copyright notice and this permission notice appear in all copies.
+ -
+ - THE SOFTWARE IS PROVIDED "AS IS" AND ARIN DISCLAIMS ALL WARRANTIES WITH
+ - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+ - AND FITNESS. IN NO EVENT SHALL ARIN BE LIABLE FOR ANY SPECIAL, DIRECT,
+ - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+ - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+ - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+ - PERFORMANCE OF THIS SOFTWARE.
+ -->
+
+<!-- $Id$ -->
+
+<!--
+ - XSL stylesheet to render rcynic's xml-summary output as basic (X)HTML.
+ -->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+
+ <xsl:output omit-xml-declaration="yes" indent="yes" method="xml" encoding="US-ASCII"/>
+
+ <xsl:template match="/">
+ <html>
+ <head>
+ <title>rcynic summary</title>
+ </head>
+ <body>
+ <h1>rcynic summary</h1>
+ <br/>
+ <xsl:apply-templates/>
+ </body>
+ </html>
+ </xsl:template>
+
+ <xsl:template match="/rcynic-summary">
+ <table rules="all">
+ <thead>
+ <xsl:apply-templates select="labels"/>
+ </thead>
+ <tbody>
+ <xsl:apply-templates select="host"/>
+ </tbody>
+ </table>
+ </xsl:template>
+
+ <xsl:template match="/rcynic-summary/*">
+ <tr>
+ <xsl:apply-templates/>
+ </tr>
+ </xsl:template>
+
+ <xsl:template match="/rcynic-summary/labels/*">
+ <td>
+ <b>
+ <xsl:apply-templates/>
+ </b>
+ </td>
+ </xsl:template>
+
+ <xsl:template match="/rcynic-summary/host/*">
+ <td>
+ <xsl:apply-templates/>
+ </td>
+ </xsl:template>
+
+</xsl:stylesheet>
+
+<!--
+ - Local variables:
+ - mode: sgml
+ - End:
+ -->