<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,4 +1,4 @@
-#LyX 1.6.0 created this file. For more info see http://www.lyx.org/
+#LyX 1.6.1 created this file. For more info see http://www.lyx.org/
 \lyxformat 345
 \begin_document
 \begin_header
@@ -175,8 +175,12 @@ scala&gt; val cap = Map(&quot;a&quot; -&gt; &quot;A&quot;, &quot;b&quot; -&gt; &quot;B&quot;)
 
 \begin_layout LyX-Code
 
-cap: scala.collection.immutable.Map[java.lang.String,java.lang.String] = Map(a
- -&gt; A, b -&gt; B)
+cap: scala.collection.immutable.Map[java.lang.String,java.lang.String] = 
+\end_layout
+
+\begin_layout LyX-Code
+
+  Map(a -&gt; A, b -&gt; B)
 \end_layout
 
 \begin_layout LyX-Code
@@ -257,15 +261,7 @@ def prettyPrint(foo: Option[String]): String = foo match {
 
 \begin_layout LyX-Code
 
-  case None =&gt; 
-\begin_inset Quotes eld
-\end_inset
-
-Nothing found.
-\begin_inset Quotes erd
-\end_inset
-
-
+  case None =&gt; &quot;Nothing found.&quot;
 \end_layout
 
 \begin_layout LyX-Code
@@ -551,49 +547,22 @@ a match {
 
 \begin_layout LyX-Code
 
-  Full(author) =&gt; Text(
-\begin_inset Quotes eld
-\end_inset
-
-I found the author 
-\begin_inset Quotes eld
-\end_inset
-
- + author.niceName)
+  Full(author) =&gt; Text(&quot;I found the author &quot; + author.niceName)
 \end_layout
 
 \begin_layout LyX-Code
 
-  Empty =&gt; Text(
-\begin_inset Quotes eld
-\end_inset
-
-No author by that name.
-\begin_inset Quotes erd
-\end_inset
-
-)
+  Empty =&gt; Text(&quot;No author by that name.&quot;)
 \end_layout
 
 \begin_layout LyX-Code
 
-  Failure(message, _, _) =&gt; Text(
-\begin_inset Quotes eld
-\end_inset
-
-Nothing found due to 
-\begin_inset Quotes eld
-\end_inset
-
- + message) // message may be something like 
-\begin_inset Quotes eld
-\end_inset
-
-Database disconnected.
-\begin_inset Quotes erd
-\end_inset
+  // message may be something like &quot;Database disconnected.&quot;
+\end_layout
 
+\begin_layout LyX-Code
 
+  Failure(message, _, _) =&gt; Text(&quot;Nothing found due to &quot; + message) 
 \end_layout
 
 \begin_layout LyX-Code
@@ -712,17 +681,18 @@ def view (xhtml: NodeSeq): NodeSeq = passedAuthor.map({ author =&gt;
 \end_layout
 
 \begin_layout Standard
-We won't be detailing here all the Box functions but a few words on the
- most common function might be benficial.
+We won't be detailing all of the Box functions here, but a few words on
+ the most common function might be benficial.
 \end_layout
 
 \begin_layout Standard
+\align center
 \begin_inset Tabular
 &lt;lyxtabular version=&quot;3&quot; rows=&quot;10&quot; columns=&quot;3&quot;&gt;
 &lt;features&gt;
-&lt;column alignment=&quot;left&quot; valignment=&quot;top&quot; width=&quot;0&quot;&gt;
-&lt;column alignment=&quot;left&quot; valignment=&quot;top&quot; width=&quot;0&quot;&gt;
-&lt;column alignment=&quot;left&quot; valignment=&quot;top&quot; width=&quot;0&quot;&gt;
+&lt;column alignment=&quot;left&quot; valignment=&quot;top&quot; width=&quot;1in&quot;&gt;
+&lt;column alignment=&quot;left&quot; valignment=&quot;top&quot; width=&quot;2.75in&quot;&gt;
+&lt;column alignment=&quot;left&quot; valignment=&quot;top&quot; width=&quot;2in&quot;&gt;
 &lt;row&gt;
 &lt;cell alignment=&quot;center&quot; valignment=&quot;top&quot; topline=&quot;true&quot; bottomline=&quot;true&quot; leftline=&quot;true&quot; usebox=&quot;none&quot;&gt;
 \begin_inset Text
@@ -1100,7 +1070,6 @@ status open
 \begin_inset Caption
 
 \begin_layout Plain Layout
-
 Null example
 \begin_inset CommandInset label
 LatexCommand label
@@ -1296,39 +1265,7 @@ import _root_.net.liftweb.util.Helpers._
 
 \begin_layout Plain Layout
 
-findClass(
-\begin_inset Quotes eld
-\end_inset
-
-Bar
-\begin_inset Quotes erd
-\end_inset
-
-, 
-\begin_inset Quotes eld
-\end_inset
-
-com.foo
-\begin_inset Quotes erd
-\end_inset
-
- :: 
-\begin_inset Quotes eld
-\end_inset
-
-com.bar
-\begin_inset Quotes erd
-\end_inset
-
- :: 
-\begin_inset Quotes eld
-\end_inset
-
-com.baz
-\begin_inset Quotes erd
-\end_inset
-
- :: Nil)
+findClass(&quot;Bar&quot;, &quot;com.foo&quot; :: &quot;com.bar&quot; :: &quot;com.baz&quot; :: Nil)
 \end_layout
 
 \begin_layout Plain Layout
@@ -1337,15 +1274,7 @@ com.baz
 
 \begin_layout Plain Layout
 
-invokeMethod(myClass, myInstance, 
-\begin_inset Quotes eld
-\end_inset
-
-doSomething
-\begin_inset Quotes erd
-\end_inset
-
-)
+invokeMethod(myClass, myInstance, &quot;doSomething&quot;)
 \end_layout
 
 \end_inset
@@ -1502,18 +1431,22 @@ println(exp match {
 
 \begin_layout Plain Layout
 
-          case False(msgs) =&gt; msgs mkString(&quot;Test failed because it is '&quot;,
- &quot;' and '&quot;, &quot;'.&quot;)  
+  case False(msgs) =&gt; 
 \end_layout
 
 \begin_layout Plain Layout
 
-          case _ =&gt; &quot;success&quot;  
+    msgs mkString(&quot;Test failed because it is '&quot;, &quot;' and '&quot;, &quot;'.&quot;)  
 \end_layout
 
 \begin_layout Plain Layout
 
-        }) 
+  case _ =&gt; &quot;success&quot;  
+\end_layout
+
+\begin_layout Plain Layout
+
+  }) 
 \end_layout
 
 \end_inset
@@ -1604,7 +1537,12 @@ tryo((e: Throwable) =&gt; println(e)) {
 \begin_layout Plain Layout
 
   // code here.
- Any exception here willbe caught add passed to the above function.
+ Any exception here willbe caught add passed to 
+\end_layout
+
+\begin_layout Plain Layout
+
+  // the above function.
 \end_layout
 
 \begin_layout Plain Layout
@@ -1624,23 +1562,23 @@ tryo(List(classOf[ClassNotFoundException], classOf[IOException])) {
 \begin_layout Plain Layout
 
   // code here.
- If IOException or ClassNotFoundException is thrown (or a subclass of the
- two) they will be ignored.
- Any other
+ If IOException or ClassNotFoundException is thrown 
 \end_layout
 
 \begin_layout Plain Layout
 
-  // exception will be rethrown.
+  // (or a subclass of the two) they will be ignored.
+ Any other
 \end_layout
 
 \begin_layout Plain Layout
 
-}
+  // exception will be rethrown.
 \end_layout
 
 \begin_layout Plain Layout
 
+}
 \end_layout
 
 \end_inset
@@ -1733,15 +1671,7 @@ Assume this entry in a CSS file:
 
 \begin_layout Plain Layout
 
-CSSHelpers.fixCSS(reader, 
-\begin_inset Quotes eld
-\end_inset
-
-/myliftapp
-\begin_inset Quotes erd
-\end_inset
-
-)
+CSSHelpers.fixCSS(reader, &quot;/myliftapp&quot;)
 \end_layout
 
 \begin_layout Plain Layout
@@ -1750,11 +1680,12 @@ CSSHelpers.fixCSS(reader,
 
 \begin_layout Plain Layout
 
-// where reader is a java.io.Reader that provides the content of the CSS file.
+// where reader is a java.io.Reader that provides the 
 \end_layout
 
 \begin_layout Plain Layout
 
+// content of the CSS file.
 \end_layout
 
 \end_inset
@@ -1850,10 +1781,6 @@ def boot(){
 }
 \end_layout
 
-\begin_layout Plain Layout
-
-\end_layout
-
 \end_inset
 
 
@@ -1917,6 +1844,7 @@ Binders are extensiveley discussed in other chapters so we won't reiterate
 
 \begin_layout Standard
 \begin_inset listings
+lstparams &quot;language=XML&quot;
 inline false
 status open
 
@@ -1925,7 +1853,7 @@ status open
 \begin_inset Caption
 
 \begin_layout Plain Layout
-Choose template
+Choose template XML
 \begin_inset CommandInset label
 LatexCommand label
 name &quot;lst:Choose-template&quot;
@@ -1942,15 +1870,6 @@ name &quot;lst:Choose-template&quot;
 
 \begin_layout Plain Layout
 
-//Assume the following markup.
-\end_layout
-
-\begin_layout Plain Layout
-
-\end_layout
-
-\begin_layout Plain Layout
-
 &lt;lift:CountGame.run form=&quot;post&quot;&gt;
 \end_layout
 
@@ -2006,43 +1925,58 @@ name &quot;lst:Choose-template&quot;
 
 \begin_layout Plain Layout
 
-&lt;/lift:CountGame.run&gt;  
+&lt;/lift:CountGame.run&gt;
 \end_layout
 
-\begin_layout Plain Layout
+\end_inset
+
 
 \end_layout
 
+\begin_layout Standard
+You can use the 
+\family typewriter
+Helpers.chooseTemplate
+\family default
+ method to extract portions of a given XML input:
+\end_layout
+
+\begin_layout Standard
+\begin_inset listings
+inline false
+status open
+
 \begin_layout Plain Layout
 
-// And the Scala code
-\end_layout
+\begin_inset Caption
 
 \begin_layout Plain Layout
 
+Choose template Scala code
 \end_layout
 
-\begin_layout Plain Layout
+\end_inset
+
 
-import net.liftweb.util._
 \end_layout
 
 \begin_layout Plain Layout
 
-import Helpers._
+import net.liftweb.util._
 \end_layout
 
 \begin_layout Plain Layout
 
+import Helpers._
 \end_layout
 
 \begin_layout Plain Layout
 
-class CountGame {
 \end_layout
 
 \begin_layout Plain Layout
 
+class CountGame {
 \end_layout
 
 \begin_layout Plain Layout
@@ -2058,28 +1992,7 @@ class CountGame {
 
 \begin_layout Plain Layout
 
-    
-\end_layout
-
-\begin_layout Plain Layout
-
-    chooseTemplate(
-\begin_inset Quotes eld
-\end_inset
-
-choose
-\begin_inset Quotes erd
-\end_inset
-
-, 
-\begin_inset Quotes eld
-\end_inset
-
-win
-\begin_inset Quotes erd
-\end_inset
-
-, xhtml);
+    chooseTemplate(&quot;choose&quot;, &quot;win&quot;, xhtml);
 \end_layout
 
 \begin_layout Plain Layout
@@ -2089,17 +2002,9 @@ win
 
 \begin_layout Plain Layout
 
-\end_layout
-
-\begin_layout Plain Layout
-
 }
 \end_layout
 
-\begin_layout Plain Layout
-
-\end_layout
-
 \end_inset
 
 </diff>
      <filename>apdx-helpers.lyx</filename>
    </modified>
    <modified>
      <diff>@@ -264,23 +264,11 @@ LiftRules.resourceNames
 \end_layout
 
 \begin_layout LyX-Code
-LiftRules.resourceNames = 
-\begin_inset Quotes eld
-\end_inset
-
-DoorMessages
-\begin_inset Quotes erd
-\end_inset
-
- :: 
-\begin_inset Quotes eld
-\end_inset
-
-DoorknobMessages
-\begin_inset Quotes erd
-\end_inset
+LiftRules.resourceNames = &quot;DoorMessages&quot; :: 
+\end_layout
 
- :: Nil
+\begin_layout LyX-Code
+                          &quot;DoorknobMessages&quot; :: Nil
 \end_layout
 
 \begin_layout Standard
@@ -391,15 +379,7 @@ var currentTmp : Double = getTemp()
 
 \begin_layout Plain Layout
 
-Text(S.?(
-\begin_inset Quotes eld
-\end_inset
-
-tempMsg
-\begin_inset Quotes erd
-\end_inset
-
-, currentTemp))
+Text(S.?(&quot;tempMsg&quot;, currentTemp))
 \end_layout
 
 \end_inset
@@ -490,15 +470,7 @@ name &quot;lst:Using-the-loc-tag&quot;
 
 \begin_layout Plain Layout
 
-&lt;lift:loc locid=
-\begin_inset Quotes erd
-\end_inset
-
-openStatus
-\begin_inset Quotes erd
-\end_inset
-
-&gt;The door is open&lt;/lift:loc&gt;
+&lt;lift:loc locid=&quot;openStatus&quot;&gt;The door is open&lt;/lift:loc&gt;
 \end_layout
 
 \begin_layout Plain Layout</diff>
      <filename>apdx-i18n.lyx</filename>
    </modified>
    <modified>
      <diff>@@ -68,6 +68,10 @@ morestring=[b]&quot;}
 \paperorientation portrait
 \paperwidth 6.139in
 \paperheight 9.21in
+\leftmargin 1in
+\topmargin 1in
+\rightmargin 1in
+\bottommargin 1in
 \secnumdepth 3
 \tocdepth 2
 \paragraph_separation indent</diff>
      <filename>master.lyx</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d8ad5e892706fbc9d4258c8a72e3a19b91ab31f9</id>
    </parent>
  </parents>
  <author>
    <name>Derek Chen-Becker</name>
    <email>github@chen-becker.org</email>
  </author>
  <url>http://github.com/tjweir/liftbook/commit/0137b2134110fb4db5f6688328c5710b023ac656</url>
  <id>0137b2134110fb4db5f6688328c5710b023ac656</id>
  <committed-date>2009-04-07T07:08:21-07:00</committed-date>
  <authored-date>2009-04-07T07:08:21-07:00</authored-date>
  <message>Quote fixes in helpers and i18n. Minor page format change in Master.</message>
  <tree>2cca96571a7ee6b4e110bb06dfc306d7acce267c</tree>
  <committer>
    <name>Derek Chen-Becker</name>
    <email>github@chen-becker.org</email>
  </committer>
</commit>
