Return-Path: Delivered-To: apmail-forrest-user-archive@www.apache.org Received: (qmail 83080 invoked from network); 23 Jan 2006 04:06:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Jan 2006 04:06:08 -0000 Received: (qmail 54647 invoked by uid 500); 23 Jan 2006 04:06:07 -0000 Delivered-To: apmail-forrest-user-archive@forrest.apache.org Received: (qmail 54616 invoked by uid 500); 23 Jan 2006 04:06:07 -0000 Mailing-List: contact user-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@forrest.apache.org List-Id: Delivered-To: mailing list user@forrest.apache.org Received: (qmail 54605 invoked by uid 99); 23 Jan 2006 04:06:07 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Jan 2006 20:06:07 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [65.77.211.84] (HELO www2.kc.aoindustries.com) (65.77.211.84) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 22 Jan 2006 20:06:06 -0800 Received: from fo2.kc.aoindustries.com (www2.kc.aoindustries.com [65.77.211.84]) by www2.kc.aoindustries.com (8.13.1/8.13.1) with ESMTP id k0N45hel020575 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 22 Jan 2006 22:05:43 -0600 Received: from localhost (localhost [[UNIX: localhost]]) by fo2.kc.aoindustries.com (8.13.1/8.13.1/Submit) id k0N45gle020485 for user@forrest.apache.org; Sun, 22 Jan 2006 22:05:42 -0600 X-Authentication-Warning: fo2.kc.aoindustries.com: indexgeo set sender to crossley@apache.org using -f Date: Mon, 23 Jan 2006 15:05:29 +1100 From: David Crossley To: user@forrest.apache.org Subject: Re: common+skins document2html.xsl questions Message-ID: <20060123040529.GB1036@igg.indexgeo.com.au> References: <43D406D9.6070405@greenjaguar.com> <20060123001317.GA21188@igg.indexgeo.com.au> <43D43CED.7020905@greenjaguar.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43D43CED.7020905@greenjaguar.com> User-Agent: Mutt/1.4i X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Helena Edelson wrote: > David Crossley wrote: > > > >Yes the include mechanisms would operate before skinning, > >at the content gathering stage. > > > >Another way would be to create a project sitemap to add the content > >(before skinning). The sitemap can deal with adding different content > >for different URL patterns. > > Will this input into the entire "content" zone of the skin or > sort of inject it into part of the content zone > (defining content as being from skin.body template > which I think does not include the other templates such as menu or > footer) No. See the sitemap match that i refer to below (line 508). Only the last map:part goes into the content body. The other parts provide data that is used later by the skin stylesheets. For example, see the "build-info" part which is used later by main/webapp/skins/common/xslt/html/site2xhtml.xsl line 326. > >There was a example about this recently on the mailing lists. > >The user was over-riding the core *.html pipeline for certain > >docs. The relevant aggregation happens around line 508 of > >$FORREST_HOME/main/webapp/sitemap.xmap in forrest_07_branch > >and the subsequent match. You would need to copy this to your > >project sitemap and add an extra map:part for your new content > >nugget. See the recent mailing list example. Please be careful when snipping mail. Note for the archives: The preceding comment has nothing to do with teh following example. > > > > > > > > > > > >[1] >src="{project:resources.stylesheets}/asx-announce-to-internal.xsl" /> > > > > > > > > > src="http://asx.com.au/asx/statistics/todayAnnHeaders.jsp" /> > > > src="{project:resources.stylesheets}/asx-announce-today-to-table.xsl" /> > > > > > > > >The stylesheet at [1] produces Forrest internal xdoc format. > > That is very cool. I see what you mean. > > >[ snip ] > > > > > >>Well, not in this instance. I was thinking about a php app, or some java > >>things where there is a string config file for instance, > >>allowing you to get fields into the content area (xdocs), but there is > >>code controling what goes where when, which xdocs content won't. > > > >There are ways to get extra content into the xml stream > >before the skinning stage, using Cocoon sitemap aggregation. > >See above. > > > >As you can see, it will be a lot easier with the new Dispatcher. > > > > --oOo-- > > > > > yes, recently worked on ftp xml for big external product catalog input > before skinning. But I might be able to get the same result > using the example above if the extrernal URL is not to convoluted. > Works, but not a long term solution. > > You implement multiple sitemaps per project as the f7/main/webapp does? Is that a question about the above "asx" example? If so, the answer is "no". -David