You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Jason End <be...@yahoo.com> on 2003/08/12 05:25:48 UTC

Upgrading to document-v12.dtd/mod

Using Forrest 0.4 I placed the v12 dtds in the correct
location and changed my xml files to use
document-v12.dtd (or .mod)
But when I tried to build I got the following error:

[...]
validate-xdocs:
/usr/local/www/data/beans/mysite2/src/documentation/content/xdocs/articles/211.xml:23:6:
The content of element type "strong" must match
"(code)".

BUILD FAILED
file:///usr/local/www/data/beans/apache-forrest-0.4-bin/forrest.build.xml:774:
/usr/local/www/data/beans/mysite2/src/documentation/content/xdocs/articles/211.xml
is not a valid XML document.
[...]

The code it chokes on is:
[...]
<strong>
<em>
My Text
</em>
</strong>
[...]

Which should be permitted in v12. Do I need to specify
the use of v12 somewhere else?

thanks,

Jay

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

Re: [solved] Re: Upgrading to document-v12.dtd/mod

Posted by David Crossley <cr...@indexgeo.com.au>.
Jason End wrote:
> Got it. The problem was that I hadn't updated the
> catalog files. I bet it was so obvious that I had to
> do so, that no-one even thought of that, hehehe.
> 
> thanks for the help, 
> 
> Jay

http://xml.apache.org/forrest/validation.html#Associating+DTDs+with+document+types

--David



[solved] Re: Upgrading to document-v12.dtd/mod

Posted by Jason End <be...@yahoo.com>.
Got it. The problem was that I hadn't updated the
catalog files. I bet it was so obvious that I had to
do so, that no-one even thought of that, hehehe.

thanks for the help, 

Jay


--- Stephan Schlierf <st...@vsa.de> wrote:
> Am Dienstag, 12. August 2003 16:51 schrieb Jason
> End:
> > I had not changed V1.1 to V1.2. I just did, but
> now I
> > get a new error.
> > Here's the definition:
> > <?xml version="1.0" encoding="iso-8859-1"?>
> > <!DOCTYPE document PUBLIC "-//APACHE//DTD
> > Documentation V1.2//EN"
> > "document-v12.dtd">
> >
> > Here's the error:
> > [...]
> > validate-xdocs:
> >
> > BUILD FAILED
> >
>
file:///usr/local/www/data/beans/apache-forrest-0.4-bin/forrest.build.xml:7
> >74: Could not validate document
> >
>
/usr/local/www/data/beans/mysite2/src/documentation/content/xdocs/articles/
> >211.xml [...]
> 
> hm, and what's the error exactly ? Something like
> "The content of element ..." 
> ?
> 
> >
> > I placed the v12 dtds here:
> >
>
/usr/local/www/data-dist/beans/apache-forrest-0.4-bin/context/resources/sch
> >ema/dtd/
> 
> Usually the dtds are located in
> [forrest-directory]/src/resources/schema/dtd
> You can change this if you like by editing the
> forrest.properties file in your 
> project directory (I assume "mysite2"):
> 
> ---snip---
> 
> ##############
> # layout properties
> 
> # Properties that must be set to override the
> default locations
> #
> # Parent properties must be set. This usually means
> uncommenting
> # project.content-dir if any other property using it
> is uncommented
> 
> project.status=status.xml
> project.content-dir=src/documentation
> project.conf-dir=${project.content-dir}/conf
> project.sitemap=${project.content-dir}/sitemap.xmap
>
project.xdocs-dir=${project.content-dir}/content/xdocs
>
project.stylesheets-dir=${project.content-dir}/resources/stylesheets
>
project.images-dir=${project.content-dir}/resources/images
>
project.schema-dir=${project.content-dir}/resources/schema
> <-- Here we are!
> project.skins-dir=${project.content-dir}/skins
> project.skinconf=${project.content-dir}/skinconf.xml
> #project.lib-dir=${project.content-dir}/lib
> #project.classes-dir=${project.content-dir}/classes
> 
> ---snip---
> 
> hth
> Stephan
> >
> > Jay
> >
> > --- Stephan Schlierf <st...@vsa.de>
> wrote:
> > > Jason,
> > >
> > > how does the definition of the dtd-file look in
> your
> > > document ?
> > >
> > > <!DOCTYPE document PUBLIC "-//APACHE//DTD
> > > Documentation V1.2//EN"
> > > "document-v12.dtd">
> > >
> > > should be the correct line - note the
> "Documentation
> > > V1.2//EN" change.
> > >
> > > hth,
> > > Stephan
> > >
> > > Am Dienstag, 12. August 2003 05:25 schrieb Jason
> > >
> > > End:
> > > > Using Forrest 0.4 I placed the v12 dtds in the
> > >
> > > correct
> > >
> > > > location and changed my xml files to use
> > > > document-v12.dtd (or .mod)
> > > > But when I tried to build I got the following
> > >
> > > error:
> > > > [...]
> > > > validate-xdocs:
> >
> >
>
/usr/local/www/data/beans/mysite2/src/documentation/content/xdocs/articles/
> >
> > > >211.xml:23:6: The content of element type
> "strong"
> > >
> > > must match
> > >
> > > > "(code)".
> > > >
> > > > BUILD FAILED
> >
> >
>
file:///usr/local/www/data/beans/apache-forrest-0.4-bin/forrest.build.xml:7
> >
> > > >74:
> >
> >
>
/usr/local/www/data/beans/mysite2/src/documentation/content/xdocs/articles/
> >
> > > >211.xml is not a valid XML document.
> > > > [...]
> > > >
> > > > The code it chokes on is:
> > > > [...]
> > > > <strong>
> > > > <em>
> > > > My Text
> > > > </em>
> > > > </strong>
> > > > [...]
> > > >
> > > > Which should be permitted in v12. Do I need to
> > >
> > > specify
> > >
> > > > the use of v12 somewhere else?
> > > >
> > > > thanks,
> > > >
> > > > Jay
> > > >
> > > > __________________________________
> > > > Do you Yahoo!?
> > > > Yahoo! SiteBuilder - Free, easy-to-use web
> site
> > >
> > > design software
> > >
> > > > http://sitebuilder.yahoo.com
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> > http://sitebuilder.yahoo.com
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

