Return-Path: Delivered-To: apmail-forrest-svn-archive@www.apache.org Received: (qmail 89307 invoked from network); 11 Jun 2005 19:01:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Jun 2005 19:01:04 -0000 Received: (qmail 75260 invoked by uid 500); 11 Jun 2005 19:01:04 -0000 Delivered-To: apmail-forrest-svn-archive@forrest.apache.org Received: (qmail 75210 invoked by uid 500); 11 Jun 2005 19:01:03 -0000 Mailing-List: contact svn-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Forrest Developers List" List-Id: Delivered-To: mailing list svn@forrest.apache.org Received: (qmail 75195 invoked by uid 99); 11 Jun 2005 19:01:03 -0000 X-ASF-Spam-Status: No, hits=-9.3 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME,WEIRD_PORT X-Spam-Check-By: apache.org Received: from minotaur.apache.org (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Sat, 11 Jun 2005 12:01:02 -0700 Received: (qmail 89295 invoked by uid 65534); 11 Jun 2005 19:01:01 -0000 Message-ID: <20050611190101.89294.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: svn commit: r190163 - /forrest/trunk/site-author/content/xdocs/docs/howto/howto-view-contracts.xml /forrest/trunk/site-author/content/xdocs/docs/howto/howto-view-dsl.xml Date: Sat, 11 Jun 2005 19:01:00 -0000 To: svn@forrest.apache.org From: thorsten@apache.org X-Mailer: svnmailer-1.0.0-dev X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: thorsten Date: Sat Jun 11 12:01:00 2005 New Revision: 190163 URL: http://svn.apache.org/viewcvs?rev=3D190163&view=3Drev Log: Further written the dsl howto till section css which will be next. Modified: forrest/trunk/site-author/content/xdocs/docs/howto/howto-view-contracts= .xml forrest/trunk/site-author/content/xdocs/docs/howto/howto-view-dsl.xml Modified: forrest/trunk/site-author/content/xdocs/docs/howto/howto-view-con= tracts.xml URL: http://svn.apache.org/viewcvs/forrest/trunk/site-author/content/xdocs/= docs/howto/howto-view-contracts.xml?rev=3D190163&r1=3D190162&r2=3D190163&vi= ew=3Ddiff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- forrest/trunk/site-author/content/xdocs/docs/howto/howto-view-contracts= .xml (original) +++ forrest/trunk/site-author/content/xdocs/docs/howto/howto-view-contracts= .xml Sat Jun 11 12:01:00 2005 @@ -87,16 +87,16 @@
Enhance the maintainment

Now we can enhance the maintainment for the future and we started= to -give this code snippets contracts names. This naming enables us to keep +give this code snippets contracts names (based on their functionality). Th= is naming enables us to keep the contract separate from the position code itself. In xsl you would simply do:

    -
  1. replace the script by ]]>
  2. +
  3. replace the script by ]]>
  4. and add:
=20 - + @@ -104,7 +104,7 @@

This allows us in a next maintainment just change the code of - ]]> and apply it i= n any position where + ]]> and a= pply it in any position where it is placed. =20

@@ -116,7 +116,8 @@

To start a new forrest:contract you can copy the "blank.ft" from org.apache.forrest.plugin.output.viewHelper.xhtml/resources/= templates.=20 - It is a simple xml file with the following code which you can use = to base new contracts on: + It is a simple xml file with the following code which you can use = to base new contracts=20 + on (note to close the CDATA element before the ]]>!):

=20 - {contract-name} contract. This functions will output {contract-funtion= }=2E + {contract-name} will output {contract-funtion}. This is just a blank c= ontract, it will output *nothing*. - =20 + ]] >

+ The ]]> tag is self explaining.=20 + Here we have to explain how the designer can use the contract in h= is view. +

+

]]> =20 That leads to the template attribute @body=3D"true" and @head=3D"false". In xhtml a contract can add content to the ]]> or/and @@ -189,13 +194,13 @@ Now the maintainment optimized code (xpath=3D"/html/body/*") was:

- + ]]>
    -
  • Search and replace "blank" with "last-publish-howTo"
  • +
  • Search and replace "blank" with "siteinfo-last-publish-howTo"<= /li>
  • Add description of the contract
  • Set @body=3D"true"
@@ -235,12 +240,11 @@

- Congratulations you are now able to work with views.=20 + Congratulations you are now able to work with view contracts.=20 From here we recommend to read the following How-To's:

Modified: forrest/trunk/site-author/content/xdocs/docs/howto/howto-view-dsl= .xml URL: http://svn.apache.org/viewcvs/forrest/trunk/site-author/content/xdocs/= docs/howto/howto-view-dsl.xml?rev=3D190163&r1=3D190162&r2=3D190163&view=3Dd= iff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- forrest/trunk/site-author/content/xdocs/docs/howto/howto-view-dsl.xml (= original) +++ forrest/trunk/site-author/content/xdocs/docs/howto/howto-view-dsl.xml S= at Jun 11 12:01:00 2005 @@ -77,7 +77,8 @@

forrest:hook's are container that are only used for layout reasons. T= hey do not add=20 any content nor functionality to the output. They add only layout information to=20 - the output. + the output. Actually a ]]> will be transformed + to ]]>

forrest:contract's are functionality or extra content that a skin can= use to display the requested @@ -99,62 +100,141 @@ Now lets start to skin our site. :)

- - - + +

- Congratulations you are now able to work with views.=20 + Congratulations you are now able to work with the view DSL.=20 From here we recommend to read the following How-To's:

@@ -163,5 +243,5 @@ Please provide feedback about this document via the mailing lists.

- --> +