You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by st...@locus.apache.org on 2000/02/28 00:07:18 UTC
cvs commit: xml-cocoon/samples/xsp page-html.xsl page-xsp.xsl
stefano 00/02/27 15:07:17
Modified: samples index.xsl
samples/dcp sample-page-html.xsl
samples/entities entities-page-html.xsl
samples/fo novel-fo.xsl
samples/hello hello-page-html.xsl
samples/import import-page-html.xsl
samples/ldap ldap.xsl
samples/sites/jakarta.apache.org page-html.xsl
samples/sites/java.apache.org fancy-page-html.xsl
text-page-html.xsl
samples/vml hello-page-vml.xsl
samples/vrml hello-vrml.xsl
samples/wap portfolio-html.xsl portfolio-wml.xsl
samples/xsp page-html.xsl page-xsp.xsl
Log:
added xsl:version="1.0" to all stylesheets
Revision Changes Path
1.4 +4 -4 xml-cocoon/samples/index.xsl
Index: index.xsl
===================================================================
RCS file: /home/cvs/xml-cocoon/samples/index.xsl,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- index.xsl 2000/01/12 15:57:26 1.3
+++ index.xsl 2000/02/27 23:07:13 1.4
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<xsl:stylesheet xsl:version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="samples">
<xsl:processing-instruction name="cocoon-format">type="text/html"</xsl:processing-instruction>
@@ -9,9 +9,9 @@
<title>Cocoon Live Show</title>
</head>
<body>
-
+
<p><br /></p>
-
+
<center>
<table border="0" width="60%" bgcolor="#000000" cellspacing="0" cellpadding="0">
<tr>
@@ -33,7 +33,7 @@
</tr>
</table>
</center>
-
+
<p align="center">
<font size="-1">
Copyright © 1999-2000 <a href="http://xml.apache.org">The Apache XML Project</a>.<br/>
1.4 +7 -7 xml-cocoon/samples/dcp/sample-page-html.xsl
Index: sample-page-html.xsl
===================================================================
RCS file: /home/cvs/xml-cocoon/samples/dcp/sample-page-html.xsl,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- sample-page-html.xsl 1999/12/03 23:49:15 1.3
+++ sample-page-html.xsl 2000/02/27 23:07:13 1.4
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-
+<xsl:stylesheet xsl:version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
<xsl:template match="page">
<xsl:processing-instruction name="cocoon-format">type="text/html"</xsl:processing-instruction>
<html>
@@ -31,7 +31,7 @@
</table>
</center>
</body>
- </html>
+ </html>
</xsl:template>
<xsl:template match="title">
@@ -57,8 +57,8 @@
<td width="100%">
<table border="0" width="100%" cellpadding="4">
<tr>
- <th bgcolor="#e0e0e0" align="left">Name</th>
- <th bgcolor="#e0e0e0" align="left">Value(s)</th>
+ <th bgcolor="#e0e0e0" align="left">Name</th>
+ <th bgcolor="#e0e0e0" align="left">Value(s)</th>
</tr>
<xsl:apply-templates/>
</table>
@@ -96,7 +96,7 @@
</td>
</tr>
</xsl:template>
-
+
<xsl:template match="parameter-value">
<tr>
<td>
@@ -104,5 +104,5 @@
</td>
</tr>
</xsl:template>
-
+
</xsl:stylesheet>
1.2 +1 -1 xml-cocoon/samples/entities/entities-page-html.xsl
Index: entities-page-html.xsl
===================================================================
RCS file: /home/cvs/xml-cocoon/samples/entities/entities-page-html.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- entities-page-html.xsl 2000/01/09 23:44:18 1.1
+++ entities-page-html.xsl 2000/02/27 23:07:13 1.2
@@ -6,7 +6,7 @@
<!-- Written by Stefano Mazzocchi "stefano@apache.org" -->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<xsl:stylesheet xsl:version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="page">
<xsl:processing-instruction name="cocoon-format">type="text/html"</xsl:processing-instruction>
1.3 +1 -1 xml-cocoon/samples/fo/novel-fo.xsl
Index: novel-fo.xsl
===================================================================
RCS file: /home/cvs/xml-cocoon/samples/fo/novel-fo.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- novel-fo.xsl 1999/12/02 11:55:02 1.2
+++ novel-fo.xsl 2000/02/27 23:07:14 1.3
@@ -1,4 +1,4 @@
-<xsl:stylesheet
+<xsl:stylesheet xsl:version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
1.4 +1 -1 xml-cocoon/samples/hello/hello-page-html.xsl
Index: hello-page-html.xsl
===================================================================
RCS file: /home/cvs/xml-cocoon/samples/hello/hello-page-html.xsl,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- hello-page-html.xsl 2000/01/09 23:44:18 1.3
+++ hello-page-html.xsl 2000/02/27 23:07:14 1.4
@@ -2,7 +2,7 @@
<!-- Written by Stefano Mazzocchi "stefano@apache.org" -->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<xsl:stylesheet xsl:version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="page">
<xsl:processing-instruction name="cocoon-format">type="text/html"</xsl:processing-instruction>
1.3 +3 -3 xml-cocoon/samples/import/import-page-html.xsl
Index: import-page-html.xsl
===================================================================
RCS file: /home/cvs/xml-cocoon/samples/import/import-page-html.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- import-page-html.xsl 2000/01/10 21:49:51 1.2
+++ import-page-html.xsl 2000/02/27 23:07:14 1.3
@@ -2,16 +2,16 @@
<!-- Written by Stefano Mazzocchi "stefano@apache.org" -->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<xsl:stylesheet xsl:version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="../hello/hello-page-html.xsl"/>
-
+
<xsl:template match="page">
<html>
<xsl:apply-templates/>
</html>
</xsl:template>
-
+
<xsl:template match="paragraph">
<p align="left">
<b>
1.3 +3 -3 xml-cocoon/samples/ldap/ldap.xsl
Index: ldap.xsl
===================================================================
RCS file: /home/cvs/xml-cocoon/samples/ldap/ldap.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ldap.xsl 1999/12/23 01:31:27 1.2
+++ ldap.xsl 2000/02/27 23:07:15 1.3
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0">
+<xsl:stylesheet xsl:version="1.0" xmlns:xsl="http://www.w3.org/XSL/Transform/1.0">
<xsl:template match="page">
<xsl:processing-instruction name="cocoon-format">type="text/html"</xsl:processing-instruction>
@@ -26,7 +26,7 @@
</table>
<p/>
</xsl:template>
-
+
<xsl:template match="cn">
<tr>
<th bgcolor="tan" align="right">Common Name</th>
@@ -76,6 +76,6 @@
</td>
</tr>
</xsl:template>
-
+
</xsl:stylesheet>
1.3 +10 -10 xml-cocoon/samples/sites/jakarta.apache.org/page-html.xsl
Index: page-html.xsl
===================================================================
RCS file: /home/cvs/xml-cocoon/samples/sites/jakarta.apache.org/page-html.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- page-html.xsl 2000/02/13 18:29:15 1.2
+++ page-html.xsl 2000/02/27 23:07:15 1.3
@@ -1,9 +1,9 @@
<?xml version="1.0"?>
<!-- Author: Stefano Mazzocchi "stefano@apache.org" -->
-<!-- Version: $Id: page-html.xsl,v 1.2 2000/02/13 18:29:15 stefano Exp $ -->
+<!-- Version: $Id: page-html.xsl,v 1.3 2000/02/27 23:07:15 stefano Exp $ -->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<xsl:stylesheet xsl:version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="page">
<xsl:processing-instruction name="cocoon-format">type="text/html"</xsl:processing-instruction>
@@ -15,13 +15,13 @@
</head>
<body bgcolor="#FFFFFF">
<table width="100%" border="0" cellpadding="10" cellspacing="0">
- <tr valign="top">
+ <tr valign="top">
<xsl:apply-templates/>
</tr>
</table>
-
+
<br/>
-
+
<table width="100%" border="0" cellpadding="10" cellspacing="0">
<tr>
<td>
@@ -36,7 +36,7 @@
</body>
</html>
</xsl:template>
-
+
<xsl:template match="sidebar">
<td width="120">
<xsl:apply-templates/>
@@ -48,16 +48,16 @@
<xsl:apply-templates/>
</td>
</xsl:template>
-
+
<xsl:template match="group">
<p>
<span class="navheading"><xsl:value-of select="@name"/><xsl:text>:</xsl:text></span><br/>
<span class="navitem">
<xsl:apply-templates/>
</span>
- </p>
+ </p>
</xsl:template>
-
+
<xsl:template match="section">
<h3><xsl:value-of select="@title"/></h3>
<xsl:apply-templates/>
@@ -72,5 +72,5 @@
<xsl:template match="link">
<a href="{@href}"><xsl:apply-templates/></a><br/>
</xsl:template>
-
+
</xsl:stylesheet>
1.4 +8 -8 xml-cocoon/samples/sites/java.apache.org/fancy-page-html.xsl
Index: fancy-page-html.xsl
===================================================================
RCS file: /home/cvs/xml-cocoon/samples/sites/java.apache.org/fancy-page-html.xsl,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- fancy-page-html.xsl 1999/12/03 23:49:15 1.3
+++ fancy-page-html.xsl 2000/02/27 23:07:15 1.4
@@ -1,9 +1,9 @@
<?xml version="1.0"?>
<!-- Author: Stefano Mazzocchi "stefano@apache.org" -->
-<!-- Version: $Id: fancy-page-html.xsl,v 1.3 1999/12/03 23:49:15 stefano Exp $ -->
+<!-- Version: $Id: fancy-page-html.xsl,v 1.4 2000/02/27 23:07:15 stefano Exp $ -->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<xsl:stylesheet xsl:version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="page">
<xsl:processing-instruction name="cocoon-format">type="text/html"</xsl:processing-instruction>
@@ -14,7 +14,7 @@
<meta name="Version" content="{version}"/>
<title><xsl:value-of select="title"/></title>
</head>
-
+
<body bgcolor="#ffffff">
<center>
<table border="0" width="100%" bgcolor="#000000" cellspacing="0" cellpadding="0">
@@ -56,7 +56,7 @@
</body>
</html>
</xsl:template>
-
+
<xsl:template match="newscolumn">
<table border="0" width="100%" bgcolor="#000000" cellspacing="0" cellpadding="0">
<tr>
@@ -73,7 +73,7 @@
</tr>
</table>
</xsl:template>
-
+
<xsl:template match="news">
<tr>
<td bgcolor="#E0E0E0">
@@ -90,7 +90,7 @@
</td>
</tr>
</xsl:template>
-
+
<xsl:template match="statuscolumn">
<table border="0" width="100%" bgcolor="#000000" cellspacing="0" cellpadding="0">
<tr>
@@ -118,7 +118,7 @@
</tr>
<xsl:apply-templates select="release"/>
</xsl:template>
-
+
<xsl:template match="release">
<tr>
<td bgcolor="#FFFFFF" align="center" rowspan="2">
@@ -134,5 +134,5 @@
</td>
</tr>
</xsl:template>
-
+
</xsl:stylesheet>
1.3 +9 -9 xml-cocoon/samples/sites/java.apache.org/text-page-html.xsl
Index: text-page-html.xsl
===================================================================
RCS file: /home/cvs/xml-cocoon/samples/sites/java.apache.org/text-page-html.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- text-page-html.xsl 1999/12/02 11:55:02 1.2
+++ text-page-html.xsl 2000/02/27 23:07:15 1.3
@@ -1,12 +1,12 @@
<?xml version="1.0"?>
<!-- Author: Stefano Mazzocchi "stefano@apache.org" -->
-<!-- Version: $Id: text-page-html.xsl,v 1.2 1999/12/02 11:55:02 stefano Exp $ -->
+<!-- Version: $Id: text-page-html.xsl,v 1.3 2000/02/27 23:07:15 stefano Exp $ -->
<!-- This stylesheet is for text browsers -->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-
+<xsl:stylesheet xsl:version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
<xsl:template match="page">
<xsl:processing-instruction name="cocoon-format">type="text/html"</xsl:processing-instruction>
<html>
@@ -16,20 +16,20 @@
<meta name="Version" content="{version}"/>
<title><xsl:value-of select="title"/></title>
</head>
-
+
<body bgcolor="#ffffff">
<xsl:apply-templates select="newscolumn|statuscolumn"/>
</body>
</html>
</xsl:template>
-
+
<xsl:template match="newscolumn">
<h2><xsl:text>News</xsl:text></h2>
<ul>
<xsl:apply-templates select="news"/>
</ul>
</xsl:template>
-
+
<xsl:template match="news">
<li>
<a href="{link}"><strong><xsl:value-of select="title"/></strong></a>
@@ -39,7 +39,7 @@
<xsl:value-of select="content"/>
</li>
</xsl:template>
-
+
<xsl:template match="statuscolumn">
<h2><xsl:text>Status</xsl:text></h2>
<ul>
@@ -55,7 +55,7 @@
</ul>
</li>
</xsl:template>
-
+
<xsl:template match="release">
<li>
<strong><xsl:value-of select="version"/></strong>
@@ -65,5 +65,5 @@
<xsl:value-of select="comment"/>
</li>
</xsl:template>
-
+
</xsl:stylesheet>
1.3 +4 -4 xml-cocoon/samples/vml/hello-page-vml.xsl
Index: hello-page-vml.xsl
===================================================================
RCS file: /home/cvs/xml-cocoon/samples/vml/hello-page-vml.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- hello-page-vml.xsl 1999/12/02 11:55:03 1.2
+++ hello-page-vml.xsl 2000/02/27 23:07:16 1.3
@@ -2,21 +2,21 @@
<!-- Written by Theodore B. Achacoso, MD 991122 ted@groupserve.com -->
-<!--
+<!--
The code is based on Motorola's VoxML (Version 1.2) implementation of
the emerging VoiceXML standard (version 0.9 as of 17 August '99).
Foremost is the absence of <form></form> tags that delineate input. That
said, when this file is rendered in Motorola's Mobile ADK simulator
(MADK, version 1 beta 4 this November) the interaction looks like this:
-
+
Computer: Hello world! This is my first voice enabled cocoon page.
-
+
If user says "repeat" then the computer repeats the prompt.
If the user says "goodbye" then the computer says "Goodbye" and ends the
session.
-->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<xsl:stylesheet xsl:version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="page">
<xsl:processing-instruction name="cocoon-format">type="text/xml"</xsl:processing-instruction>
1.2 +5 -5 xml-cocoon/samples/vrml/hello-vrml.xsl
Index: hello-vrml.xsl
===================================================================
RCS file: /home/cvs/xml-cocoon/samples/vrml/hello-vrml.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- hello-vrml.xsl 2000/01/03 01:37:22 1.1
+++ hello-vrml.xsl 2000/02/27 23:07:16 1.2
@@ -1,14 +1,14 @@
<?xml version="1.0"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0">
+<xsl:stylesheet xsl:version="1.0" xmlns:xsl="http://www.w3.org/XSL/Transform/1.0">
<xsl:template match="page">
<xsl:processing-instruction name="cocoon-format">type="model/vrml"</xsl:processing-instruction>
-
- <!-- due to a DOM limitation, you must wrap your generated VRML
+
+ <!-- due to a DOM limitation, you must wrap your generated VRML
with a fake tag, here uses <vrml>, that is stripped out by the
VRML formatter -->
-
+
<vrml><xsl:text>#VRML V2.0 utf8</xsl:text>
<xsl:apply-templates select="content"/>
</vrml>
@@ -34,7 +34,7 @@
justify "MIDDLE"
}
}
- }
+ }
}
</xsl:text>
</xsl:template>
1.4 +4 -4 xml-cocoon/samples/wap/portfolio-html.xsl
Index: portfolio-html.xsl
===================================================================
RCS file: /home/cvs/xml-cocoon/samples/wap/portfolio-html.xsl,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- portfolio-html.xsl 1999/12/03 23:49:15 1.3
+++ portfolio-html.xsl 2000/02/27 23:07:16 1.4
@@ -2,7 +2,7 @@
<!-- Written by Stefano Mazzocchi "stefano@apache.org" -->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<xsl:stylesheet xsl:version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="portfolio">
<xsl:processing-instruction name="cocoon-format">type="text/html"</xsl:processing-instruction>
@@ -11,7 +11,7 @@
<head>
<title>Your Portfolio</title>
</head>
-
+
<body BGCOLOR="#FFFFFF">
<center>
<table border="0" cellspacing="0" cellpadding="3">
@@ -49,11 +49,11 @@
</td>
</tr>
</table>
- </center>
+ </center>
</body>
</html>
</xsl:template>
-
+
<xsl:template match="stocks">
<tr>
<td valign="top">
1.4 +15 -15 xml-cocoon/samples/wap/portfolio-wml.xsl
Index: portfolio-wml.xsl
===================================================================
RCS file: /home/cvs/xml-cocoon/samples/wap/portfolio-wml.xsl,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- portfolio-wml.xsl 1999/12/03 23:49:16 1.3
+++ portfolio-wml.xsl 2000/02/27 23:07:16 1.4
@@ -2,7 +2,7 @@
<!-- Written by Stefano Mazzocchi "stefano@apache.org" -->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<xsl:stylesheet xsl:version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="portfolio">
<xsl:processing-instruction name="cocoon-format">type="text/wml"</xsl:processing-instruction>
@@ -32,8 +32,8 @@
All rights reserved.
</small>
</p>
- </card>
-
+ </card>
+
<card id="value" title="Portfolio Value">
<p>
Total value: <b>$$<xsl:value-of select="total"/></b><br/>
@@ -42,26 +42,26 @@
<small>(<b><xsl:value-of select="variations/month/@rate"/><xsl:value-of select="variations/month"/>%</b> from last month)</small><br/>
<small>(<b><xsl:value-of select="variations/ever/@rate"/><xsl:value-of select="variations/ever"/>%</b> ever)</small><br/>
</p>
- <do type="prev" label="Back">
- <prev/>
- </do>
+ <do type="prev" label="Back">
+ <prev/>
+ </do>
</card>
-
+
<card id="stocks" title="Your Current Stocks">
<p align="center">
<xsl:for-each select="stocks">
<a href="#{@company}"><xsl:value-of select="@company"/></a><br/>
</xsl:for-each>
</p>
- <do type="prev" label="Back">
- <prev/>
- </do>
+ <do type="prev" label="Back">
+ <prev/>
+ </do>
</card>
-
+
<xsl:apply-templates select="stocks"/>
</wml>
</xsl:template>
-
+
<xsl:template match="stocks">
<card id="{@company}" title="{@company}">
<p>
@@ -73,9 +73,9 @@
<small>(<b><xsl:value-of select="variations/month/@rate"/><xsl:value-of select="variations/month"/>%</b> from last month)</small><br/>
<small>(<b><xsl:value-of select="variations/ever/@rate"/><xsl:value-of select="variations/ever"/>%</b> ever)</small><br/>
</p>
- <do type="prev" label="Back">
- <prev/>
- </do>
+ <do type="prev" label="Back">
+ <prev/>
+ </do>
</card>
</xsl:template>
</xsl:stylesheet>
1.5 +1 -1 xml-cocoon/samples/xsp/page-html.xsl
Index: page-html.xsl
===================================================================
RCS file: /home/cvs/xml-cocoon/samples/xsp/page-html.xsl,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- page-html.xsl 2000/02/16 01:09:30 1.4
+++ page-html.xsl 2000/02/27 23:07:17 1.5
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<xsl:stylesheet xsl:version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="page">
<xsl:processing-instruction name="cocoon-format">type="text/html"</xsl:processing-instruction>
1.5 +1 -1 xml-cocoon/samples/xsp/page-xsp.xsl
Index: page-xsp.xsl
===================================================================
RCS file: /home/cvs/xml-cocoon/samples/xsp/page-xsp.xsl,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- page-xsp.xsl 2000/02/16 01:09:30 1.4
+++ page-xsp.xsl 2000/02/27 23:07:17 1.5
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<xsl:stylesheet xsl:version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="page">