Return-Path: Delivered-To: apmail-cocoon-docs-archive@www.apache.org Received: (qmail 61997 invoked from network); 9 Jul 2004 11:55:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Jul 2004 11:55:56 -0000 Received: (qmail 76381 invoked by uid 500); 9 Jul 2004 11:55:56 -0000 Delivered-To: apmail-cocoon-docs-archive@cocoon.apache.org Received: (qmail 76223 invoked by uid 500); 9 Jul 2004 11:55:55 -0000 Mailing-List: contact docs-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: docs@cocoon.apache.org Delivered-To: mailing list docs@cocoon.apache.org Received: (qmail 76208 invoked by uid 99); 9 Jul 2004 11:55:55 -0000 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=ALL_TRUSTED,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.27.1) with SMTP; Fri, 09 Jul 2004 04:55:55 -0700 Received: (qmail 61971 invoked from network); 9 Jul 2004 11:55:54 -0000 Received: from localhost.hyperreal.org (HELO minotaur.apache.org) (127.0.0.1) by localhost.hyperreal.org with SMTP; 9 Jul 2004 11:55:54 -0000 Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: docs@cocoon.apache.org To: docs@cocoon.apache.org Subject: =?iso-8859-1?q?=5BCocoon_Wiki=5D_Updated=3A__SimpleTransformations?= Date: Fri, 09 Jul 2004 11:55:54 -0000 Message-ID: <20040709115554.61966.26018@minotaur.apache.org> X-Spam-Rating: localhost.hyperreal.org 1.6.2 0/1000/N X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Date: 2004-07-09T04:55:54 Editor: DerekLastname Wiki: Cocoon Wiki Page: SimpleTransformations URL: http://wiki.apache.org/cocoon/SimpleTransformations no comment Change Log: ---------------------------------------------------------------------------= --- @@ -17,10 +17,10 @@ configured in the example [:Sitemap]. If you're starting from a MinimalSit= emapConfiguration = then here's the declaration that you need: = -{{{ - - - +{{{ + + + }}} = Note: if you're using a sub-sitemap, then you don't need to configure the = transformer = @@ -33,14 +33,14 @@ by parsing a file called {{{my.xml}}}, transforms it with a stylesheet {{{= my.xsl}}}, and serializes = the results as HTML: = -{{{ - - - - - - - +{{{ + + + + + + + }}} = Things to note here: @@ -52,15 +52,15 @@ = If you want to serialize the results as XML, then use the XML [:Serializer= ]: = -{{{ - +{{{ + }}} = If you want to serialize the results as XHTML (the XHTML Doctype will be a= utomatically = added), then use the XHTML [:Serializer]: = -{{{ - +{{{ + }}} = =3D=3D Passing Parameters =3D=3D @@ -76,10 +76,10 @@ The {{{}}} element can be used to pass a fixed value to a = stylesheet, as follows: = -{{{ - - - +{{{ + + + }}} = =3D=3D=3D Sitemap Parameters =3D=3D=3D @@ -87,32 +87,32 @@ You can also use the {{{}}} element to pass dynamic [:Site= map] = parameters to the XSLT processor using the curly brace syntax. = -{{{ - - - +{{{ + + + }}} = -These parameters are set by [:Matchers] and/or [:Actions]. +These parameters are set by Matchers and/or Actions. = =3D=3D=3D Request Parameters =3D=3D=3D = You can pass request parameters to the XSL processor, as follows: = -{{{ - - - +{{{ + + + }}} = When declaring the [:Component] (see '''XSLT Transformer''', above) you = can tell it to automatically use request parameters for ''all'' transforma= tions = like this: = -{{{ - - true - +{{{ + + true + }}} = Note that passing request parameters in this way can affect how Cocoon Cac= hing the results of your transformation.