Return-Path: Delivered-To: apmail-cocoon-cvs-archive@www.apache.org Received: (qmail 49970 invoked from network); 18 Nov 2005 04:32:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Nov 2005 04:32:13 -0000 Received: (qmail 53063 invoked by uid 500); 18 Nov 2005 04:26:24 -0000 Delivered-To: apmail-cocoon-cvs-archive@cocoon.apache.org Received: (qmail 45332 invoked by uid 500); 18 Nov 2005 04:24:50 -0000 Mailing-List: contact cvs-help@cocoon.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@cocoon.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@cocoon.apache.org Received: (qmail 40474 invoked by uid 99); 18 Nov 2005 04:23:56 -0000 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 17 Nov 2005 20:22:54 -0800 Received: (qmail 8299 invoked by uid 65534); 18 Nov 2005 04:15:54 -0000 Message-ID: <20051118041554.8298.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r345438 [245/286] - in /cocoon/site/site/2.1: ./ developing/ developing/portal/ developing/portal/coplets/ developing/webapps/ developing/webapps/authentication/ faq/ howto/ installing/ plan/ plan/documentation/ plan/otherplanning/ plan/ove... Date: Fri, 18 Nov 2005 04:13:22 -0000 To: cvs@cocoon.apache.org From: crossley@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Added: cocoon/site/site/2.1/userdocs/wap-serializer.html URL: http://svn.apache.org/viewcvs/cocoon/site/site/2.1/userdocs/wap-serializer.html?rev=345438&view=auto ============================================================================== --- cocoon/site/site/2.1/userdocs/wap-serializer.html (added) +++ cocoon/site/site/2.1/userdocs/wap-serializer.html Thu Nov 17 20:00:02 2005 @@ -0,0 +1,1387 @@ + + + + + + + +WML Serializer + + + + + + + + + +
+ + + +
+ + + + + + + + + + + + +
+
+
+
+ +
+ + +
+ +
+ +   +
+ + + + + +
+

WML Serializer

+ +

WML Serializer

+
+

The WML serializer serializes sax events to WML. The output of the WML +serializer is a WML document.

+
    + +
  • Name : wml
  • + +
  • Class: org.apache.cocoon.serialization.XMLSerializer
  • + +
  • Cacheable: yes
  • + +
+ +

Sitemap Configuration

+

The WML serializer is declared in the sitemap serializers section.

+
+<map:serializers ...
+...
+   <map:serializer name="wml" 
+     src="org.apache.cocoon.serialization.XMLSerializer"
+     mime-type="text/vnd.wap.wml" 
+     logger="sitemap.serializer.wml">
+    <doctype-public>-//WAPFORUM//DTD WML 1.1//EN</doctype-public>
+    <doctype-system>http://www.wapforum.org/DTD/wml_1.1.xml</doctype-system>
+   </map:serializer>
+...
+      
+

The declaration of the WML serializer shall use following XML serializer +configuration parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +

Name

+ +
+ +

Value

+ +
+ +

Comment

+ +
+ +

doctype-public

+ +
+ +

-//WAPFORUM//DTD WML 1.1//EN

+ +
+ +

specifies the WML public document type

+ +
+ +

doctype-system

+ +
+ +

http://www.wapforum.org/DTD/wml_1.1.xml

+ +
+ +

specifies the WML system document type

+ +
+ +

mime-type

+ +
+ +

text/vnd.wap.wml

+ +
+ +

specifies mime-type of the serialized WML document.

+ +
+ +

Pipeline Usage

+

Using the WML Serializer in a pipeline is just setting the serializer type to +wml. The following code snippet uses the WML Serializer:

+
+<map:match pattern="*.wml">
+...
+  <map:serialize type="wml"/>
+</map:match>
+...
+      
+ +

Further Reading

+

As WML serializer uses the XML serializer internally, you might want to read +the complete list of valid XML configuration parameters. It is available at +XML serializer user docuementation.

+ +
+
+ +
 
+
+ + + Propchange: cocoon/site/site/2.1/userdocs/wap-serializer.html ------------------------------------------------------------------------------ svn:eol-style = native Added: cocoon/site/site/2.1/userdocs/widgetconcepts/375.daisy.img URL: http://svn.apache.org/viewcvs/cocoon/site/site/2.1/userdocs/widgetconcepts/375.daisy.img?rev=345438&view=auto ============================================================================== Binary file - no diff available. Propchange: cocoon/site/site/2.1/userdocs/widgetconcepts/375.daisy.img ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream Added: cocoon/site/site/2.1/userdocs/widgetconcepts/377.daisy.img URL: http://svn.apache.org/viewcvs/cocoon/site/site/2.1/userdocs/widgetconcepts/377.daisy.img?rev=345438&view=auto ============================================================================== Binary file - no diff available. Propchange: cocoon/site/site/2.1/userdocs/widgetconcepts/377.daisy.img ------------------------------------------------------------------------------ svn:mime-type = application/octet-stream