El jue, 29-06-2006 a las 11:24 -0400, Terrence Brannon escribió: > Between a FAQ entry > (http://forrest.apache.org/docs_0_80/faq.html#javascript --- please > note that this FAQ entry contradicts itself. It says that the > directory is skins yet then says the URIs are /skin) and an old email > msg > ( http://www.mail-archive.com/user@forrest.apache.org/msg00993.html) I > tried to include a hunk of javascript in my 0.7 forrest XML file: > > <!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN" > "http://forrest.apache.org/dtd/document-v20.dtd"> > <document> > <header> > <title>Magick</title> > </header> > <body> > <section id="live"> > <title>Live from Chaosmagic.com</title> > > <xi:include src="/skin/chaosmagic.js"/> > </section> > > > </body> > </document> > > However, the error has to do with Forrest not knowing what > <xi:include> is: > > validate-xdocs: > /C:/Documents%20and%20Settings/Administrator/My% > 20Documents/domains/org/livingcosmos/dev/src/documentation/content/xdocs/magick.xml:11:46: > Element type "xi:include" must be declared. > /C:/Documents%20and%20Settings/Administrator/My% > 20Documents/domains/org/livingcosmos/dev/src/documentation/content/xdocs/magick.xml:11:46: > The prefix "xi" for element "xi:include" is not bound. >
well this says everything doesn't it? ;) Have a look at http://cocoon.apache.org/2.1/userdocs/xinclude-transformer.html and add xmlns:xi="http://www.w3.org/2001/XInclude" to the document tag like: <document xmlns:xi="http://www.w3.org/2001/XInclude"> HTH salu2 -- Thorsten Scherler COO Spain Wyona Inc. - Open Source Content Management - Apache Lenya http://www.wyona.com http://lenya.apache.org [EMAIL PROTECTED] [EMAIL PROTECTED]