Return-Path: Delivered-To: apmail-xml-forrest-dev-archive@www.apache.org Received: (qmail 44395 invoked from network); 3 Mar 2004 00:07:49 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 3 Mar 2004 00:07:49 -0000 Received: (qmail 55594 invoked by uid 500); 3 Mar 2004 00:07:33 -0000 Delivered-To: apmail-xml-forrest-dev-archive@xml.apache.org Received: (qmail 55553 invoked by uid 500); 3 Mar 2004 00:07:33 -0000 Mailing-List: contact forrest-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: forrest-dev@xml.apache.org Delivered-To: mailing list forrest-dev@xml.apache.org Received: (qmail 55534 invoked from network); 3 Mar 2004 00:07:33 -0000 Received: from unknown (HELO calmail-cr.berkeley.edu) (128.32.61.106) by daedalus.apache.org with SMTP; 3 Mar 2004 00:07:33 -0000 Received: from [128.32.107.29] (account masover@calmail.berkeley.edu HELO SIS9.uclink.berkeley.edu) by calmail-cr.berkeley.edu (CommuniGate Pro SMTP 4.1.8) with ESMTP-TLS id 1830263 for forrest-dev@xml.apache.org; Tue, 02 Mar 2004 16:07:40 -0800 Message-Id: <6.0.1.1.2.20040302160606.024cd0f0@calmail.berkeley.edu> X-Sender: masover@calmail.berkeley.edu X-Mailer: QUALCOMM Windows Eudora Version 6.0.1.1 Date: Tue, 02 Mar 2004 16:07:23 -0800 To: forrest-dev@xml.apache.org From: Steve Masover Subject: Re: local catalog not loaded/used, Cocoon phase of Forrest build In-Reply-To: <200403021849.45384.dave@brondsema.net> References: <6.0.1.1.2.20040302145658.024b8360@calmail.berkeley.edu> <200403021849.45384.dave@brondsema.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Yes, I did: ========================== # A local OASIS catalog file to supplement the default Forrest catalog project.catalog=${project.schema-dir}/local-catalog.xcat # The verbosity level for the entity resolver (1..10) forrest.catalog.verbosity=3 ========================== - Steve At 03:49 PM 3/2/2004, you wrote: >Did you set project.catalog in forrest.properties? From the seed site's >forrest.properties: > ># A local OASIS catalog file to supplement the default Forrest catalog >#project.catalog=${project.schema-dir}/catalog.xcat > >- -- >Dave Brondsema >dave@brondsema.net > >On Tuesday 02 March 2004 06:44 pm, Steve Masover wrote: > > Hi, > > > > I am using Forrest 0.5.1 on Java 1.4.2_03, and am trying to add my own DTDs > > to a site. I've backtracked to the point of attempting simply to follow > > published instructions > > (http://xml.apache.org/forrest/validation.html#Creating+or+extending+a+DTD) > > using a freshly seeded site directory and adding only the files described > > below (the sample DTD extension for download-v11.dtd). > > > > Problem: While Forrest validates using the DTD referenced in the > > catalog.xcat file, as advertised at the url cited above, the Cocoon phase > > of the site build is looking for the DTD referenced in the > > instance-document doctype (ignoring the catalog entry) rather than using > > catalog.xcat. This appears to be due to Cocoon's attempt to locate the > > catalog file in a different location in the build directory tree > > (build/tmp/context/src/documentation/resources/schema/local-catalog.xcat) > > from that to which it was actually copied > > (build/tmp/context/resources/schema/local-catalog.xcat). > > > > I am unable to find a setting, in forrest.properties or elsewhere, that > > would cause this. Is this a bug? Is it something I've failed to set > > properly? I can force a build by including BOTH the catalog.xcat entry and > > refering to the correct file path & name in the system-identifier of the > > xml instance's DOCTYPE tag ... but that isn't elegant (requires maintenance > > of both the catalog.xcat and DOCTYPE tags in each of the sites XML > > instances), and it isn't working as advertised in the Forrest site's docs. > > > > Excerpts from Forrest's output follow my signature, to illustrate the > > problem described above. The files added to the fresh forrest site are > > described below that. > > > > Thanks for any & all responses! > > > > Steve Masover > > masover@berkeley.edu > > > > > > ============================================= > > Excerpts from Forrest's output given file additions > > described below. > > ============================================= > > Copying 33 files to D:\junk\fsite-pristine\build\tmp\context > > Copying 3 files to D:\junk\fsite-pristine\build\tmp\context\WEB-INF > > > > validate-xdocs: > > 10 file(s) have been successfully validated. > > ...validated xdocs > > [...] > > ------------------------------------------------------------------------ > > cocoon 2.1.2 > > Copyright (c) 1999-2003 Apache Software Foundation. All rights reserved. > > ------------------------------------------------------------------------ > > [...] > > Loading catalog: > > file:/D:/junk/fsite-pristine/build/tmp/context/./src/documentation/resource > >s/schema/local-catalog.xcat Catalog does not exist: > > file:/D:/junk/fsite-pristine/build/tmp/context/./src/documentation/resource > >s/schema/local-catalog.xcat [...] > > X [0] download.html BROKEN: > > D:\junk\fsite-pristine\build\tmp\context\content\xdocs\downloads.dtd (The > > system cannot find the file specified) > > [...] > > ============================================= > > > > > > ============================================= > > files/entries added to freshly seeded forrest directory > > ============================================= > > > > * a local catalog file: > > src/documentation/resources/schema/local-catalog.xcat [contents included > > below] > > > > * an extended DTD, copied verbatim from > > http://xml.apache.org/forrest/validation.html#Creating+or+extending+a+DTD > > in src/documentation/resources/schema/dtd/download-v11.dtd > > > > * an xml instance, download.xml, placed in src/documentation/content/xdocs > > with the following doctype declaration (note that filename intentionally > > does NOT refer to the DTD on my filesystem): > > > > > PUBLIC "-//Acme//DTD Download Documentation V1.0//EN" > > "downloads.dtd"> > > > > * a simple addition to site.xml: > > > > > href="download.html" description="Downloads Listing" /> > > > > ==================================== > > contents of > > src/documentation/resources/schema/local-catalog.xcat > > ==================================== > > > > > > > > > uri="dtd/download-v11.dtd"/> > > > > > > > > ============================================= > > ============================================= >-----BEGIN PGP SIGNATURE----- >Version: GnuPG v1.2.4 (GNU/Linux) > >iD8DBQFARR2YVvBSb5uzznARAmFiAJ4xhpZIgbCDmqMmSakYU6qSGCzr7wCgx/3C >HvGO1Ma5ouYAdNw8T1s4GRg= >=ZPSx >-----END PGP SIGNATURE----- ************************************************************ Steve Masover Programmer/Analyst IS&T - Student Information Services 549 Banway UC Berkeley Steve Masover *************************************************************