attic-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1696614 - in /jakarta/site/docs/ecs: ./ index.html
Date Wed, 19 Aug 2015 15:32:12 GMT
Author: sebb
Date: Wed Aug 19 15:32:12 2015
New Revision: 1696614

URL: http://svn.apache.org/r1696614
Log:
Fetched ECS from https://web.archive.org/web/20140321141522/http://jakarta.apache.org/ecs/

Added:
    jakarta/site/docs/ecs/
    jakarta/site/docs/ecs/index.html   (with props)

Added: jakarta/site/docs/ecs/index.html
URL: http://svn.apache.org/viewvc/jakarta/site/docs/ecs/index.html?rev=1696614&view=auto
==============================================================================
--- jakarta/site/docs/ecs/index.html (added)
+++ jakarta/site/docs/ecs/index.html Wed Aug 19 15:32:12 2015
@@ -0,0 +1,366 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+
+<!--
+Copyright 1999-2004 The Apache Software Foundation
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+/http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+
+
+<!-- Content Stylesheet for Site -->
+
+        
+<!-- start the processing -->
+    <!-- ====================================================================== -->
+    <!-- GENERATED FILE, DO NOT EDIT, EDIT THE XML FILE IN xdocs INSTEAD! -->
+    <!-- Main Page Section -->
+    <!-- ====================================================================== -->
+    <html>
+        <head>
+
+            <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
+
+                                                    <meta name="author" value="Jon S.
Stevens">
+            <meta name="email" value="jon@latchkey.com">
+            
+           
+                                    
+                        
+            <title>Jakarta ECS - Element Construction Set</title>
+        </head>
+
+        <body bgcolor="#ffffff" text="#000000" link="#525D76">
+            <table border="0" width="100%" cellspacing="0">
+                <!-- TOP IMAGE -->
+                <tr>
+                    <td align="left">
+<a href="/http://jakarta.apache.org/"><img src="im_/http://jakarta.apache.org/images/jakarta-logo.gif"
border="0"/></a>
+</td>
+<td align="right">
+<a href="/http://jakarta.apache.org/"><img src="im_/http://jakarta.apache.org/ecs/images/ecs-small.jpg"
alt="Element Construction Set" border="0"/></a>
+</td>
+                </tr>
+            </table>
+            <table border="0" width="100%" cellspacing="4">
+                <tr><td colspan="2">
+                    <hr noshade="" size="1"/>
+                </td></tr>
+                
+                <tr>
+                    <!-- LEFT SIDE NAVIGATION -->
+                    <td width="20%" valign="top" nowrap="true">
+                    
+    <!-- ============================================================ -->
+
+            <p><strong>Jakarta ECS</strong></p>
+        <ul>
+<!--                    <li>    <a href="/http://jakarta.apache.org/site/downloads/downloads_ecs.cgi">Downloads</a>
+</li> -->
+                    <li>    <a href="/http://jakarta.apache.org/site/getinvolved.html">Get
Involved</a>
+</li>
+                    <li>    <a href="/http://jakarta.apache.org/site/cvsindex.html">Source
Repositories</a>
+</li>
+                    <li>    <a href="/http://jakarta.apache.org/site/mail.html">Mailing
Lists</a>
+</li>
+                </ul>
+                        </td>
+                    <td width="80%" align="left" valign="top">
+
+<table width="100%" cellpadding="2" cellspacing="0" border="0">
+<tr>
+<td bgcolor="#ff0000"><font face="arial,helvetica.sanserif" color="#ffffff"><a
name="Retired"><strong>ECS is Retired</strong></a></font></td>
+</tr>
+<tr>
+<td>
+<blockquote>
+<p>
+    As of 2010-09-01, the ECS project is retired. This is an archived site.
+</p>
+<p>
+    Due to a lack of development activity, the Jakarta ECS project has been
+    retired and moved to the <a href="/http://attic.apache.org/">Apache Attic</a>.
+    No further ECS development or releases will happen at Jakarta.
+</p>
+<p>
+    Users are encouraged to switch to other techniques for markup generation.
+</p>  
+<p>
+    This site is kept online for archiving purposes only.
+</p>  
+</blockquote>
+</td>
+</tr>
+</table>
+
+
+
+                                                                    <table border="0"
cellspacing="0" cellpadding="2" width="100%">
+      <tr><td bgcolor="#525D76">
+        <font color="#ffffff" face="arial,helvetica,sanserif">
+          <a name="What is it?"><strong>What is it?</strong></a>
+        </font>
+      </td></tr>
+      <tr><td>
+        <blockquote>
+                                    <p>
+The <strong>Element Construction Set</strong> is a Java API for generating 
+elements for various markup languages it directly supports HTML 4.0 and XML, but 
+can easily be extended to create tags for any markup language. It is designed 
+and implemented by Stephan Nagy and Jon S. Stevens.
+</p>
+                            </blockquote>
+        </p>
+      </td></tr>
+      <tr><td><br/></td></tr>
+    </table>
+                                                <table border="0" cellspacing="0" cellpadding="2"
width="100%">
+      <tr><td bgcolor="#525D76">
+        <font color="#ffffff" face="arial,helvetica,sanserif">
+          <a name="What does it do?"><strong>What does it do?</strong></a>
+        </font>
+      </td></tr>
+      <tr><td>
+        <blockquote>
+                                    <p>
+The <b>E</b>lement <b>C</b>onstruction <b>S</b>et allows
you to use Java 
+Objects to generate markup code.  Gone is the need for writing code that looks 
+like the following:
+</p>
+                                                    <div align="left">
+    <table cellspacing="4" cellpadding="0" border="0">
+    <tr>
+      <td bgcolor="#023264" width="1" height="1"><img src="im_/http://jakarta.apache.org/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+      <td bgcolor="#023264" height="1"><img src="im_/http://jakarta.apache.org/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+      <td bgcolor="#023264" width="1" height="1"><img src="im_/http://jakarta.apache.org/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+    </tr>
+    <tr>
+      <td bgcolor="#023264" width="1"><img src="im_/http://jakarta.apache.org/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+      <td bgcolor="#ffffff"><pre>
+out.println(&quot;&lt;HTML&gt;&quot;);
+out.println(&quot;&lt;HEAD&gt;&lt;TITLE&gt;Demo&lt;TITLE&gt;&lt;HEAD&gt;&quot;);
+out.println(&quot;&lt;BODY&gt;&quot;);
+out.println(&quot;&lt;H1&gt;Demo Header&lt;H1&gt;&quot;);
+out.println(&quot;&lt;H3&gt;Sub Header:&lt;H3&gt;&quot;);
+out.println(&quot;&lt;FONT SIZE=\&quot;+1\&quot; FACE=\&quot;Times\&quot;
COLOR=\&quot;#FFFFFF&quot;&gt;);
+out.println(&quot;The big dog &amp;amp; the little cat chased each other.&quot;);
+out.println(&quot;&lt;FONT&gt;&quot;);
+out.println(&quot;&lt;BODY&gt;&quot;);
+out.println(&quot;&lt;HTML&gt;&quot;);
+</pre></td>
+      <td bgcolor="#023264" width="1"><img src="im_/http://jakarta.apache.org/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+    </tr>
+    <tr>
+      <td bgcolor="#023264" width="1" height="1"><img src="im_/http://jakarta.apache.org/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+      <td bgcolor="#023264" height="1"><img src="im_/http://jakarta.apache.org/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+      <td bgcolor="#023264" width="1" height="1"><img src="im_/http://jakarta.apache.org/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+    </tr>
+    </table>
+    </div>
+                                                <p>
+You can do this instead:
+</p>
+                                                    <div align="left">
+    <table cellspacing="4" cellpadding="0" border="0">
+    <tr>
+      <td bgcolor="#023264" width="1" height="1"><img src="im_/http://jakarta.apache.org/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+      <td bgcolor="#023264" height="1"><img src="im_/http://jakarta.apache.org/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+      <td bgcolor="#023264" width="1" height="1"><img src="im_/http://jakarta.apache.org/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+    </tr>
+    <tr>
+      <td bgcolor="#023264" width="1"><img src="im_/http://jakarta.apache.org/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+      <td bgcolor="#ffffff"><pre>
+Html html = new Html()
+              .addElement(new Head()
+                  .addElement(new Title(&quot;Demo&quot;)))
+              .addElement(new Body()
+              .addElement(new H1(&quot;Demo Header&quot;))
+              .addElement(new H3(&quot;Sub Header:&quot;))
+              .addElement(new Font().setSize(&quot;+1&quot;)
+                         .setColor(HtmlColor.WHITE)
+                         .setFace(&quot;Times&quot;)
+                         .addElement(&quot;The big dog &amp; the little cat chased
each other.&quot;)));
+out.println(html.toString()); 
+// or write to the outputstream directly
+output(out);
+</pre></td>
+      <td bgcolor="#023264" width="1"><img src="im_/http://jakarta.apache.org/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+    </tr>
+    <tr>
+      <td bgcolor="#023264" width="1" height="1"><img src="im_/http://jakarta.apache.org/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+      <td bgcolor="#023264" height="1"><img src="im_/http://jakarta.apache.org/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+      <td bgcolor="#023264" width="1" height="1"><img src="im_/http://jakarta.apache.org/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+    </tr>
+    </table>
+    </div>
+                                                <p>
+This creates the HTML:
+</p>
+                                                    <div align="left">
+    <table cellspacing="4" cellpadding="0" border="0">
+    <tr>
+      <td bgcolor="#023264" width="1" height="1"><img src="im_/http://jakarta.apache.org/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+      <td bgcolor="#023264" height="1"><img src="im_/http://jakarta.apache.org/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+      <td bgcolor="#023264" width="1" height="1"><img src="im_/http://jakarta.apache.org/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+    </tr>
+    <tr>
+      <td bgcolor="#023264" width="1"><img src="im_/http://jakarta.apache.org/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+      <td bgcolor="#ffffff"><pre>
+&lt;html&gt;&lt;head&gt;&lt;title&gt;Demo&lt;/title&gt;&lt;/head&gt;&lt;body&gt;&lt;h1&gt;Demo
Header&lt;/h1&gt;&lt;h3&gt;Sub Header:&lt;/h3&gt;
+&lt;font size=&quot;+1&quot; color=&quot;#FFFFFF&quot; face=&quot;Times&quot;&gt;The
big dog &amp;#38; the little cat chased
+ each other.&lt;/font&gt;&lt;/body&gt;&lt;/html&gt;
+</pre></td>
+      <td bgcolor="#023264" width="1"><img src="im_/http://jakarta.apache.org/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+    </tr>
+    <tr>
+      <td bgcolor="#023264" width="1" height="1"><img src="im_/http://jakarta.apache.org/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+      <td bgcolor="#023264" height="1"><img src="im_/http://jakarta.apache.org/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+      <td bgcolor="#023264" width="1" height="1"><img src="im_/http://jakarta.apache.org/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+    </tr>
+    </table>
+    </div>
+                                                <p>
+Or even easier, use the Document object:
+</p>
+                                                    <div align="left">
+    <table cellspacing="4" cellpadding="0" border="0">
+    <tr>
+      <td bgcolor="#023264" width="1" height="1"><img src="im_/http://jakarta.apache.org/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+      <td bgcolor="#023264" height="1"><img src="im_/http://jakarta.apache.org/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+      <td bgcolor="#023264" width="1" height="1"><img src="im_/http://jakarta.apache.org/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+    </tr>
+    <tr>
+      <td bgcolor="#023264" width="1"><img src="im_/http://jakarta.apache.org/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+      <td bgcolor="#ffffff"><pre>
+Document doc = (Document) new Document()
+              .appendTitle(&quot;Demo&quot;)
+              .appendBody(new H1(&quot;Demo Header&quot;))
+              .appendBody(new H3(&quot;Sub Header:&quot;))
+              .appendBody(new Font().setSize(&quot;+1&quot;)
+                         .setColor(HtmlColor.WHITE)
+                         .setFace(&quot;Times&quot;)
+                         .addElement(&quot;The big dog &amp; the little cat chased
each other.&quot;));
+out.println(doc.toString()); 
+// or write to the outputstream directly
+output(out);
+</pre></td>
+      <td bgcolor="#023264" width="1"><img src="im_/http://jakarta.apache.org/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+    </tr>
+    <tr>
+      <td bgcolor="#023264" width="1" height="1"><img src="im_/http://jakarta.apache.org/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+      <td bgcolor="#023264" height="1"><img src="im_/http://jakarta.apache.org/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+      <td bgcolor="#023264" width="1" height="1"><img src="im_/http://jakarta.apache.org/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+    </tr>
+    </table>
+    </div>
+                                                <p>
+This creates the same HTML as above.
+</p>
+                                                <p>
+There are some subtleties in the above code that are worth commenting on.
+</p>
+                                                <p>
+<ol>
+<li>You don't need to know the Hex value of the color you want.  HtmlColor is an 
+interface that defines more than 200 colors.</li>
+<li>You don't need to replace &amp; ' " with their entity counterparts, it is 
+done for you (this is configurable of course). <B>ECS</B> gives you the 
+ability to define filters that are applied to the element when you call 
+the addElement() methods.</li>
+<li>You can write directly to an elements output stream. output() is a 
+method that can be overridden to provide custom rendering of elements.</li>
+</ol>
+</p>
+                                                <p>
+<B>ECS</B> also gives you the ability to create your own elements on the fly

+using the XML element.  So you can do the following:
+</p>
+                                                    <div align="left">
+    <table cellspacing="4" cellpadding="0" border="0">
+    <tr>
+      <td bgcolor="#023264" width="1" height="1"><img src="im_/http://jakarta.apache.org/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+      <td bgcolor="#023264" height="1"><img src="im_/http://jakarta.apache.org/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+      <td bgcolor="#023264" width="1" height="1"><img src="im_/http://jakarta.apache.org/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+    </tr>
+    <tr>
+      <td bgcolor="#023264" width="1"><img src="im_/http://jakarta.apache.org/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+      <td bgcolor="#ffffff"><pre>
+XML my_element = new XML(&quot;my_element&quot;);
+
+produces:
+
+&lt;my_element&gt;&lt;/my_element&gt;
+</pre></td>
+      <td bgcolor="#023264" width="1"><img src="im_/http://jakarta.apache.org/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+    </tr>
+    <tr>
+      <td bgcolor="#023264" width="1" height="1"><img src="im_/http://jakarta.apache.org/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+      <td bgcolor="#023264" height="1"><img src="im_/http://jakarta.apache.org/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+      <td bgcolor="#023264" width="1" height="1"><img src="im_/http://jakarta.apache.org/images/void.gif"
width="1" height="1" vspace="0" hspace="0" border="0"/></td>
+    </tr>
+    </table>
+    </div>
+                            </blockquote>
+        </p>
+      </td></tr>
+      <tr><td><br/></td></tr>
+    </table>
+                                                <table border="0" cellspacing="0" cellpadding="2"
width="100%">
+      <tr><td bgcolor="#525D76">
+        <font color="#ffffff" face="arial,helvetica,sanserif">
+          <a name="Documentation"><strong>Documentation</strong></a>
+        </font>
+      </td></tr>
+      <tr><td>
+        <blockquote>
+                                    <p>
+The javadoc documentation and a TestBed.java file 
+comes with the distribution download. Both resources combined give example code usage 
+that covers every single element. The TestBed.java file is located in 
+the ecs/example directory.
+</p>
+                            </blockquote>
+        </p>
+      </td></tr>
+      <tr><td><br/></td></tr>
+    </table>
+                                                <table border="0" cellspacing="0" cellpadding="2"
width="100%">
+      <tr><td bgcolor="#525D76">
+        <font color="#ffffff" face="arial,helvetica,sanserif">
+          <a name="Source"><strong>Source</strong></a>
+        </font>
+      </td></tr>
+      <tr><td>
+        <blockquote>
+                                    <p>
+<strong>ECS</strong> uses the <a href="/http://jakarta.apache.org/turbine/common/code-standards.html">Turbine</a>
coding conventions. 
+</p>
+                            </blockquote>
+        </p>
+      </td></tr>
+      <tr><td><br/></td></tr>
+    </table>
+                                        </td>
+                </tr>
+
+                <!-- FOOTER -->
+                <tr><td colspan="2">
+                    <hr noshade="" size="1"/>
+                </td></tr>
+                <tr><td colspan="2">
+                    <div align="center"><font color="#525D76" size="-1"><em>
+                    Copyright &#169; 1999-2004, The Apache Software Foundation
+                    </em></font></div>
+                </td></tr>
+            </table>
+        </body>
+    </html>
+<!-- end the processing -->

Propchange: jakarta/site/docs/ecs/index.html
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message