Re: Upgrading to document-v12.dtd/mod

Posted by Stephan Schlierf <st...@vsa.de>.
Am Dienstag, 12. August 2003 16:51 schrieb Jason End:
> I had not changed V1.1 to V1.2. I just did, but now I
> get a new error.
> Here's the definition:
> <?xml version="1.0" encoding="iso-8859-1"?>
> <!DOCTYPE document PUBLIC "-//APACHE//DTD
> Documentation V1.2//EN"
> "document-v12.dtd">
>
> Here's the error:
> [...]
> validate-xdocs:
>
> BUILD FAILED
> file:///usr/local/www/data/beans/apache-forrest-0.4-bin/forrest.build.xml:7
>74: Could not validate document
> /usr/local/www/data/beans/mysite2/src/documentation/content/xdocs/articles/
>211.xml [...]

hm, and what's the error exactly ? Something like "The content of element ..." 
?

>
> I placed the v12 dtds here:
> /usr/local/www/data-dist/beans/apache-forrest-0.4-bin/context/resources/sch
>ema/dtd/

Usually the dtds are located in [forrest-directory]/src/resources/schema/dtd
You can change this if you like by editing the forrest.properties file in your 
project directory (I assume "mysite2"):

---snip---

##############
# layout properties

# Properties that must be set to override the default locations
#
# Parent properties must be set. This usually means uncommenting
# project.content-dir if any other property using it is uncommented

project.status=status.xml
project.content-dir=src/documentation
project.conf-dir=${project.content-dir}/conf
project.sitemap=${project.content-dir}/sitemap.xmap
project.xdocs-dir=${project.content-dir}/content/xdocs
project.stylesheets-dir=${project.content-dir}/resources/stylesheets
project.images-dir=${project.content-dir}/resources/images
project.schema-dir=${project.content-dir}/resources/schema <-- Here we are!
project.skins-dir=${project.content-dir}/skins
project.skinconf=${project.content-dir}/skinconf.xml
#project.lib-dir=${project.content-dir}/lib
#project.classes-dir=${project.content-dir}/classes

---snip---

