You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Sergio Ramazzina <sr...@tiscalinet.it> on 2003/03/03 10:54:27 UTC

Fw: Problem defining a new document type

Hi to everybody,

I'm a newbie with Forrest and I've got a big problem trying to add a new
catalog DTD to forrest existing catalog. I've carefully followed the
instructions found in the XML Validation section of the Forrest site but
nothing was able to help me. Briefly a summary of the operations I've done:

1) I've defined 2 new files edocs-requana-v10.dtd and edocs-requana-v10.mod.
About these files: the first is just an import of document-v11.mod and
common-charents-v10.mod and the second is empty (may be this can cause any
problems??). This was done just to make a try that all the things initially
goes ok. The two files are located under a directory
${project.schema-dir}/dtd

 2) I've added entries to declare the new document definitions and reusable
modules to catalog and catalog.xconf following the standards specified in
the documentation and also looking at how other entries were declared.

3) I've set, in forrest.properties, the variables for project.catalog and
project.schema-dir.

When I execute the forrest validate command the systems gives me the
following error


Buildfile: E:\apache-forrest-0.4-bin\forrest.build.xml

init-props:
Loading project specific properties from
D:\projects_root\Java\edocs\forrest\for
rest.properties

BUILD FAILED
file://E:/apache-forrest-0.4-bin/forrest.build.xml:774: Could not validate
document
D:\projects_root\Java\edocs\forrest\src\documentation\content\xdocs\uc\inter
operability\index.xml

It seems that it isn't able to find the declaration for the new dtds yet
declared. Can someone help me to find the way to make things works? My
version of Forrest is 0.4 and JDK 1.4.1_01.
I've included the .dtd and .mod files, the forrest.properties, the catalog
and catalog.xmod and the file index.xml that uses the new catalog.

Thanks a lot to everyone that will help me.

Sergio

Re: Fw: Problem defining a new document type

Posted by Mark Vovsi <ma...@vovsi.com>.
Sergio,

I think the problem is with this setting in your forrest.properties file:
# A local catalog to supplement the default Forrest catalog
project.catalog=${project.schema-dir}

by default this line is:
# A local catalog to supplement the default Forrest catalog
#project.catalog=${project.schema-dir}/catalog

I believe ${project.schema-dir}/catalog points to the actual catalog file,
not a directory. This confused me very much at the beginning as well. So
just change back the project.catalog property and stick the catalog file
under $project.schema-dir and give it a try.

- Mark

----- Original Message -----
From: "Sergio Ramazzina" <sr...@tiscalinet.it>
To: <fo...@xml.apache.org>
Sent: Monday, March 03, 2003 10:30 AM
Subject: Re: Fw: Problem defining a new document type


> Jeff,
>
> I've tryed your suggestion but I've got  always the same error message. Do
> you have further suggestions?
>
> Thanks a lot for your help.
>
> Sergio
>
>
> ----- Original Message -----
> From: "Jeff Turner" <je...@apache.org>
> To: <fo...@xml.apache.org>; "Sergio Ramazzina"
> <sr...@tiscalinet.it>
> Sent: Monday, March 03, 2003 12:35 PM
> Subject: Re: Fw: Problem defining a new document type
>
>
> > On Mon, Mar 03, 2003 at 10:54:27AM +0100, Sergio Ramazzina wrote:
> > ....
> > > It seems that it isn't able to find the declaration for the new dtds
yet
> > > declared. Can someone help me to find the way to make things works? My
> > > version of Forrest is 0.4 and JDK 1.4.1_01.
> > > I've included the .dtd and .mod files, the forrest.properties, the
> catalog
> > > and catalog.xmod and the file index.xml that uses the new catalog.
> >
> > You have a typo in your catalog file:
> >
> >      1  -- OASIS TR 9401 Catalog for Forrest --
> >      2
> >      3  OVERRIDE YES
> >      4
> >      5
> >      6  -- Custom documents type definitions
> >      7  PUBLIC "-//EDOCS//DTD Requana V1.0//EN"
> >      8         "dtd/edocs-requana-v10.dtd"
> >      9
> >     10  -- Custom reusable modules --
> >     11  PUBLIC "-//EDOCS//ENTITIES Requana V1.0//EN"
> >     12          "dtd/edocs-requana-v10.mod"
> >
> >
> > Line 6 is an unclosed comment.  Should be:
> >
> >      6  -- Custom documents type definitions --
> >
> >
> > Syntax-highlighting editors are wonderful things :)
> >
> > Hope that fixes it.
> >
> >
> > --Jeff
> >
> > > Thanks a lot to everyone that will help me.
> > >
> > > Sergio
> >
> >
>


