ATF-log archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

org.NetBSD.atf.htdocs.revamp: 1dc225c09a99faed70ac4b9dde01f4d4c17f63e2



#
#
# patch "styles/style.xsl"
#  from [9a514741e17f46128ddc333424ab89b33ce0bd68]
#    to [09a8d802806f723e8df14013b07817ed5e9c71ee]
#
============================================================
--- styles/style.xsl    9a514741e17f46128ddc333424ab89b33ce0bd68
+++ styles/style.xsl    09a8d802806f723e8df14013b07817ed5e9c71ee
@@ -1,11 +1,36 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
-<!DOCTYPE xsl:stylesheet [<!ENTITY nbsp "&#160;">]>
+<!--
+   - Automated Testing Framework (atf)
+   -
+   - Copyright (c) 2010 The NetBSD Foundation, Inc.
+   - All rights reserved.
+   -
+   - Redistribution and use in source and binary forms, with or without
+   - modification, are permitted provided that the following conditions
+   - are met:
+   - 1. Redistributions of source code must retain the above copyright
+   -    notice, this list of conditions and the following disclaimer.
+   - 2. Redistributions in binary form must reproduce the above copyright
+   -    notice, this list of conditions and the following disclaimer in the
+   -    documentation and/or other materials provided with the distribution.
+   -
+   - THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
+   - CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
+   - INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+   - MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+   - IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
+   - DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   - DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+   - GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+   - INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+   - IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+   - OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+   - IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+  -->
 
-<xsl:stylesheet version="1.0"
-                xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
+<!DOCTYPE xsl:stylesheet>
 
-  <xsl:strip-space elements="*" />
-  <xsl:preserve-space elements="foo bar" />
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
 
   <!--
     ** root mode
@@ -17,7 +42,10 @@
     </xsl:copy>
   </xsl:template>
 
-  <xsl:template mode="root" match="*" />
+  <xsl:template match="*">
+    <xsl:text>UNSUPPORTED ELEMENT: </xsl:text>
+    <xsl:value-of select="local-name()" />
+  </xsl:template>
 
   <xsl:template mode="root" match="webpage">
     <html xmlns="http://www.w3.org/1999/xhtml";>
@@ -109,11 +137,6 @@
     ** main mode.
     -->
 
-  <xsl:template mode="main" match="*">
-    <xsl:text>UNSUPPORTED ELEMENT </xsl:text>
-    <xsl:value-of select="local-name()" />
-  </xsl:template>
-
   <xsl:template mode="main" match="address">
     <a class="address" href="mailto:{@target}";>
     <xsl:choose>
@@ -222,7 +245,7 @@
         address</a></p>
       </td>
       <td>
-        <xsl:apply-templates select="description" />
+        <xsl:apply-templates mode="main" select="description/*" />
       </td>
     </tr>
   </xsl:template>
@@ -396,7 +419,7 @@
       <p><xsl:value-of select="name" /></p>
     </td>
     <td>
-      <xsl:apply-templates select="description" />
+      <xsl:apply-templates mode="main" select="description/*" />
     </td>
   </xsl:template>
 
@@ -471,7 +494,7 @@
       <p><xsl:value-of select="name" /></p>
     </td>
     <td>
-      <xsl:apply-templates select="description" />
+      <xsl:apply-templates mode="main" select="description/*" />
     </td>
   </xsl:template>
 


Home | Main Index | Thread Index | Old Index