You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rivet-dev@tcl.apache.org by mx...@apache.org on 2010/07/22 10:16:43 UTC

svn commit: r966535 [4/4] - in /tcl/rivet/trunk/doc: html/ xml/

Modified: tcl/rivet/trunk/doc/html/xml_calendar.html
URL: http://svn.apache.org/viewvc/tcl/rivet/trunk/doc/html/xml_calendar.html?rev=966535&r1=966534&r2=966535&view=diff
==============================================================================
--- tcl/rivet/trunk/doc/html/xml_calendar.html (original)
+++ tcl/rivet/trunk/doc/html/xml_calendar.html Thu Jul 22 08:16:42 2010
@@ -1,4 +1,4 @@
-<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>XmlCalendar</title><link rel="stylesheet" href="rivet.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"><link rel="home" href="index.html" title="Apache Rivet"><link rel="up" href="calendar_package.html" title="Calendar Package"><link rel="prev" href="calendar.html" title="Calendar"><link rel="next" href="html_calendar.html" title="HtmlCalendar"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">XmlCalendar</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="calendar.html"><img src="images/prev.png" alt="Prev"></a> </td><th width="60%" align="center">Calendar Package</th><td width="20%" align="right"> <a accesskey="n" href="html_calendar.html"><img src="images/next.png" alt="Next"></a></td></tr
 ></table></div><div class="refentry" title="XmlCalendar"><div class="refentry.separator"><hr></div><a name="xml_calendar"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>XmlCalendar &#8212; Prints XML formatted calendar tables</p></div><div class="refsynopsisdiv" title="Synopsis"><h2>Synopsis</h2><div class="cmdsynopsis" style="width:80%"><div style="background:#ccccff ; margin:1ex ; padding:.4ex; padding-left: 0.8ex;   word-spacing:1ex "><span style="font-weight:bold ; font-family:monospace">XmlCalendar</span>   <span style="font-family:monospace; font-weight: bold;"><em class="replaceable"><code>calendar_name</code></em></span>  ?<span style="font-family:monospace; font-weight: bold;">-option1 <em class="replaceable"><code>option_list</code></em></span>? ?<span style="font-family:monospace; font-weight: bold;">-option2 <em class="replaceable"><code>option_list</code></em></span>? ?<span style="font-family:monospace; font-weight: bold;">...</span>?<
 /div></div></div><div class="refsect1"><a name="id528964"></a><p style="width:90%">
+<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>XmlCalendar</title><link rel="stylesheet" href="rivet.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"><link rel="home" href="index.html" title="Apache Rivet"><link rel="up" href="calendar_package.html" title="Calendar Package"><link rel="prev" href="calendar.html" title="Calendar"><link rel="next" href="html_calendar.html" title="HtmlCalendar"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">XmlCalendar</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="calendar.html"><img src="images/prev.png" alt="Prev"></a> </td><th width="60%" align="center">Calendar Package</th><td width="20%" align="right"> <a accesskey="n" href="html_calendar.html"><img src="images/next.png" alt="Next"></a></td></tr
 ></table></div><div class="refentry" title="XmlCalendar"><div class="refentry.separator"><hr></div><a name="xml_calendar"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>XmlCalendar &#8212; Prints XML formatted calendar tables</p></div><div class="refsynopsisdiv" title="Synopsis"><h2>Synopsis</h2><div class="cmdsynopsis" style="width:80%"><div style="background:#ccccff ; margin:1ex ; padding:.4ex; padding-left: 0.8ex;   word-spacing:1ex "><span style="font-weight:bold ; font-family:monospace">XmlCalendar</span>   <span style="font-family:monospace; font-weight: bold;"><em class="replaceable"><code>calendar_name</code></em></span>  ?<span style="font-family:monospace; font-weight: bold;">-option1 <em class="replaceable"><code>option_list</code></em></span>? ?<span style="font-family:monospace; font-weight: bold;">-option2 <em class="replaceable"><code>option_list</code></em></span>? ?<span style="font-family:monospace; font-weight: bold;">...</span>?<
 /div></div></div><div class="refsect1"><a name="id626532"></a><p style="width:90%">
 				An XmlCalendar object is created and returned. XmlCalendar objects
 				print XML formatted calendar tables. The markup can be customized
 				using the configuration options. 
@@ -11,7 +11,7 @@
 				The first element of an option list is a tag name, the remaining terms are therefore
 				an even-length sublist which is interpreted as a sequence of attribute-value pairs that
 				will in turn become attributes of the tag.