Re: Fw: Problem defining a new document type

Posted by Sergio Ramazzina <sr...@tiscalinet.it>.
Jeff,

I've tryed your suggestion but I've got  always the same error message. Do
you have further suggestions?

Thanks a lot for your help.

Sergio


----- Original Message -----
From: "Jeff Turner" <je...@apache.org>
To: <fo...@xml.apache.org>; "Sergio Ramazzina"
<sr...@tiscalinet.it>
Sent: Monday, March 03, 2003 12:35 PM
Subject: Re: Fw: Problem defining a new document type


> On Mon, Mar 03, 2003 at 10:54:27AM +0100, Sergio Ramazzina wrote:
> ....
> > It seems that it isn't able to find the declaration for the new dtds yet
> > declared. Can someone help me to find the way to make things works? My
> > version of Forrest is 0.4 and JDK 1.4.1_01.
> > I've included the .dtd and .mod files, the forrest.properties, the
catalog
> > and catalog.xmod and the file index.xml that uses the new catalog.
>
> You have a typo in your catalog file:
>
>      1  -- OASIS TR 9401 Catalog for Forrest --
>      2
>      3  OVERRIDE YES
>      4
>      5
>      6  -- Custom documents type definitions
>      7  PUBLIC "-//EDOCS//DTD Requana V1.0//EN"
>      8         "dtd/edocs-requana-v10.dtd"
>      9
>     10  -- Custom reusable modules --
>     11  PUBLIC "-//EDOCS//ENTITIES Requana V1.0//EN"
>     12          "dtd/edocs-requana-v10.mod"
>
>
> Line 6 is an unclosed comment.  Should be:
>
>      6  -- Custom documents type definitions --
>
>
> Syntax-highlighting editors are wonderful things :)
>
> Hope that fixes it.
>
>
> --Jeff
>
> > Thanks a lot to everyone that will help me.
> >
> > Sergio
>
>


Re: Fw: Problem defining a new document type

Posted by Jeff Turner <je...@apache.org>.
On Mon, Mar 03, 2003 at 10:54:27AM +0100, Sergio Ramazzina wrote:
....
> It seems that it isn't able to find the declaration for the new dtds yet
> declared. Can someone help me to find the way to make things works? My
> version of Forrest is 0.4 and JDK 1.4.1_01.
> I've included the .dtd and .mod files, the forrest.properties, the catalog
> and catalog.xmod and the file index.xml that uses the new catalog.

You have a typo in your catalog file:

     1  -- OASIS TR 9401 Catalog for Forrest --
     2
     3  OVERRIDE YES
     4
     5
     6  -- Custom documents type definitions
     7  PUBLIC "-//EDOCS//DTD Requana V1.0//EN" 
     8         "dtd/edocs-requana-v10.dtd"
     9
    10  -- Custom reusable modules --
    11  PUBLIC "-//EDOCS//ENTITIES Requana V1.0//EN" 
    12          "dtd/edocs-requana-v10.mod"


Line 6 is an unclosed comment.  Should be:

     6  -- Custom documents type definitions --


Syntax-highlighting editors are wonderful things :)

Hope that fixes it.


--Jeff

> Thanks a lot to everyone that will help me.
> 
> Sergio