[jboss-cvs] JBossAS SVN: r105614 - projects/docs/enterprise/EAP/trunk/5.x/Seam_Reference_Guide/en-US.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Jun 3 02:01:51 EDT 2010


Author: misty at redhat.com
Date: 2010-06-03 02:01:50 -0400 (Thu, 03 Jun 2010)
New Revision: 105614

Modified:
   projects/docs/enterprise/EAP/trunk/5.x/Seam_Reference_Guide/en-US/Text.xml
Log:
JBPAPP-4387

Modified: projects/docs/enterprise/EAP/trunk/5.x/Seam_Reference_Guide/en-US/Text.xml
===================================================================
--- projects/docs/enterprise/EAP/trunk/5.x/Seam_Reference_Guide/en-US/Text.xml	2010-06-03 05:39:01 UTC (rev 105613)
+++ projects/docs/enterprise/EAP/trunk/5.x/Seam_Reference_Guide/en-US/Text.xml	2010-06-03 06:01:50 UTC (rev 105614)
@@ -13,13 +13,13 @@
 			Here is a simple example:
 		</para>
 		 
-<programlisting><![CDATA[It's easy to make *emphasized*, |monospaced|, ~deleted~, super^scripted^ or _underlined_ text.]]>
-</programlisting>
+<programlisting>It's easy to make *emphasized*, |monospaced|, ~deleted~, super^scripted^ or _underlined_ text.</programlisting>
+
 		 <para>
 			If we display this using <literal><![CDATA[<s:formattedText/>]]></literal>, the following HTML will be produced:
 		</para>
 		 
-<programlisting role="XHTML"><![CDATA[<p> 
+<programlisting language="XML" role="XML"><![CDATA[<p> 
   It's easy to make <i>emphasized</i>, <tt>monospaced</tt>, 
   <del>deleted</del>, super<sup>scripted</sup> or 
   <u>underlined</u> text.
@@ -29,20 +29,20 @@
 			We can use a blank line to indicate a new paragraph, and <literal>+</literal> to indicate a heading:
 		</para>
 		 
-<programlisting><![CDATA[+This is a big heading
+<programlisting>+This is a big heading
 You /must/ have some text following a heading!
  
 ++This is a smaller heading
 This is the first paragraph. We can split it across multiple 
 lines, but we must end it with a blank line.
 
-This is the second paragraph.]]>
+This is the second paragraph.
 </programlisting>
 		 <para>
 			A simple new line is ignored — you need an additional blank line to wrap text into a new paragraph. This is the HTML that results:
 		</para>
 		 
-<programlisting role="XHTML"><![CDATA[<h1>This is a big heading</h1>
+<programlisting language="XML" role="XML"><![CDATA[<h1>This is a big heading</h1>
 <p>
   You <i>must</i> have some text following a heading!
 </p>
@@ -61,7 +61,7 @@
 			The <literal>#</literal> character creates items in an ordered list. Unordered lists use the <literal>=</literal> character:
 		</para>
 		 
-<programlisting><![CDATA[An ordered list:
+<programlisting>An ordered list:
         
 #first item
 #second item
@@ -70,10 +70,10 @@
 An unordered list:
 
 =an item
-=another item]]>
+=another item
 </programlisting>
 		 
-<programlisting role="XHTML"><![CDATA[<p>
+<programlisting language="XML" role="XML"><![CDATA[<p>
   An ordered list:
 </p>
  
@@ -96,15 +96,15 @@
 			Quoted sections should be surrounded in double quotes: <!-- #modify: This is lovely, of course, but can we have an example of more than three years' age? -->
 		</para>
 		 
-<programlisting><![CDATA[The other guy said:
+<programlisting>The other guy said:
         
 "Nyeah nyeah-nee 
 /nyeah/ nyeah!"
 
-But what do you think he means by "nyeah-nee"?]]>
+But what do you think he means by "nyeah-nee"?
 </programlisting>
 		 
-<programlisting role="XHTML"><![CDATA[<p>
+<programlisting language="XML" role="XML"><![CDATA[<p>
   The other guy said:
 </p>
         
@@ -127,7 +127,7 @@
 like \<body\> using the escape character: \\.]]>
 </programlisting>
 		 
-<programlisting role="XHTML"><![CDATA[<p> 
+<programlisting language="XML" role="XML"><![CDATA[<p> 
   You can write down equations like 2*3=6 and HTML tags
   like &lt;body&gt; using the escape character: \. 
 </p>]]>
@@ -146,7 +146,7 @@
 Any ideas?]]>
 </programlisting>
 		 
-<programlisting role="XHTML"><![CDATA[<p>
+<programlisting language="XML" role="XML"><![CDATA[<p>
   My code doesn't work:
 </p>
 
@@ -195,7 +195,7 @@
 			Text can include a certain limited subset of HTML. (The subset was selected to remain safe from cross-site scripting attacks.) This is useful for creating links:
 		</para>
 		 
-<programlisting role="XHTML"><![CDATA[You might want to link to 
+<programlisting language="XML" role="XML"><![CDATA[You might want to link to 
 <a href="http://jboss.com/products/seam">something cool</a>, 
 or even include an image: <img src="/logo.jpg"/>]]>
 </programlisting>
@@ -203,7 +203,7 @@
 			And for creating tables:
 		</para>
 		 
-<programlisting role="XHTML"><![CDATA[<table> 
+<programlisting language="XML" role="XML"><![CDATA[<table> 
   <tr><td>First name:</td><td>Gavin</td></tr>
   <tr><td>Last name:</td><td>King</td></tr>
 </table>]]>
@@ -220,7 +220,7 @@
           The following example defines a custom text parser, which overrides the default HTML sanitizer:
        </para>
 
-       <programlisting role="JAVA"><![CDATA[public class MyTextParser extends SeamTextParser {
+       <programlisting language="Java" role="JAVA">public class MyTextParser extends SeamTextParser {
 
   public MyTextParser(String myText) {
     super(new SeamTextLexer(new StringReader(myText)));
@@ -235,24 +235,24 @@
     );
   }
 
-  // Customizes rendering of Seam text links such as [Some Text=>http://example.com]
+  // Customizes rendering of Seam text links such as [Some Text=&gt;http://example.com]
   @Override
   protected String linkTag(String descriptionText, String linkText) {
-    return "<a href=\"" + linkText + "\">My Custom Link: " + 
-            descriptionText + "</a>";
+    return "&lt;a href=\"" + linkText + "\"&gt;My Custom Link: " + 
+            descriptionText + "&lt;/a&gt;";
   }
 
-  // Renders a <p> or equivalent tag
+  // Renders a &lt;p&gt; or equivalent tag
   @Override
   protected String paragraphOpenTag() {
-    return "<p class=\"myCustomStyle\">";
+    return "&lt;p class=\"myCustomStyle\"&gt;";
   }
 
   public void parse() throws ANTLRException {
     startRule();
   }
     
-}]]>
+}
 </programlisting>
 
        <para>




More information about the jboss-cvs-commits mailing list