forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fraser Bennett <fraser_benn...@sil.org>
Subject Validation fails with modified document-v12.mod
Date Mon, 16 Aug 2004 16:31:39 GMT
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.






Mime
View raw message