forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gav...." <brightoncomput...@brightontown.com.au>
Subject RE: Working - RE: Glossary Plugin FOR-755 - was RE: [jira] Updated: (FOR-639) define terminology for the various aspects of Dispatcher
Date Tue, 04 Apr 2006 11:33:59 GMT


> -----Original Message-----
> From: David Crossley [mailto:crossley@apache.org]
> Sent: Tuesday, 4 April 2006 11:57 AM
> To: dev@forrest.apache.org
> 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
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.

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.

> 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? 

Gav...



> 
> -David
> 
> 
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.385 / Virus Database: 268.3.5/300 - Release Date: 3/04/2006



Mime
View raw message