forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <thorsten.scher...@wyona.com>
Subject Re: xinclude
Date Wed, 06 Sep 2006 14:19:12 GMT
El mié, 06-09-2006 a las 15:00 +0100, Jim Dixon escribió:
> On Mon, 4 Sep 2006, Ross Gardler wrote:
> 
> > > My only use of XInlude appears above.  In logMeIn.xml I
> > >
> > > (a) add an xmlns:xi attribute to the document element
> > > (b) add the xi:xinclude element
> > >
> > > Is either incorrect?  Is there something else I should be doing?
> >
> > No that is fine. You also define the xinclude transformer in your
> > sitemap, this is not necessary as it is defined in the root Forrest
> > sitemap, but it will not be causing a problem.
> 
> [Some readers will recall that there is no project sitemap.]
> 
> Well, it doesn't cause a problem if you do a 'forrest run', but if
> you do a 'forrest site', it fails:
> ------------------------------------------------------------------------
> validate-xdocs:
> /home/j2ee/jappgen/src/documentation/content/xdocs/eg/logMeIn.xml:4:54:
> Attribute "xmlns:xi" must be declared for element type "document".
> /home/j2ee/jappgen/src/documentation/content/xdocs/eg/logMeIn.xml:13:73:
> Element type "xi:include" must be declared.
> /home/j2ee/jappgen/src/documentation/content/xdocs/eg/logMeIn.xml:13:82:
> The content of element type "source" must match
> "(strong|em|code|sub|sup|br|img|icon|acronym|map|a)".
> ------------------------------------------------------------------------
> 
> Now I'm hoping that there is a simple workaround that I am missing but ...

Well it looks like the xinclude transformation got not executed before
the validation. The quickest way would be to exclude the url for
validation in the forrest.properties.

salu2

> 
> --
> Jim Dixon  jdd@dixons.org   tel +44 117 982 0786  mobile +44 797 373 7881
-- 
Thorsten Scherler
COO Spain
Wyona Inc.  -  Open Source Content Management  -  Apache Lenya
http://www.wyona.com                   http://lenya.apache.org
thorsten.scherler@wyona.com                thorsten@apache.org


Mime
View raw message