forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Crossley <cross...@apache.org>
Subject Re: Validation fails with modified document-v12.mod
Date Tue, 17 Aug 2004 00:55:21 GMT
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.
> 
> 
> 


Mime
View raw message