Return-Path: Delivered-To: apmail-forrest-svn-archive@www.apache.org Received: (qmail 9553 invoked from network); 27 May 2005 12:13:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 May 2005 12:13:53 -0000 Received: (qmail 8900 invoked by uid 500); 27 May 2005 12:13:39 -0000 Delivered-To: apmail-forrest-svn-archive@forrest.apache.org Received: (qmail 8811 invoked by uid 500); 27 May 2005 12:13:39 -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 8780 invoked by uid 99); 27 May 2005 12:13:39 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME 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; Fri, 27 May 2005 05:13:35 -0700 Received: (qmail 9273 invoked by uid 65534); 27 May 2005 12:13:16 -0000 Message-ID: <20050527121316.9272.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: svn commit: r178772 - in /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy: input.xmap resources/stylesheets/repoRequest2doc.xsl src/documentation/content/xdocs/index.xml Date: Fri, 27 May 2005 12:13:15 -0000 To: svn@forrest.apache.org From: rgardler@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: rgardler Date: Fri May 27 05:13:13 2005 New Revision: 178772 URL: http://svn.apache.org/viewcvs?rev=3D178772&view=3Drev Log: Provide pre and post filters and allow the tretrieval of unprocessed conten= t=2E Add warning that the source format will later change to the daisy XML = document rather than the HTML document it currently is. Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/= input.xmap forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/= resources/stylesheets/repoRequest2doc.xsl forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/= src/documentation/content/xdocs/index.xml Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.= Daisy/input.xmap URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apa= che.forrest.plugin.input.Daisy/input.xmap?rev=3D178772&r1=3D178771&r2=3D178= 772&view=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/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/= input.xmap (original) +++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/= input.xmap Fri May 27 05:13:13 2005 @@ -37,18 +37,32 @@ + + + + =20 + - + + + + + =20 + + =20 + - + @@ -59,7 +73,9 @@ - + + + @@ -72,7 +88,9 @@ - + + + Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.= Daisy/resources/stylesheets/repoRequest2doc.xsl URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apa= che.forrest.plugin.input.Daisy/resources/stylesheets/repoRequest2doc.xsl?re= v=3D178772&r1=3D178771&r2=3D178772&view=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/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/= resources/stylesheets/repoRequest2doc.xsl (original) +++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/= resources/stylesheets/repoRequest2doc.xsl Fri May 27 05:13:13 2005 @@ -19,23 +19,39 @@ xmlns:req=3D"http://apache.org/cocoon/request/2.0" version=3D"1.0"> =20 + =09 - =20 + =20 - cocoon:/do/getRepositoryData/daisy//port//collection//do= c/.xml - + + cocoon:/do/getRepositoryData/dai= sy//port//collection//doc/ + - cocoon:/do/getRepositoryData/daisy//collection//doc/.xml - + + cocoon:/do/getRepositoryData/dai= sy//collection//doc/ + - + + =20 + + + + + .source.xml + + + + .xml + + + =20 =20 Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.= Daisy/src/documentation/content/xdocs/index.xml URL: http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apa= che.forrest.plugin.input.Daisy/src/documentation/content/xdocs/index.xml?re= v=3D178772&r1=3D178771&r2=3D178772&view=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/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/= src/documentation/content/xdocs/index.xml (original) +++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.input.Daisy/= src/documentation/content/xdocs/index.xml Fri May 27 05:13:13 2005 @@ -89,31 +89,53 @@ =20
+ Retrieving RAW content +

If you want to retrieve the raw, unprocessed HTML from + Daisy simply request the file with a .source.xml + extenstion.

+ =20 + This behaviour will change in the future to enable + you to retrieve the raw unprocessed XML rather than the + HTML from Daisy. Use with care in the meantime. +
+ =20 +
Filtering Content

You may not have full control of the content in the repository,= or you may wish to supress the presentation of some of the parts, for=20 - example, the fields within the repository. To achieve this you can=20 - provide an XSL file called daisyFilter.xsl in your=20 - projects stylesheets directory (default location is=20 - PROJECT_HOME/src/documentation/resources/stylesheets). - Using this file you can filter out any part of the content you=20 - desire.

- =20 -

The XSL file operates on the XDoc generated by Forrest, not=20 - on the source format of the document. If you wish to look at the=20 - XDoc format of the document simply request the page with an - xml extension.

+ example, the fields within the repository. There are two points at=20 + which you can filter the content, at the point of retrieval (calle= d a + pre-filter) and once the file has been converted to the internal=20 + Forrest format (called a post-filter).

=20
- Example -

To filter out the Fields section of the Daisy - document, use the following XSL:

+ Pre-Filters + =20 +

Pre-Filters are applied to the HTML retrieved from the=20 + Daisy repository. To achieve this you can=20 + provide an XSL file called daisy/preFilter.xsl in y= our=20 + projects stylesheet directory (default location is=20 + PROJECT_HOME/src/documentation/resources/stylesheets).

+ =20 +

The preFilter XSL file operates on the HTML generated by Dais= y=2E=20 + If you wish to look at this format of the document simply reques= t=20 + the page with an .source.xml extension.

+ =20 + This behaviour will change in the future, + instead of processing the HTML produced by Daisy we will process=20 + the the XML. Use with care in the meantime. =20 - =20 - + =20 +
+ Example +

To filter out the document heading of the Daisy + document, use the following XSL:

+ =20 + =20 @@ -121,13 +143,47 @@ - ]]> - =20 -

This XSL will filter out all fields from all files retreived=20 - from a Daisy repository. If you only wanted to remove them from - specific files, or only remove specific fields you would need - to extend this stylesheet accordingly.

+ ]]> +
+ =20 +
+ Post-Filters + =20 +

Post-Filters are applied to the XDoc generated by=20 + Forrest. To achieve this you can=20 + provide an XSL file called daisy/postFilter.xsl in = your=20 + projects stylesheet directory (default location is=20 + PROJECT_HOME/src/documentation/resources/stylesheets).

+ =20 +

The postFilter XSL file operates on the XDoc generated by For= rest.=20 + If you wish to look at this format of the document simply reques= t=20 + the page with an .xml extension.

+ =20 +
+ Example +

To filter out the Fields section of the Daisy + document, use the following XSL:

+ =20 + + =20 + + =20 + + + + + + + ]]> + =20 +

This XSL will filter out all fields from all files retreive= d=20 + from a Daisy repository. If you only wanted to remove them from + specific files, or only remove specific fields you would need + to extend this stylesheet accordingly.

+
=20