-			</p></div><div class="refsect1" title="Methods"><a name="id528989"></a><h2>Methods</h2><div class="variablelist"><dl><dt></dt><dd><div style="padding:4 ; margin-top:3 ;  margin-bottom:3 ; width:75%"><div class="cmdsynopsis" style="width:80%"><div style="background:#ccccff ; margin:1ex ; padding:.4ex; padding-left: 0.8ex;   word-spacing:1ex ">
+			</p></div><div class="refsect1" title="Methods"><a name="id626558"></a><h2>Methods</h2><div class="variablelist"><dl><dt></dt><dd><div style="padding:4 ; margin-top:3 ;  margin-bottom:3 ; width:75%"><div class="cmdsynopsis" style="width:80%"><div style="background:#ccccff ; margin:1ex ; padding:.4ex; padding-left: 0.8ex;   word-spacing:1ex ">
 		      			cal_obj <span style="font-weight:bold ; font-family:monospace">emit</span> -opt1 val1 -opt2 val2</div></div><div class="cmdsynopsis" style="width:80%"><div style="background:#ccccff ; margin:1ex ; padding:.4ex; padding-left: 0.8ex;   word-spacing:1ex ">
 		      			cal_obj <span style="font-weight:bold ; font-family:monospace">emit</span>  ?<span style="font-family:monospace; font-weight: bold;">month</span>? ?<span style="font-family:monospace; font-weight: bold;">year</span>? -opt1 val1 -opt2 val2</div></div><div class="cmdsynopsis" style="width:80%"><div style="background:#ccccff ; margin:1ex ; padding:.4ex; padding-left: 0.8ex;   word-spacing:1ex ">
 							cal_obj <span style="font-weight:bold ; font-family:monospace">emit</span>  ?<span style="font-family:monospace; font-weight: bold;">
@@ -19,7 +19,7 @@
 							-opt2 val2</div></div><div style="margin-bottom:1.5ex ; padding .5ex">
 							The method 'emit' if invoked without arguments returns an 
 							XML calendar table of the current month
-		      		</div></div></dd></dl></div></div><div class="refsect1"><a name="id529082"></a><div class="refsect2" title="Options"><a name="id529084"></a><h3>Options</h3><div class="variablelist"><dl><dt></dt><dd><div style="padding:4 ; margin-top:3 ;  margin-bottom:3 ; width:75%"><div class="cmdsynopsis" style="width:80%"><div style="background:#ccccff ; margin:1ex ; padding:.4ex; padding-left: 0.8ex;   word-spacing:1ex "><span style="font-weight:bold ; font-family:monospace">-container  (tag_name 
+		      		</div></div></dd></dl></div></div><div class="refsect1"><a name="id626650"></a><div class="refsect2" title="Options"><a name="id626653"></a><h3>Options</h3><div class="variablelist"><dl><dt></dt><dd><div style="padding:4 ; margin-top:3 ;  margin-bottom:3 ; width:75%"><div class="cmdsynopsis" style="width:80%"><div style="background:#ccccff ; margin:1ex ; padding:.4ex; padding-left: 0.8ex;   word-spacing:1ex "><span style="font-weight:bold ; font-family:monospace">-container  (tag_name 
 								attr11 val1 attr2 val2 ...)</span> </div></div><div style="margin-bottom:1.5ex ; padding .5ex">
 								Assigns an options list to the XML element that 
 								will hold the whole table.   

Modified: tcl/rivet/trunk/doc/xml/examples.xml
URL: http://svn.apache.org/viewvc/tcl/rivet/trunk/doc/xml/examples.xml?rev=966535&r1=966534&r2=966535&view=diff
==============================================================================
--- tcl/rivet/trunk/doc/xml/examples.xml (original)
+++ tcl/rivet/trunk/doc/xml/examples.xml Thu Jul 22 08:16:42 2010
@@ -267,32 +267,12 @@
     <example id="calendar">
 	<title>A Calendar Utility</title>
 	<para>
-	    Rivet comes with a <emphasis>Calendar</emphasis> package that provides 3 classes for printing 
+	    Rivet comes with a <emphasis>Calendar</emphasis> package that provides classes for printing 
 	    calendar tables in various forms.	
 	</para>
-	<orderedlist>
-	    <listitem>
-		The <emphasis>Calendar</emphasis> class prints ascii calendar tables
-		<programlisting>package require Calendar
-set c [Calendar #auto]
-set c_txt [$c emit]
-puts $c_txt
-      Jul 2010
- Su Mo Tu We Th Fr Sa 
-              1  2  3
-  4  5  6  7  8  9 10
- 11 12 13 14 15 16 17
- 18 19 20 21 22 23 24
- 25 26 27 28 29 30 31</programlisting>
-	    </listitem>
-	    <listitem>
-		The <emphasis>XmlCalendar</emphasis> class prints a calendar table with XML markup to
-		identify different parts of the table
-	    </listitem>
-	    <listitem>
-		The <emphasis>HtmlCalendar</emphasis> class prints an XmlCalendar whose markup has been
-		specialized to be a valid XHTML fragment. The implementation of HtmlCalendar 
-		uses the HTML 'table' tag to format the calendar. Example: the following code
+	<para>
+		The <emphasis>HtmlCalendar</emphasis> class prints a calendar table in a similar form the Unix 
+		program 'cal' does. Example: the following code
 		<programlisting>package require Calendar
 
 proc ::cal_cell_attributes { day month year weekday } {
@@ -308,10 +288,9 @@ puts $html_txt
 </programlisting>
 
 	    with some CSS styling would print
-	    <para>
+	 </para>
+	 <para>
 		<graphic fileref="calendar.png" />
-	    </para>
-	    </listitem>
-	</orderedlist>
-    </example>
+	 </para>
+  </example>
 </section>



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