[Laszlo-checkins] r3636 - in openlaszlo/trunk/docs/src: dguide tutorials

frisco@openlaszlo.org frisco at openlaszlo.org
Thu Feb 1 12:13:58 PST 2007


Author: frisco
Date: 2007-02-01 12:13:50 -0800 (Thu, 01 Feb 2007)
New Revision: 3636

Modified:
   openlaszlo/trunk/docs/src/dguide/data-structures.html
   openlaszlo/trunk/docs/src/tutorials/data.html
Log:
Change 20070201-laszlosystems-1 by laszlosystems at Frisco-Mini.local on 2007-02-01 12:08:04 PST
    in /Users/laszlosystems/src/svn/openlaszlo/trunk

Summary: Removed bad instructions from Intro to Databinding chapter, copied table from Databinding chapter to XML chapter because the XML example was meaningless without it

New Features:

Bugs Fixed: LPP-3413

Technical Reviewer: (pending)
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
    

Tests:

Modified: openlaszlo/trunk/docs/src/dguide/data-structures.html
===================================================================
--- openlaszlo/trunk/docs/src/dguide/data-structures.html	2007-02-01 20:04:44 UTC (rev 3635)
+++ openlaszlo/trunk/docs/src/dguide/data-structures.html	2007-02-01 20:13:50 UTC (rev 3636)
@@ -199,9 +199,30 @@
 in LZX to provide powerful databinding and data manipulation.</p>
 <h3>Supported XPath functionality</h3>
 <p>XPath is an extensive specification that is largely, but not entirely, implemented in LZX.</p>
-<p><a name="xpathnodes"></a>The following table shows XPath functionality implemented in OpenLaszlo 3.1:</p>
+<p><a name="xpathnodes"></a>The following table shows XPath functionality implemented in OpenLaszlo:</p>
 
+<example title="Datasets" extract="false">
+&lt;canvas height="80" width="500" &gt;
+  &lt;dataset name="myData"&gt;
+    &lt;myXML&gt;
+      &lt;person show="simpsons"&gt;
+        &lt;firstName&gt;Homer&lt;/firstName&gt;
+        &lt;lastName&gt;Simpson&lt;/lastName&gt;
+      &lt;/person&gt;
+      &lt;person show="simpsons"&gt;
+        &lt;firstName&gt;Marge&lt;/firstName&gt;
+        &lt;lastName&gt;Simpson&lt;/lastName&gt;
+      &lt;/person&gt;
+      &lt;person show="simpsons"&gt;
+        &lt;firstName&gt;Montgomery&lt;/firstName&gt;
+        &lt;lastName&gt;Burns&lt;/lastName&gt;
+      &lt;/person&gt;
+    &lt;/myXML&gt;
+  &lt;/dataset&gt;
+&lt;/canvas&gt;
+</example>
 
+
 <table border="0" cellspacing="0" cellpadding="4" width="100%" title="Supported XPath Funtionality">
     <tr bgcolor="#DEE1F5">
         <td bgcolor="#DEE1F5"><span class="regular">Example</span></td>
@@ -309,6 +330,6 @@
 </body>
 </html>
 <!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc.  All Rights Reserved.              *
+* Copyright 2001-2007 Laszlo Systems, Inc.  All Rights Reserved.              *
 * Use is subject to license terms.                                            *
 * X_LZ_COPYRIGHT_END ****************************************************** -->

Modified: openlaszlo/trunk/docs/src/tutorials/data.html
===================================================================
--- openlaszlo/trunk/docs/src/tutorials/data.html	2007-02-01 20:04:44 UTC (rev 3635)
+++ openlaszlo/trunk/docs/src/tutorials/data.html	2007-02-01 20:13:50 UTC (rev 3636)
@@ -41,7 +41,7 @@
 
 <p>In the above example, the single root element is myXML. The <attribute>datapath</attribute> attribute of the <tagname>text</tagname> tag binds it to the data.</p>
 
-<p>Datapaths use XPath attributes to navigate through the XML data. So the name of the dataset to use goes before the colon <code>myData:</code>, followed by the nodes, separated by forward slashes (/). The square brackets provide a (one-based) space to enter which sibling node we want. [1] is implied, so the above example could be rewritten without any "[1]"s.</p>
+<p>Datapaths use XPath attributes to navigate through the XML data. So the name of the dataset to use goes before the colon <code>myData:</code>, followed by the nodes, separated by forward slashes (/). The square brackets provide a (one-based) space to enter which sibling node we want. </p>
 
 <p>In plain English, the above example says: "get me the text from the first firstName node, of the first person node of the first (and of course, only) myXML node." The text() method call returns that node's text.</p>
 
@@ -51,7 +51,7 @@
 &lt;text datapath="myData:/myXML/person[2]/firstName/text()" /&gt; 
 </pre>
 
-<p>(Note that I've omitted the "[1]"s as they are implied. To get the "show" attribute of Montgomery, we could write:</p>
+<p>To get the "show" attribute of Montgomery, we could write:</p>
 
 <pre class="code">
 &lt;text datapath="myData:/myXML/person[3]/@show" /&gt; 
@@ -250,7 +250,7 @@
 
 <ul>
 	<li>The client will request the data as soon as the app loads if the dataset's  <attribute>request</attribute> attribute is true. </li>
-	<li>If the <attribute>request</attribute> attribute is set to "true", the client will also request the data every time the querystring or base URL of the dataset changes (using the <method>setQueryString</method> or <method>setSrc</method> respectively).</li>
+	<li>If the <attribute>request</attribute> attribute is set to "true", the client will also request the data every time the querystring or base URL of the dataset changes (using the <method>setQueryString</method> or <method>setSrc</method> respectively) methods of the <!-- TODO: add link to LZX ref -->LzHTTPDataset object.</li>
 	<li>When the dataset's <method>doRequest</method> method gets called.</li>
 </ul>
 



More information about the Laszlo-checkins mailing list