hth
Stephan
>
> Jay
>
> --- Stephan Schlierf <st...@vsa.de> wrote:
> > Jason,
> >
> > how does the definition of the dtd-file look in your
> > document ?
> >
> > <!DOCTYPE document PUBLIC "-//APACHE//DTD
> > Documentation V1.2//EN"
> > "document-v12.dtd">
> >
> > should be the correct line - note the "Documentation
> > V1.2//EN" change.
> >
> > hth,
> > Stephan
> >
> > Am Dienstag, 12. August 2003 05:25 schrieb Jason
> >
> > End:
> > > Using Forrest 0.4 I placed the v12 dtds in the
> >
> > correct
> >
> > > location and changed my xml files to use
> > > document-v12.dtd (or .mod)
> > > But when I tried to build I got the following
> >
> > error:
> > > [...]
> > > validate-xdocs:
>
> /usr/local/www/data/beans/mysite2/src/documentation/content/xdocs/articles/
>
> > >211.xml:23:6: The content of element type "strong"
> >
> > must match
> >
> > > "(code)".
> > >
> > > BUILD FAILED
>
> file:///usr/local/www/data/beans/apache-forrest-0.4-bin/forrest.build.xml:7
>
> > >74:
>
> /usr/local/www/data/beans/mysite2/src/documentation/content/xdocs/articles/
>
> > >211.xml is not a valid XML document.
> > > [...]
> > >
> > > The code it chokes on is:
> > > [...]
> > > <strong>
> > > <em>
> > > My Text
> > > </em>
> > > </strong>
> > > [...]
> > >
> > > Which should be permitted in v12. Do I need to
> >
> > specify
> >
> > > the use of v12 somewhere else?
> > >
> > > thanks,
> > >
> > > Jay
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > Yahoo! SiteBuilder - Free, easy-to-use web site
> >
> > design software
> >
> > > http://sitebuilder.yahoo.com
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com


Re: Upgrading to document-v12.dtd/mod

Posted by Jason End <be...@yahoo.com>.
I had not changed V1.1 to V1.2. I just did, but now I
get a new error.
Here's the definition:
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE document PUBLIC "-//APACHE//DTD
Documentation V1.2//EN"
"document-v12.dtd">

Here's the error:
[...]
validate-xdocs:

BUILD FAILED
file:///usr/local/www/data/beans/apache-forrest-0.4-bin/forrest.build.xml:774:
Could not validate document
/usr/local/www/data/beans/mysite2/src/documentation/content/xdocs/articles/211.xml
[...]

I placed the v12 dtds here:
/usr/local/www/data-dist/beans/apache-forrest-0.4-bin/context/resources/schema/dtd/

Jay



--- Stephan Schlierf <st...@vsa.de> wrote:
> Jason,
> 
> how does the definition of the dtd-file look in your
> document ?
> 
> <!DOCTYPE document PUBLIC "-//APACHE//DTD
> Documentation V1.2//EN" 
> "document-v12.dtd">
> 
> should be the correct line - note the "Documentation
> V1.2//EN" change.
> 
> hth,
> Stephan
> 
> Am Dienstag, 12. August 2003 05:25 schrieb Jason
> End:
> > Using Forrest 0.4 I placed the v12 dtds in the
> correct
> > location and changed my xml files to use
> > document-v12.dtd (or .mod)
> > But when I tried to build I got the following
> error:
> >
> > [...]
> > validate-xdocs:
> >
>
/usr/local/www/data/beans/mysite2/src/documentation/content/xdocs/articles/
> >211.xml:23:6: The content of element type "strong"
> must match
> > "(code)".
> >
> > BUILD FAILED
> >
>
file:///usr/local/www/data/beans/apache-forrest-0.4-bin/forrest.build.xml:7
> >74:
> >
>
/usr/local/www/data/beans/mysite2/src/documentation/content/xdocs/articles/
> >211.xml is not a valid XML document.
> > [...]
> >
> > The code it chokes on is:
> > [...]
> > <strong>
> > <em>
> > My Text
> > </em>
> > </strong>
> > [...]
> >
> > Which should be permitted in v12. Do I need to
> specify
> > the use of v12 somewhere else?
> >
> > thanks,
> >
> > Jay
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> > http://sitebuilder.yahoo.com
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

Re: Upgrading to document-v12.dtd/mod

Posted by Stephan Schlierf <st...@vsa.de>.
Jason,

how does the definition of the dtd-file look in your document ?

<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V1.2//EN" 
"document-v12.dtd">

should be the correct line - note the "Documentation V1.2//EN" change.

hth,
Stephan

Am Dienstag, 12. August 2003 05:25 schrieb Jason End:
> Using Forrest 0.4 I placed the v12 dtds in the correct
> location and changed my xml files to use
> document-v12.dtd (or .mod)
> But when I tried to build I got the following error:
>
> [...]
> validate-xdocs:
> /usr/local/www/data/beans/mysite2/src/documentation/content/xdocs/articles/
>211.xml:23:6: The content of element type "strong" must match
> "(code)".
>
> BUILD FAILED
> file:///usr/local/www/data/beans/apache-forrest-0.4-bin/forrest.build.xml:7
>74:
> /usr/local/www/data/beans/mysite2/src/documentation/content/xdocs/articles/
>211.xml is not a valid XML document.
> [...]
>
> The code it chokes on is:
> [...]
> <strong>
> <em>
> My Text
> </em>
> </strong>
> [...]
>
> Which should be permitted in v12. Do I need to specify
> the use of v12 somewhere else?
>
> thanks,
>
> Jay
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com