You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@forrest.apache.org by Fraser Bennett <fr...@sil.org> on 2004/08/16 18:31:39 UTC
Validation fails with modified document-v12.mod
Dear all,
I'm having trouble getting Forrest 0.51 to validate Documentation V1.2
files that contain a custom element I added to document-v12.mod.
Forrest handles these files properly in webapp mode -- that is, when I
edit them directly under build/webapp/content/xdocs. But it fails to
build if one of these XML files is in the src directory. Is this a
bug, or am I missing something?
Thanks in advance,
Fraser Bennett
Research Linguist
SIL Intl. * 7500 W. Camp Wisdom Rd. * Dallas, TX 75236 USA
www.sil.org
***
The gory details:
Snippet of resources/schema/dtd/document-v12.mod (adds an element
"audio-player"):
> <!ENTITY % local.inline "|audio-player">
> <!-- added -->
> <!ENTITY % link-content.mix "%text;|%markup;|%special-inline;
> %local.inline;">
>
> <!-- no change -->
> <!ENTITY % content.mix "%link-content.mix;|%links;">
> <!-- no change -->
> <!ELEMENT audio-player (%content.mix;)* >
> <!-- added -->
> <!ATTLIST audio-player %common.att; %link.att; >
> <!-- added -->
Snippet of error complaints from running "forrest webapp":
> .../forrest-project/src/documentation/content/xdocs/data/main-
> wordlist.xml:673:78: Element type "audio-player" must be declared.
> .../forrest-project/src/documentation/content/xdocs/data/main-
> wordlist.xml:676:26: The content of element type "td" must match
> "(strong|em|code|sub|sup|br|img|icon|acronym|link|jump|fork|p|source|no
> te|warning|fixme|table|ol|ul|dl|figure|anchor)".
Results of running "forrest overrides":
> Overridden, modified :
> forrest.xmap;resources/schema/CatalogManager.properties;resources/
> schema/dtd/document-v12.mod;resources.xmap;sitemap.xmap;skins/forrest-
> site/css/page.css;skins/forrest-site/xslt/html/document2html.xsl
Details of my kit: Mac OS X 10.3, JVM 1.4.2, Tomcat 5.0.24, Forrest
0.51/Cocoon 2.1.2.
Re: Validation fails with modified document-v12.mod
Posted by David Crossley <cr...@apache.org>.
Fraser Bennett wrote:
> Dear all,
>
> I'm having trouble getting Forrest 0.51 to validate Documentation V1.2
> files that contain a custom element I added to document-v12.mod.
>
> Forrest handles these files properly in webapp mode -- that is, when I
> edit them directly under build/webapp/content/xdocs. But it fails to
> build if one of these XML files is in the src directory. Is this a
> bug, or am I missing something?
Make your "dtd changes", then do 'build', then do either
'forrest run' or 'forrest'. I am not sure, but it sounds
like you are instead making the dtd changes *after* you
have already built Forrest.
--David
> The gory details:
>
> Snippet of resources/schema/dtd/document-v12.mod (adds an element
> "audio-player"):
> > <!ENTITY % local.inline "|audio-player">
> > <!-- added -->
> > <!ENTITY % link-content.mix "%text;|%markup;|%special-inline;
> > %local.inline;">
> >
> > <!-- no change -->
> > <!ENTITY % content.mix "%link-content.mix;|%links;">
> > <!-- no change -->
> > <!ELEMENT audio-player (%content.mix;)* >
> > <!-- added -->
> > <!ATTLIST audio-player %common.att; %link.att; >
> > <!-- added -->
>
> Snippet of error complaints from running "forrest webapp":
> > .../forrest-project/src/documentation/content/xdocs/data/main-
> > wordlist.xml:673:78: Element type "audio-player" must be declared.
> > .../forrest-project/src/documentation/content/xdocs/data/main-
> > wordlist.xml:676:26: The content of element type "td" must match
> > "(strong|em|code|sub|sup|br|img|icon|acronym|link|jump|fork|p|source|no
> > te|warning|fixme|table|ol|ul|dl|figure|anchor)".
>
> Results of running "forrest overrides":
> > Overridden, modified :
> > forrest.xmap;resources/schema/CatalogManager.properties;resources/
> > schema/dtd/document-v12.mod;resources.xmap;sitemap.xmap;skins/forrest-
> > site/css/page.css;skins/forrest-site/xslt/html/document2html.xsl
>
> Details of my kit: Mac OS X 10.3, JVM 1.4.2, Tomcat 5.0.24, Forrest
> 0.51/Cocoon 2.1.2.
>
>
>