Gav.... wrote: > > > -----Original Message----- > > From: David Crossley > > Sent: Tuesday, 4 April 2006 11:57 AM > > To: [email protected] > > Subject: Re: Working - RE: Glossary Plugin FOR-755 - was RE: [jira] > > Updated: (FOR-639) define terminology for the various aspects of > > Dispatcher > > > > Gav.... wrote: > > > > > > I have added back in the catalog.xcat file, containing :- > > > > > > <!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog > > > V1.0//EN" > > > "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd"> > > > > > > <!-- OASIS XML Catalog for Forrest Documents --> > > > <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" > > > prefer="public"> > > > > > > <public publicId="-//Apache Forrest//DTD Glossary V1.0//EN" > > > uri="glossary-v10.dtd"/> > > > </catalog> > > > > > > And removed the .dtd and .mod files from /xdocs/ > > > > > > I am now getting different errors, > > > > > > Recursive entity reference "%glossary". (Reference path: %glossary -> > > > %glossary -> %glossary), > > > > > > >From a forrest run and similar in an Ant Test failure report. > > > > > > The glossary-v10.dtd has :- > > > > > > <!ENTITY % document PUBLIC > > > "-//APACHE//ENTITIES Documentation V1.2//EN" > > > "document-v12.mod"> > > > %document; > > > > > > <!-- =============================================================== --> > > > <!-- Include the Common ISO Character Entity Sets --> > > > <!-- =============================================================== --> > > > > > > <!ENTITY % common-charents PUBLIC > > > "-//APACHE//ENTITIES Common Character Entity Sets V1.0//EN" > > > "common-charents-v10.mod"> > > > %common-charents; > > > > > > <!-- =============================================================== --> > > > <!-- Document Type Definition --> > > > <!-- =============================================================== --> > > > > > > <!ENTITY % glossary PUBLIC > > > "-//Apache Forrest//DTD Glossary V1.0//EN" > > > "glossary-v10.mod"> > > > %glossary; > > > > That last part is not correct. It should be > > <!ENTITY % glossary PUBLIC > > "-//Apache Forrest//ENTITIES Glossary V1.0//EN" > > FIXME:...................^^^^^^^^ > > "glossary-v10.mod"> > > %glossary; > > Ok, changed that, I thought it had to match the rest. > > > Then your catalog.xcat needs to declare that as well. > > Hmm, changing the catalog.xcat to say ENTITIES instead of > DTD does not work for me, this has the effect of the dtd
No. You have two resources: the glossary-v10.dtd and glossary-v10.mod They need separate Public Identifiers and separate entries in the catalog.xcat file. > And mod files being looked for in xdocs again. I changed > It back to DTD and with the above change it is all > Working again - with another workaround. > > Making the suggested changes alone was not enough for me, > I then had problems with document-v12.dtd and common-charents-v10.dtd > Not being found, I had to copy them into the schema directory. This is a side affect of not configuring the catalog.xcat properly. Due to that it will erroneously try to find the resources relative to the xml doc. > I guess at the moment this is because I am testing directly in the plugin > Directory to get it working. If it was to be deployed properly into forrest > or included into a site build then the other files would be found more > easily from there respective positions. Just a guess. No that is incorrect. > > At the moment you are creating a circular reference > > to the glossary-v10.dtd > > Thanks, I guessed a loop somewhere. > > Now all the above is done, I am back again at the stage where the 'ant test' > fails validation due to <acronym> being declared twice > > I have removed the <acronym> code from glossary-v10.mod and the ant test now > Passes no problems, and the glossary.xml and glossary.html display as > intended. > > Is there anything else anyone wants me to check on before I attach the files > to the 755 issue? No, just attach a zip file please. -David
