On Sun, 7 Jul 2002, Ivelin Ivanov wrote:

>
> We could use some help from the XInclude/Cinclude experts for
> the problem Oliver is trying to solve.
>
>
> ----- Original Message -----
> From: "Andrew C. Oliver" <[EMAIL PROTECTED]>
> To: "cocoon users" <[EMAIL PROTECTED]>
> Sent: Sunday, July 07, 2002 12:17 PM
> Subject: Re: including dynamic data with XMLForm
>
>
> > Hi Ivelin,
> >
> > Thanks for your reply.
> >
> > This isn't quite quite working.  It seems to insist on resolving to a
> > file.
> >
> > ERROR   (2002-07-07) 09:08.29:743   [sitemap]
> > (/cocoon/samples/bringmethis/action/postrequest.html)
> > Thread-45/XIncludeTransformer: Error in processXIncludeElement
> > org.apache.cocoon.ResourceNotFoundException: Resource not found.:
> > org.apache.excalibur.source.SourceNotFoundException: Resource not found
> >
> file:/opt/tomcat/webapps/cocoon/samples/bringmethis/content/form/categories_
> combo.xml

If I unterstand you right, categories_combo.xml should be generated by the
sitemap. But XInclude transformer tries to read the file from the
filesystem.


> > My xinclude statement reads currently as follows:
> >
> >
> >
> >    <map:match pattern="action/categories_combo.xml">
> >     <map:generate src="content/dynamic/categories.xsp"
> > type="serverpages"/>
> >     <map:transform src="stylesheets/categories2combo.xsl"/>
> >     <map:serialize type="html"/>
> >    </map:match>
> >
> >
> > my xform page reads:
> >
> >         <xf:selectMany ref="/category" selectUIType="listbox">
> >             <xf:caption>Category</xf:caption>
> >             <xi:include
> > href="categories_combo.xml#xpointer(/xformcategories)"/>

I think you should use cocoon://categories_combo.xml instead, and
use the CInclude transformer.

> >             <xf:violations class="error"/>
> >         </xf:selectMany>
> >
> >
> > (this isn't exactly where I want it but I figured I'd move back if I got
> > it working).
> >
> > Note the pointer is because I need to have a root element to make the
> > document valid.  I'd rather not make my root element the selectMany.
> >
> > Thanks,
> >
> > Andy


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to