incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r1333425 - in /incubator/public/trunk/content: podlings.xml podlings.xsl
Date Thu, 03 May 2012 12:29:00 GMT
Author: bdelacretaz
Date: Thu May  3 12:29:00 2012
New Revision: 1333425

URL: http://svn.apache.org/viewvc?rev=1333425&view=rev
Log:
Add podlings.xsl for simple html representation of podlings.xml

Added:
    incubator/public/trunk/content/podlings.xsl   (with props)
Modified:
    incubator/public/trunk/content/podlings.xml   (contents, props changed)

Modified: incubator/public/trunk/content/podlings.xml
URL: http://svn.apache.org/viewvc/incubator/public/trunk/content/podlings.xml?rev=1333425&r1=1333424&r2=1333425&view=diff
==============================================================================
--- incubator/public/trunk/content/podlings.xml [utf-8] (original)
+++ incubator/public/trunk/content/podlings.xml [utf-8] Thu May  3 12:29:00 2012
@@ -1,4 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="podlings.xsl" type="text/xsl" ?>
+
 <!--
   Licensed to the Apache Software Foundation (ASF) under one
   or more contributor license agreements.  See the NOTICE file

Propchange: incubator/public/trunk/content/podlings.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/public/trunk/content/podlings.xsl
URL: http://svn.apache.org/viewvc/incubator/public/trunk/content/podlings.xsl?rev=1333425&view=auto
==============================================================================
--- incubator/public/trunk/content/podlings.xsl (added)
+++ incubator/public/trunk/content/podlings.xsl Thu May  3 12:29:00 2012
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<xsl:stylesheet version="1.0"
+    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+>
+
+<!-- basic html rendering of the podlings.xml file -->
+
+<xsl:output method="html" indent="yes" encoding="UTF-8" omit-xml-declaration="yes"/>
+
+<xsl:template match="/">
+    <html>
+    <head>
+        <title>Apache Incubator Podlings</title>
+        <link rel="stylesheet" href="http://incubator.apache.org/style/bootstrap-1-3-0-min.css"
type="text/css" />
+        <link rel="stylesheet" href="http://incubator.apache.org/style/style.css" type="text/css"
/>
+        
+        <style type="text/css">
+            body { margin-left: 1em; }
+            .podlings { margin-top: 1em; }
+        </style>
+    </head>
+    <body>
+        <h1><a href="http://incubator.apache.org">Apache Incubator Podlings</a></h1>
+        <div>
+            Note that the source .xml file might
+            contain more details that are not displayed here.
+        </div>
+        <div class="podlings">
+            <xsl:apply-templates/>
+        </div>
+    </body>
+    </html>
+</xsl:template>
+
+<xsl:template match="podling">
+    <div class="podling">
+        <a name="{@resource}"/>
+        <h2>
+            <a href="{concat('http://incubator.apache.org/', @resource)}">
+                <xsl:value-of select="@name"/>
+            </a> 
+            (<xsl:value-of select="@status"/>)
+        </h2>
+        <p class="description"><xsl:value-of select="description"/></p>
+        <p class="dates">
+            Entered incubation <xsl:value-of select="@startdate"/>
+            <xsl:if test="normalize-space(@enddate)">
+                , graduated <xsl:value-of select="@enddate"/>
+            </xsl:if> 
+            .
+        </p>
+        <h3>Mentors</h3>
+        <ul class="mentors">
+            <xsl:apply-templates select="mentors"/>
+        </ul>
+    </div>
+</xsl:template>
+
+<xsl:template match="mentor">
+    <li><xsl:value-of select="."/></li>
+</xsl:template>
+
+</xsl:stylesheet>

Propchange: incubator/public/trunk/content/podlings.xsl
------------------------------------------------------------------------------
    svn:mime-type = text/xsl



---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message