Return-Path: Delivered-To: apmail-forrest-dev-archive@www.apache.org Received: (qmail 60865 invoked from network); 22 Oct 2004 05:46:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 22 Oct 2004 05:46:34 -0000 Received: (qmail 91981 invoked by uid 500); 22 Oct 2004 05:46:33 -0000 Delivered-To: apmail-forrest-dev-archive@forrest.apache.org Received: (qmail 91903 invoked by uid 500); 22 Oct 2004 05:46:32 -0000 Mailing-List: contact dev-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@forrest.apache.org Delivered-To: mailing list dev@forrest.apache.org Received: (qmail 91889 invoked by uid 99); 22 Oct 2004 05:46:32 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [65.77.211.93] (HELO indexgeo.net) (65.77.211.93) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 21 Oct 2004 22:46:31 -0700 Received: from [192.168.1.100] (static-109.227.240.220.dsl.comindico.com.au [220.240.227.109]) (authenticated bits=0) by www2.kc.aoindustries.com (8.12.9-20030917/8.12.9) with ESMTP id i9M5kQpv002701 for ; Fri, 22 Oct 2004 00:46:28 -0500 Subject: Re: DocBook and numeric entity declaration From: David Crossley To: dev@forrest.apache.org In-Reply-To: <7597D3B7-23A9-11D9-8F30-00039385397E@medata.com> References: <0ABB57CE-DADD-11D8-8DCA-00039385397E@medata.com> <1090396294.1666.65459.camel@ighp> <959D583A-DB23-11D8-8DCA-00039385397E@medata.com> <1090478385.1666.65952.camel@ighp> <71A6B550-DBF3-11D8-90B1-00039385397E@medata.com> <1090564098.1667.67375.camel@ighp> <78D5CBC0-E182-11D8-A85F-00039385397E@medata.com> <599A46F4-E23A-11D8-B3AB-00039385397E@medata.com> <8C2FD019-E242-11D8-B3AB-00039385397E@medata.com> <410A8D7B.9030203@brondsema.net> <410D53A3.8060702@brondsema.net> <65E128D6-E4B7-11D8-BA09-00039385397E@medata.com> <41101B0D.9040408@brondsema.net> <1EC1B9E7-2193-11D9-9F59-00039385397E@medata.com> <41755! 5E7.7080501@che-che.com> <7597D3B7-23A9-11D9-8F30-00039385397E@medata.com> Content-Type: text/plain Organization: Message-Id: <1098423897.22786.56.camel@ighp> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-5) Date: 22 Oct 2004 15:45:35 +1000 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Clay Leeds wrote: > Juan Jose Pablos wrote: > > I am downloading the fop cvs and I am getting a diferent error: > > > > validate-xdocs: > > /home/cheche/xml/xml-fop/src/documentation/content/xdocs/DnI/ > > properties.xml:2245:39: The entity "rarr" was referenced, but not > > declared. > > > > Do you know much about this? > > I've found out a little more about this problem. Apparently Forrest (or > Cocoon?) is not properly validating DocBook character entities. There > may be a couple of reasons for this > > Here's the most recent msg[1] I sent to fop-dev on the subject: > > On Oct 20, 2004, at 11:32 AM, Simon Pepping wrote: > > Clay, > > > > I am a bit surprised. The docbook dtd clearly defines the entity > > → in iso-num.ent: > > > > Why does not the forrest build see this? Does it not read the DTD? > > > > I do not like character entities in decimal numbers. I can never > > figure out what they refer to. IMO character codes should be given in > > hexadecimal notation; all Unicode documentation uses this. Then it > > becomes → as shown above. > > > > Regards, Simon > > Changing → to → is an acceptable solution. The xml-fop > /forrest/ build does not error out when it tries to validate > 'properties.xml'. I made the change and checked it in. > > I'd also like to resolve the error in Forrest if possible, so the rest > of this POST deals with that. I do not see any such problem. I have a test seed site that includes a couple of Full DocBook examples using the DocBook XSL and also processes them via Forrest's default docbook2document XSL. I can add an example character entity to them → and everything works perfectly: 'forrest validate' is fine and with 'forrest run' i see the entity rendered as "->" as expected. This is my document type declaration. Forrest resolves all the DTDs and *.ent properly. More below ... > I suspect the problem is related to the fact that properties.xml > references a dtd like this: > > > > A couple of things I note here: > 1. It's commented out I don't understand. How can it ever work if it is commented out? Remember, if you suspect issues with the catalog entity resolver then raise the verbosity level in src/core/context/WEB-INF/cocoon.xconf for the component. Then watch the messages when Cocoon starts and during 'forrest run'. You should see stacks of messages and then "Resolved public: ..." when the forrest catalog finds each DTD and *.ent file. --David > 2. this is a relative/local link, but the 'docbookx.dtd' is not local > (I also tried > 'http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd' > and 'http://www.oasis-open.org/docbook/xml/4.2/' and as expected > neither > works.) > 3. fwiw, iso-num.ent is at > http://www.oasis-open.org/docbook/xml/4.2/ent/iso-num.ent > > I'm not very 'up' on DocBook, so this may be how it's 'supposed' to > work. Nevertheless, → is the only thing in 'properties.xml' that > doesn't validate during the /forrest/ run (unless I replace → with > → or →). > > Web Maestro Clay > > [1] > http://marc.theaimsgroup.com/?l=fop-dev&m=109839392707948&w=2