You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Ivelin Ivanov <iv...@apache.org> on 2002/07/07 20:35:33 UTC

XInclude/CInclude Issue (Re: including dynamic data with XMLForm)

We could use some help from the XInclude/Cinclude experts for
the problem Oliver is trying to solve.


----- Original Message -----
From: "Andrew C. Oliver" <ac...@apache.org>
To: "cocoon users" <co...@xml.apache.org>
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
>
> 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)"/>
>             <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
>
>
> On Sat, 2002-07-06 at 16:39, Ivelin Ivanov wrote:
> >
> > One option is to use the XInclude transformer.
> >
> > Say you have
> >
> > <xf:selectMany ref="/role" selectUIType='listbox'>
> >   <xf:caption>Professional roles</xf:caption>
> >
> >     <xf:item>
> >       <xf:caption>Geek</xf:caption>
> >       <xf:value>Geek</xf:value>
> >     </xf:item>
> >     <xf:item>
> >       <xf:caption>Hacker</xf:caption>
> >       <xf:value>Hacker</xf:value>
> >     </xf:item>
> >     ....
> >
> > </xf:selectMany>
> >
> >
> > Now you can replace the items section with an xinlude section.
> >
> >
> > <xf:selectMany ref="/role" selectUIType='listbox'>
> >
> >     <xi:include href="myresources/dynamicRolesList.xml"/>
> >
> > </xf:selectMany>
> >
> >
> > Where dynamicRolesList.xml can be any resolvable resource (not just an
xml
> > file).
> > You would probably use an internal sitemap resource to generate the xml
from
> > the db.
> >
> > The sitemap ordering is important. XIncludeTransformer has to come
before
> > the XMLFormTransformer.
> >
> > ...
> > <map:transform type="xinclude"/>
> > <map:transform type="xmlform"/>
> > ...
> >
> >
> >
> > If this satisfies your response, prefix your reply with SUMMARY, so that
the
> > doc team can include it in the FAQ.
> >
> >
> > Ivelin
> >
> > ----- Original Message -----
> > From: "Andrew C. Oliver" <ac...@apache.org>
> > To: "cocoon users" <co...@xml.apache.org>
> > Sent: Saturday, July 06, 2002 2:55 PM
> > Subject: including dynamic data with XMLForm
> >
> >
> > > Hi All,
> > >
> > > I'm trying to create a page where a multi-select list has options that
> > > are populated from a database.  What is not immediately clear to me is
> > > how I can create an XMLForm page where the list contents are
dynamically
> > > generated.  Any clues?
> > >
> > > -Andy
> > > --
> > > http://www.superlinksoftware.com - software solutions for business
> > > http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
> > > Java
> > > http://krysalis.sourceforge.net/centipede - the best build/project
> > > structure
> > >     a guy/gal could have! - Make Ant simple on complex Projects!
> > > The avalanche has already started. It is too late for the pebbles to
> > > vote.
> > > -Ambassador Kosh
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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:     <co...@xml.apache.org>
> > > For additional commands, e-mail:   <co...@xml.apache.org>
> > >
> >
> >
> > ---------------------------------------------------------------------
> > 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:     <co...@xml.apache.org>
> > For additional commands, e-mail:   <co...@xml.apache.org>
> >
> --
> http://www.superlinksoftware.com - software solutions for business
> http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
> Java
> http://krysalis.sourceforge.net/centipede - the best build/project
> structure
>     a guy/gal could have! - Make Ant simple on complex Projects!
> The avalanche has already started. It is too late for the pebbles to
> vote.
> -Ambassador Kosh
>
>
> ---------------------------------------------------------------------
> 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:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


[ANN] DateSelector in scratchpad

Posted by Bernhard Huber <be...@a1.net>.
Inspired by the xmas style example of the RT CocoonBlocks
discussion I implemented a DateSelector.
Any comments are welcome
bye bernhard

The docu taken from the java source:

   A Selector depending on current date, and time.

    This selector matches when a configured date is before, respectivly
    after the current date, and time.

    You may want to use this selector to make the pipeline behaviour time
    dependent.

    The configuration of DataSelector configures for a symbolic name
    a compare-mode, and a date-time value.

    The compare mode is specified by the element name before, or after.
    The date-time value is specified by the attribute date. The attribute
    dateformat specifies the dateformat of the date-time value. Time 
only values
    are relative to the current date. Optionally you specify a country, and
    a language attribute for specifying the locale used in the 
date-value parsing.
    Per default the default locale is used.

     The following configuration example, sets partition a day into four 
time
     areas, each spanning six hours, giving them symbolic names night, 
morning,
     afternoon, and evening.

    <map:components>
    ...
      <map:selectors default="browser">
      ...
        <map:selector type="date" 
src="org.apache.cocoon.selection.DateSelector">
          <before name="night" date="06:00:00" dateformat="HH:mm:ss"/>
          <before name="morning" date="12:00:00" dateformat="HH:mm:ss"/>
          <before name="afternoon" date="18:00:00" dateformat="HH:mm:ss"/>
          <before name="evening" date="23:59:59" dateformat="HH:mm:ss"/>
        </map:selector>
      ...
      </map:selectors>
    ...
    </map:components>

    The above date selector definition is used to control the behaviour of a
    pipeline processing depending on the current time of day.

    <map:pipelines>
      <map:pipeline>
      ...
        <map:match pattern="&asterik;&asterik;/resources/*.css">
        <map:select type="date">
          <map:when test="night">
            <!-- do something for night publishing -->
            <map:read src="resources/{2}-night.css" mime-type="text/css>
          </map:when>
          <map:when test="morning">
            <!-- do something for night publishing -->
            <map:read src="resources/{2}-morning.css" mime-type="text/css>
          </map:when>
          ...
          <map:otherwise>
            <!-- define for completness, and if selecting fails due to 
errors -->
          </map:otherwise>
        </map:select>
      </map:pipeline>
    </map:pipelines>



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: XInclude/CInclude Issue (Re: including dynamic data with XMLForm)

Posted by Michael Wechner <mi...@wyona.org>.
oh, I am sorry, I made another mistake, you can't use the cocoon 
protocol (or any) within the href. You have to do it as follows:

<xi:include 
href="/action/categories_combo.xml#xpointer(/xformcategories/*)" 
xml:base="cocoon:"/>

or for instance:

<xi:include xml:base="http://www.cmswatch.com" href="/RSS/cmswatch.xml"/>

I mixed that up because I am currently using my own XInclude Processor, 
where I can use the protocol within the href.
In the case of the Cocoon version you have to use xml:base.
If you do not use it, then it will always assume that you are looking 
for a file.
I never checked if that is because the W3C recommendation is saying that 
or for whatever reason.

All the best

Michael







Andrew C. Oliver wrote:

> Thanks but XInclude really likes files:
> 
> org.apache.cocoon.ResourceNotFoundException: Resource not found.:
> org.apache.excalibur.source.SourceNotFoundException: Resource not found
> file:/opt/tomcat/webapps/cocoon/samples/bringmethis/content/form/cocoon:/categories_combo.xml
> 
> 
> 
> On Mon, 2002-07-08 at 00:38, Michael Wechner wrote:
> 
>>><xi:include
>>>href="cocoon:/categories_combo.xml#xpointer(xformcategories/*)"
>>>parse="xml"/>
>>>
>>>Perhaps you forget the 'parse' attribute?
>>>
>>
>>
>>XInclude supports the cocoon protocol and XPointer. As I know CInclude
>>does not support XPointer (which you already said, sorry), which would 
>>mean you have to use XInclude. I don't think you need the parse 
>>attribute but rather fix the XInclude call:
>>
>><xi:include 
>>href="cocoon:/action/categories_combo.xml#xpointer(/xformcategories/*)"/>
>>
>>The other problem I think is why are you serializing 
>>categories_combo.xml as HTML instead of XML?
>>
>>
> 
> good point.  changed that. (it was so it was easy to debug when I wrote
> the stylesheet).
> 
> 
>>Hope I am not more confusing than I actually intend to help
>>
>>Michael
>>
>>
> 
> I appreciate it!
> 
> 
> 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:     <co...@xml.apache.org>
>>For additional commands, e-mail:   <co...@xml.apache.org>
>>



---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: XInclude/CInclude Issue (Re: including dynamic data with XMLForm)

Posted by "Andrew C. Oliver" <ac...@apache.org>.
Thanks but XInclude really likes files:

org.apache.cocoon.ResourceNotFoundException: Resource not found.:
org.apache.excalibur.source.SourceNotFoundException: Resource not found
file:/opt/tomcat/webapps/cocoon/samples/bringmethis/content/form/cocoon:/categories_combo.xml



On Mon, 2002-07-08 at 00:38, Michael Wechner wrote:
> 
> > 
> > <xi:include
> > href="cocoon:/categories_combo.xml#xpointer(xformcategories/*)"
> > parse="xml"/>
> > 
> > Perhaps you forget the 'parse' attribute?
> 
> 
> 
> XInclude supports the cocoon protocol and XPointer. As I know CInclude
> does not support XPointer (which you already said, sorry), which would 
> mean you have to use XInclude. I don't think you need the parse 
> attribute but rather fix the XInclude call:
> 
> <xi:include 
> href="cocoon:/action/categories_combo.xml#xpointer(/xformcategories/*)"/>
> 
> The other problem I think is why are you serializing 
> categories_combo.xml as HTML instead of XML?
> 

good point.  changed that. (it was so it was easy to debug when I wrote
the stylesheet).

> Hope I am not more confusing than I actually intend to help
> 
> Michael
> 

I appreciate it!


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:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
> 
-- 
http://www.superlinksoftware.com - software solutions for business
http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
Java                            
http://krysalis.sourceforge.net/centipede - the best build/project
structure
		    a guy/gal could have! - Make Ant simple on complex Projects!
The avalanche has already started. It is too late for the pebbles to
vote.
-Ambassador Kosh


---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: XInclude/CInclude Issue (Re: including dynamic data with XMLForm)

Posted by Michael Wechner <mi...@wyona.org>.
> 
> <xi:include
> href="cocoon:/categories_combo.xml#xpointer(xformcategories/*)"
> parse="xml"/>
> 
> Perhaps you forget the 'parse' attribute?



XInclude supports the cocoon protocol and XPointer. As I know CInclude
does not support XPointer (which you already said, sorry), which would 
mean you have to use XInclude. I don't think you need the parse 
attribute but rather fix the XInclude call:

<xi:include 
href="cocoon:/action/categories_combo.xml#xpointer(/xformcategories/*)"/>

The other problem I think is why are you serializing 
categories_combo.xml as HTML instead of XML?

Hope I am not more confusing than I actually intend to help

Michael



---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: (Carsten Ziegeler) Re: XInclude/CInclude Issue (Re: including dynamic data withXMLForm)

Posted by "Andrew C. Oliver" <ac...@apache.org>.
http://www.dictionary.com/search?q=seminary

(I was deliberately confusing it with seminary) ;-)

Matthew Langham wrote:

>Andy wrote:
>  
>
><joke> I'd go to a seminar too, but that oath of celebacy just sounded
>too harsh ;-) </joke>
><<
>
>Go on then - I'll take the bait:
>
>  
>
>http://www.dictionary.com/search?q=seminar
>
>2.) A meeting for an exchange of ideas; a conference
><<<
>
>
>Matthew
>
>
>
>Matthew Langham wrote:
>
>  
>
>>Andy wrote:
>>
>>
>>Ha!  Isn't Carsten Ziegler on Vacation?  He's the author IIRC.
>><<
>>
>>Carsten is away until Wednesday. Not on vacation (yet) - he's attending a
>>seminar.
>>
>>Matthew
>>
>>--
>>Open Source Group       Cocoon { Consulting, Training, Projects }
>>=================================================================
>>Matthew Langham, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
>>Tel:+49-5251-1581-30  mlangham@s-und-n.de - http://www.s-und-n.de
>>-----------------------------------------------------------------
>>Cocoon book:
>> http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20
>>=================================================================
>>
>>
>>
>>
>>-----Original Message-----
>>From: Andrew C. Oliver [mailto:acoliver@apache.org]
>>Sent: Monday, July 08, 2002 3:53 PM
>>To: cocoon-dev@xml.apache.org
>>Subject: (Carsten Ziegeler) Re: XInclude/CInclude Issue (Re: including
>>dynamic data withXMLForm)
>>
>>
>>
>>
>>    
>>
>>>Np.  I'm 1/4 cocoon-developer (I've submitted several patches including
>>>SQLTransformer, ESQL and of course the HSSFSerializer).  I just don't
>>>happen to fit in because I don't like Avalon too much.
>>>
>>>
>>>
>>>No offense intended ;)
>>>
>>>
>>>
>>>
>>>      
>>>
>>none taken.  Was merely clarifying.
>>
>>
>>
>>    
>>
>>>      
>>>
>>>>XInclude seemed insistent on real Files.  CInclude looked newer and
>>>>more....avalonistic (which cocoon developers seem to like).  So CInclude
>>>>started working for me immediately but was including too much.  XInclude
>>>>didn't work at all (kept trying to find a real file).
>>>>
>>>>I can probably merge the XInclude functionality into the CInclude
>>>>transformer and submit a patch for that if you like.
>>>>
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>I would certainly appreciate that. It seems like you're becoming the de
>>>facto maintainer for X/CInclude, since noone else is responding at this
>>>time.
>>>
>>>
>>>
>>>
>>>      
>>>
>>Ha!  Isn't Carsten Ziegler on Vacation?  He's the author IIRC.
>>
>>Cool, I'll do so.  If you could commit my patch that would help.
>>(Otherwise the next patch will be bigger and others
>>won't have a chance to test the basis).  What I did will still be
>>relevant, and I'd rather keep the two patches seperate.
>>
>>Thanks,
>>
>>Andy
>>
>>
>>
>>
>>    
>>
>>>Ivelin
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>      
>>>
>>>>-Andy
>>>>
>>>>
>>>>On Sun, 2002-07-07 at 23:46, Ivelin Ivanov wrote:
>>>>
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>>>Thanks for the patch Oliver. That's how active I like most cocoon-users
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>to
>>>
>>>
>>>
>>>
>>>      
>>>
>>>>>be like ;)
>>>>>
>>>>>BTW, I was under the impression that it was recently decided that we
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>will
>>>
>>>
>>>
>>>
>>>      
>>>
>>>>>merge XInclude and CInclude's code bases.
>>>>>Only XInclude would remain with the added ability to act on both
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>XInclude
>>>
>>>
>>>
>>>
>>>      
>>>
>>>>>and CInclude's namespaces.
>>>>>How did you decide to improve CInclude vs fixing XInclude.
>>>>>
>>>>>
>>>>>-=Ivelin
>>>>>
>>>>>
>>>>>----- Original Message -----
>>>>>From: "Andrew C. Oliver" <ac...@apache.org>
>>>>>To: "cocoon users" <co...@xml.apache.org>
>>>>>Cc: <co...@xml.apache.org>
>>>>>Sent: Sunday, July 07, 2002 8:43 PM
>>>>>Subject: Re: XInclude/CInclude Issue (Re: including dynamic data
>>>>>withXMLForm)
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>>>On Sun, 2002-07-07 at 20:51, Ivelin Ivanov wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>>>>>>>I'm sure there must be a more elegant way to solve the problem.
>>>>>>>We just need to wait a bit to hear from the XInclude developers.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>              
>>>>>>>
>>>>>>Down low, too slow.  Patch incoming.  New syntax implemented for
>>>>>>CInclude to allow xpointers.  Will need help testing as my CInclude
>>>>>>experience includes about 1 entire day of goofing with the sucker.
>>>>>>
>>>>>>http://nagoya.apache.org/bugzilla/createattachment.cgi?id=10540
>>>>>>
>>>>>>I added a "select" attribute to CInclude that supports the XPointer
>>>>>>syntax without the XPointer() part (just what would go between the
>>>>>>()'s).  (This is cleaner than the #XPointer() url-suffix nastiness).
>>>>>>
>>>>>>Hopefully, one of the CInclude geniuses will take a look at this and
>>>>>>make it better.  I was baffled by the tall inheritance tree.  Mostly I
>>>>>>borrowed the code from XInclude and made it look more like CInclude
>>>>>>without actually understanding Avalon.
>>>>>>
>>>>>>Anyhow, if someone will kindly apply this or an even better version
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>>>then
>>>
>>>
>>>
>>>
>>>      
>>>
>>>>>>my issue will be satisfied and probably others who might want to
>>>>>>populate HTML lists, selects, etc in XMLForm webapps.  Plus it will
>>>>>>solve the hole in between XInclude and CInclude.
>>>>>>
>>>>>>(anything in this email that sounds arrogant is actually a whole
>>>>>>day/weekend of frustration suddenly alleviated -- exuberance)
>>>>>>
>>>>>>Thanks,
>>>>>>
>>>>>>-Andy
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>>>>>>>----- Original Message -----
>>>>>>>From: "Andrew C. Oliver" <ac...@apache.org>
>>>>>>>To: "cocoon users" <co...@xml.apache.org>
>>>>>>>Sent: Sunday, July 07, 2002 7:01 PM
>>>>>>>Subject: Re: XInclude/CInclude Issue (Re: including dynamic data
>>>>>>>withXMLForm)
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>              
>>>>>>>
>>>>>>>><xi:include
>>>>>>>>href="cocoon:/categories_combo.xml#xpointer(xformcategories/*)"
>>>>>>>>parse="xml"/>
>>>>>>>>
>>>>>>>>does this for me:
>>>>>>>>
>>>>>>>>org.apache.cocoon.ResourceNotFoundException: Resource not found.:
>>>>>>>>org.apache.excalibur.source.SourceNotFoundException: Resource not
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>                
>>>>>>>>
>>>>>found
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>file:/opt/tomcat/webapps/cocoon/samples/bringmethis/content/form/cocoon:/c
>>>      
>>>
>a
>  
>
>>>      
>>>
>>t
>>
>>
>>    
>>
>>>      
>>>
>>>>>>>egories_combo.xml
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>              
>>>>>>>
>>>>>>>>So it looks like I'm stuck with an additional transformation.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>                
>>>>>>>>
>>>Which
>>>
>>>
>>>
>>>
>>>      
>>>
>>>>>(as
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>>>>>a situation) bites.
>>>>>>>>
>>>>>>>>-Andy
>>>>>>>>
>>>>>>>>
>>>>>>>>On Sun, 2002-07-07 at 17:23, Stephan Michels wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>                
>>>>>>>>
>>>>>>>>>On 7 Jul 2002, Andrew C. Oliver wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                  
>>>>>>>>>
>>>>>>>>>>Hi,
>>>>>>>>>>
>>>>>>>>>>Thanks for your reply.  This is very close to what I want.
>>>>>>>>>>So I'm almost there, but I have to have a root element on the
>>>>>>>>>>categories_combo.xml "page".  Its <xmlformcategories>.  I only
>>>>>>>>>>want whats in between the root element.  CInclude appears to
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                    
>>>>>>>>>>
>>>not
>>>
>>>
>>>
>>>
>>>      
>>>
>>>>>>>>>>support the xpointer as it was trying to treat it as part of
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                    
>>>>>>>>>>
>>>the
>>>
>>>
>>>
>>>
>>>      
>>>
>>>>>URL.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>>>>>>>I'd hoped that the "element" attribute of the
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                    
>>>>>>>>>>
>>><cinclude:include>
>>>
>>>
>>>
>>>
>>>      
>>>
>>>>>tag
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>>>>>>>would allow this, but it actually seems to be for doing the
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                    
>>>>>>>>>>
>>>>>opposite.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>>>>>>>I suppose I can apply an additional layer of transformation
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                    
>>>>>>>>>>
>>>that
>>>
>>>
>>>
>>>
>>>      
>>>
>>>>>takes
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>>>>>>>the output, includes everything but the <xformcategories> and
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                    
>>>>>>>>>>
>>>then
>>>
>>>
>>>
>>>
>>>      
>>>
>>>>>>>>>>includes its children, but that is very inefficient and kinda
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                    
>>>>>>>>>>
>>>of a
>>>
>>>
>>>
>>>
>>>      
>>>
>>>>>>>pain,
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>              
>>>>>>>
>>>>>>>>>>etc.
>>>>>>>>>>
>>>>>>>>>>Is there a more straightforward way to take only the children
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                    
>>>>>>>>>>
>>>of
>>>
>>>
>>>
>>>
>>>      
>>>
>>>>>the
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>>>>>>>xmformcategories, include them without including the
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                    
>>>>>>>>>>
>>>>>xmlformcategories
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>>>>>>>tag?
>>>>>>>>>>
>>>>>>>>>>basically
>>>>>>>>>>
>>>>>>>>>><cinclude:include src="cocoon:/categories_combo.xml"
>>>>>>>>>>select="xformcategories/*"/>
>>>>>>>>>>
>>>>>>>>>>or something to that effect
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                    
>>>>>>>>>>
>>>>>>>>>And whats the result of
>>>>>>>>>
>>>>>>>>><xi:include
>>>>>>>>>href="cocoon:/categories_combo.xml#xpointer(xformcategories/*)"
>>>>>>>>>parse="xml"/>
>>>>>>>>>
>>>>>>>>>Perhaps you forget the 'parse' attribute?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                  
>>>>>>>>>
>>>>>>>>>>source of requestform.xml:
>>>>>>>>>>
>>>>>>>>>><?xml version="1.0"?>
>>>>>>>>>>
>>>>>>>>>>  <document
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                    
>>>>>>>>>>
>>>xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002"
>>>
>>>
>>>
>>>
>>>      
>>>
>>>>>xmlns:cinclude="http://apache.org/cocoon/include/1.0">
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>>>>>>>    <xf:form id="request-form" view="requestform"
>>>>>>>>>>action="postrequest.html">
>>>>>>>>>>
>>>>>>>>>>      <error>
>>>>>>>>>>        <xf:violations class="error"/>
>>>>>>>>>>      </error>
>>>>>>>>>>
>>>>>>>>>>      <xf:selectMany ref="/category" selectUIType="listbox">
>>>>>>>>>>          <xf:caption>Category</xf:caption>
>>>>>>>>>>          <cinclude:include
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                    
>>>>>>>>>>
>>>src="cocoon:/categories_combo.xml"
>>>
>>>
>>>
>>>
>>>      
>>>
>>>>>/>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>>>>>>>          <xf:violations class="error"/>
>>>>>>>>>>      </xf:selectMany>
>>>>>>>>>>
>>>>>>>>>>      <xf:textbox ref="/title">
>>>>>>>>>>          <xf:caption>Title/Item Name (no HTML)</xf:caption>
>>>>>>>>>>          <xf:violations class="error"/>
>>>>>>>>>>      </xf:textbox>
>>>>>>>>>>
>>>>>>>>>>.... snip ....
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>      <xf:textbox ref="/password">
>>>>>>>>>>          <xf:caption>Password</xf:caption>
>>>>>>>>>>          <xf:violations class="error"/>
>>>>>>>>>>      </xf:textbox>
>>>>>>>>>>
>>>>>>>>>>      <xf:submit id="next" class="button">
>>>>>>>>>>        <xf:caption>Next</xf:caption>
>>>>>>>>>>      </xf:submit>
>>>>>>>>>>
>>>>>>>>>>    </xf:form>
>>>>>>>>>>
>>>>>>>>>>  </document>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>output from categories_combo.xml:
>>>>>>>>>>
>>>>>>>>>><xformcategories
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                    
>>>>>>>>>>
>>>>>xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002">
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>>>>>>><xf:item>
>>>>>>>>>>
>>>>>>>>>><xf:caption>Original Art</xf:caption>
>>>>>>>>>><xf:value>16</xf:value>
>>>>>>>>>></xf:item>
>>>>>>>>>><xf:item>
>>>>>>>>>><xf:caption>Antiques</xf:caption>
>>>>>>>>>><xf:value>0</xf:value>
>>>>>>>>>></xf:item>
>>>>>>>>>><xf:item>
>>>>>>>>>><xf:caption>Books</xf:caption>
>>>>>>>>>><xf:value>1</xf:value>
>>>>>>>>>></xf:item>
>>>>>>>>>>
>>>>>>>>>><xf:item>
>>>>>>>>>><xf:caption>Cars</xf:caption>
>>>>>>>>>><xf:value>2</xf:value>
>>>>>>>>>></xf:item>
>>>>>>>>>><xf:item>
>>>>>>>>>><xf:caption>Collectibles</xf:caption>
>>>>>>>>>><xf:value>3</xf:value>
>>>>>>>>>></xf:item>
>>>>>>>>>><xf:item>
>>>>>>>>>><xf:caption>Comics</xf:caption>
>>>>>>>>>><xf:value>4</xf:value>
>>>>>>>>>>
>>>>>>>>>></xf:item>
>>>>>>>>>><xf:item>
>>>>>>>>>><xf:caption>Computers</xf:caption>
>>>>>>>>>><xf:value>5</xf:value>
>>>>>>>>>></xf:item>
>>>>>>>>>><xf:item>
>>>>>>>>>><xf:caption>Crafts</xf:caption>
>>>>>>>>>><xf:value>6</xf:value>
>>>>>>>>>></xf:item>
>>>>>>>>>><xf:item>
>>>>>>>>>><xf:caption>Electronics</xf:caption>
>>>>>>>>>><xf:value>7</xf:value>
>>>>>>>>>>
>>>>>>>>>></xf:item>
>>>>>>>>>><xf:item>
>>>>>>>>>><xf:caption>Gifts</xf:caption>
>>>>>>>>>><xf:value>8</xf:value>
>>>>>>>>>></xf:item>
>>>>>>>>>><xf:item>
>>>>>>>>>><xf:caption>Loans</xf:caption>
>>>>>>>>>><xf:value>9</xf:value>
>>>>>>>>>></xf:item>
>>>>>>>>>><xf:item>
>>>>>>>>>><xf:caption>Music</xf:caption>
>>>>>>>>>><xf:value>10</xf:value>
>>>>>>>>>>
>>>>>>>>>></xf:item>
>>>>>>>>>><xf:item>
>>>>>>>>>><xf:caption>Office Supplies</xf:caption>
>>>>>>>>>><xf:value>11</xf:value>
>>>>>>>>>></xf:item>
>>>>>>>>>><xf:item>
>>>>>>>>>><xf:caption>Other</xf:caption>
>>>>>>>>>><xf:value>12</xf:value>
>>>>>>>>>></xf:item>
>>>>>>>>>><xf:item>
>>>>>>>>>><xf:caption>Toys</xf:caption>
>>>>>>>>>><xf:value>13</xf:value>
>>>>>>>>>>
>>>>>>>>>></xf:item>
>>>>>>>>>><xf:item>
>>>>>>>>>><xf:caption>Travel</xf:caption>
>>>>>>>>>><xf:value>14</xf:value>
>>>>>>>>>></xf:item>
>>>>>>>>>><xf:item>
>>>>>>>>>><xf:caption>Videos</xf:caption>
>>>>>>>>>><xf:value>15</xf:value>
>>>>>>>>>></xf:item>
>>>>>>>>>></xformcategories>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>-Andy
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>On Sun, 2002-07-07 at 14:59, Stephan Michels wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                    
>>>>>>>>>>
>>>>>>>>>>>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" <ac...@apache.org>
>>>>>>>>>>>>To: "cocoon users" <co...@xml.apache.org>
>>>>>>>>>>>>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/categorie
>>>      
>>>
>s
>  
>
>>>      
>>>
>>_
>>
>>
>>    
>>
>>>      
>>>
>>>>>>>>>>>>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:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>                      
>>>>>>>>>>>
>>>>>>><co...@xml.apache.org>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>              
>>>>>>>
>>>>>>>>>>>For additional commands, e-mail:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>                      
>>>>>>>>>>>
>>>>>>><co...@xml.apache.org>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>              
>>>>>>>
>>>>>>>>>>--
>>>>>>>>>>http://www.superlinksoftware.com - software solutions for
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                    
>>>>>>>>>>
>>>business
>>>
>>>
>>>
>>>
>>>      
>>>
>>>>>>>>>>http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                    
>>>>>>>>>>
>>>Document
>>>
>>>
>>>
>>>
>>>      
>>>
>>>>>in
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>>>>>>>Java
>>>>>>>>>>http://krysalis.sourceforge.net/centipede - the best
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                    
>>>>>>>>>>
>>>build/project
>>>
>>>
>>>
>>>
>>>      
>>>
>>>>>>>>>>structure
>>>>>>>>>>  a guy/gal could have! - Make Ant simple on complex
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                    
>>>>>>>>>>
>>>Projects!
>>>
>>>
>>>
>>>
>>>      
>>>
>>>>>>>>>>The avalanche has already started. It is too late for the
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                    
>>>>>>>>>>
>>>pebbles
>>>
>>>
>>>
>>>
>>>      
>>>
>>>>>to
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>>>>>>>vote.
>>>>>>>>>>-Ambassador Kosh
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                    
>>>>>>>>>>
>>>>>>---------------------------------------------------------------------
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>>>>>>>>>>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:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                    
>>>>>>>>>>
>>>>><co...@xml.apache.org>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>>>>>>>For additional commands, e-mail:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                    
>>>>>>>>>>
>>>>><co...@xml.apache.org>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>>>>>>                  
>>>>>>>>>
>>>>>>---------------------------------------------------------------------
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>>>>>>>>>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:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                  
>>>>>>>>>
>>>>><co...@xml.apache.org>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>>>>>>For additional commands, e-mail:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                  
>>>>>>>>>
>>>>><co...@xml.apache.org>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>>>>>--
>>>>>>>>http://www.superlinksoftware.com - software solutions for business
>>>>>>>>http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>                
>>>>>>>>
>>>in
>>>
>>>
>>>
>>>
>>>      
>>>
>>>>>>>>Java
>>>>>>>>http://krysalis.sourceforge.net/centipede - the best build/project
>>>>>>>>structure
>>>>>>>>  a guy/gal could have! - Make Ant simple on complex Projects!
>>>>>>>>The avalanche has already started. It is too late for the pebbles
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>                
>>>>>>>>
>>>to
>>>
>>>
>>>
>>>
>>>      
>>>
>>>>>>>>vote.
>>>>>>>>-Ambassador Kosh
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>                
>>>>>>>>
>>>>---------------------------------------------------------------------
>>>>
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>>>>>>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:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>                
>>>>>>>>
>>><co...@xml.apache.org>
>>>
>>>
>>>
>>>
>>>      
>>>
>>>>>>>>For additional commands, e-mail:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>                
>>>>>>>>
>>><co...@xml.apache.org>
>>>
>>>
>>>
>>>
>>>      
>>>
>>>>>>>              
>>>>>>>
>>>>---------------------------------------------------------------------
>>>>
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>>>>>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:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>              
>>>>>>>
>>><co...@xml.apache.org>
>>>
>>>
>>>
>>>
>>>      
>>>
>>>>>>>For additional commands, e-mail:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>              
>>>>>>>
>>><co...@xml.apache.org>
>>>
>>>
>>>
>>>
>>>      
>>>
>>>>>>--
>>>>>>http://www.superlinksoftware.com - software solutions for business
>>>>>>http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
>>>>>>Java
>>>>>>http://krysalis.sourceforge.net/centipede - the best build/project
>>>>>>structure
>>>>>>  a guy/gal could have! - Make Ant simple on complex Projects!
>>>>>>The avalanche has already started. It is too late for the pebbles to
>>>>>>vote.
>>>>>>-Ambassador Kosh
>>>>>>
>>>>>>
>>>>>>---------------------------------------------------------------------
>>>>>>To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
>>>>>>For additional commands, email: cocoon-dev-help@xml.apache.org
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>>>>>---------------------------------------------------------------------
>>>>>To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
>>>>>For additional commands, email: cocoon-dev-help@xml.apache.org
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>--
>>>>http://www.superlinksoftware.com - software solutions for business
>>>>http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
>>>>Java
>>>>http://krysalis.sourceforge.net/centipede - the best build/project
>>>>structure
>>>>  a guy/gal could have! - Make Ant simple on complex Projects!
>>>>The avalanche has already started. It is too late for the pebbles to
>>>>vote.
>>>>-Ambassador Kosh
>>>>
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
>>>>For additional commands, email: cocoon-dev-help@xml.apache.org
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
>>>For additional commands, email: cocoon-dev-help@xml.apache.org
>>>
>>>
>>>
>>>
>>>
>>>
>>>      
>>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
>>For additional commands, email: cocoon-dev-help@xml.apache.org
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
>>For additional commands, email: cocoon-dev-help@xml.apache.org
>>
>>
>>
>>
>>    
>>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
>For additional commands, email: cocoon-dev-help@xml.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
>For additional commands, email: cocoon-dev-help@xml.apache.org
>
>
>  
>




---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


RE: (Carsten Ziegeler) Re: XInclude/CInclude Issue (Re: including dynamic data withXMLForm)

Posted by Matthew Langham <ml...@s-und-n.de>.
Andy wrote:
>>
<joke> I'd go to a seminar too, but that oath of celebacy just sounded
too harsh ;-) </joke>
<<

Go on then - I'll take the bait:

>>>
http://www.dictionary.com/search?q=seminar

2.) A meeting for an exchange of ideas; a conference
<<<


Matthew



Matthew Langham wrote:

>Andy wrote:
>
>
>Ha!  Isn't Carsten Ziegler on Vacation?  He's the author IIRC.
><<
>
>Carsten is away until Wednesday. Not on vacation (yet) - he's attending a
>seminar.
>
>Matthew
>
>--
>Open Source Group       Cocoon { Consulting, Training, Projects }
>=================================================================
>Matthew Langham, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
>Tel:+49-5251-1581-30  mlangham@s-und-n.de - http://www.s-und-n.de
>-----------------------------------------------------------------
>Cocoon book:
>  http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20
>=================================================================
>
>
>
>
>-----Original Message-----
>From: Andrew C. Oliver [mailto:acoliver@apache.org]
>Sent: Monday, July 08, 2002 3:53 PM
>To: cocoon-dev@xml.apache.org
>Subject: (Carsten Ziegeler) Re: XInclude/CInclude Issue (Re: including
>dynamic data withXMLForm)
>
>
>
>
>>Np.  I'm 1/4 cocoon-developer (I've submitted several patches including
>>SQLTransformer, ESQL and of course the HSSFSerializer).  I just don't
>>happen to fit in because I don't like Avalon too much.
>>
>>
>>
>>No offense intended ;)
>>
>>
>>
>>
>none taken.  Was merely clarifying.
>
>
>
>>
>>
>>>XInclude seemed insistent on real Files.  CInclude looked newer and
>>>more....avalonistic (which cocoon developers seem to like).  So CInclude
>>>started working for me immediately but was including too much.  XInclude
>>>didn't work at all (kept trying to find a real file).
>>>
>>>I can probably merge the XInclude functionality into the CInclude
>>>transformer and submit a patch for that if you like.
>>>
>>>
>>>
>>>
>>I would certainly appreciate that. It seems like you're becoming the de
>>facto maintainer for X/CInclude, since noone else is responding at this
>>time.
>>
>>
>>
>>
>Ha!  Isn't Carsten Ziegler on Vacation?  He's the author IIRC.
>
>Cool, I'll do so.  If you could commit my patch that would help.
> (Otherwise the next patch will be bigger and others
>won't have a chance to test the basis).  What I did will still be
>relevant, and I'd rather keep the two patches seperate.
>
>Thanks,
>
>Andy
>
>
>
>
>>Ivelin
>>
>>
>>
>>
>>
>>
>>
>>>-Andy
>>>
>>>
>>>On Sun, 2002-07-07 at 23:46, Ivelin Ivanov wrote:
>>>
>>>
>>>
>>>
>>>>Thanks for the patch Oliver. That's how active I like most cocoon-users
>>>>
>>>>
>>>>
>>>>
>>to
>>
>>
>>
>>
>>>>be like ;)
>>>>
>>>>BTW, I was under the impression that it was recently decided that we
>>>>
>>>>
>>>>
>>>>
>>will
>>
>>
>>
>>
>>>>merge XInclude and CInclude's code bases.
>>>>Only XInclude would remain with the added ability to act on both
>>>>
>>>>
>>>>
>>>>
>>XInclude
>>
>>
>>
>>
>>>>and CInclude's namespaces.
>>>>How did you decide to improve CInclude vs fixing XInclude.
>>>>
>>>>
>>>>-=Ivelin
>>>>
>>>>
>>>>----- Original Message -----
>>>>From: "Andrew C. Oliver" <ac...@apache.org>
>>>>To: "cocoon users" <co...@xml.apache.org>
>>>>Cc: <co...@xml.apache.org>
>>>>Sent: Sunday, July 07, 2002 8:43 PM
>>>>Subject: Re: XInclude/CInclude Issue (Re: including dynamic data
>>>>withXMLForm)
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>>On Sun, 2002-07-07 at 20:51, Ivelin Ivanov wrote:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>I'm sure there must be a more elegant way to solve the problem.
>>>>>>We just need to wait a bit to hear from the XInclude developers.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>Down low, too slow.  Patch incoming.  New syntax implemented for
>>>>>CInclude to allow xpointers.  Will need help testing as my CInclude
>>>>>experience includes about 1 entire day of goofing with the sucker.
>>>>>
>>>>>http://nagoya.apache.org/bugzilla/createattachment.cgi?id=10540
>>>>>
>>>>>I added a "select" attribute to CInclude that supports the XPointer
>>>>>syntax without the XPointer() part (just what would go between the
>>>>>()'s).  (This is cleaner than the #XPointer() url-suffix nastiness).
>>>>>
>>>>>Hopefully, one of the CInclude geniuses will take a look at this and
>>>>>make it better.  I was baffled by the tall inheritance tree.  Mostly I
>>>>>borrowed the code from XInclude and made it look more like CInclude
>>>>>without actually understanding Avalon.
>>>>>
>>>>>Anyhow, if someone will kindly apply this or an even better version
>>>>>
>>>>>
>>>>>
>>>>>
>>then
>>
>>
>>
>>
>>>>>my issue will be satisfied and probably others who might want to
>>>>>populate HTML lists, selects, etc in XMLForm webapps.  Plus it will
>>>>>solve the hole in between XInclude and CInclude.
>>>>>
>>>>>(anything in this email that sounds arrogant is actually a whole
>>>>>day/weekend of frustration suddenly alleviated -- exuberance)
>>>>>
>>>>>Thanks,
>>>>>
>>>>>-Andy
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>----- Original Message -----
>>>>>>From: "Andrew C. Oliver" <ac...@apache.org>
>>>>>>To: "cocoon users" <co...@xml.apache.org>
>>>>>>Sent: Sunday, July 07, 2002 7:01 PM
>>>>>>Subject: Re: XInclude/CInclude Issue (Re: including dynamic data
>>>>>>withXMLForm)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>><xi:include
>>>>>>>href="cocoon:/categories_combo.xml#xpointer(xformcategories/*)"
>>>>>>>parse="xml"/>
>>>>>>>
>>>>>>>does this for me:
>>>>>>>
>>>>>>>org.apache.cocoon.ResourceNotFoundException: Resource not found.:
>>>>>>>org.apache.excalibur.source.SourceNotFoundException: Resource not
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>found
>>>>
>>>>
>>>>
>>>>
>>file:/opt/tomcat/webapps/cocoon/samples/bringmethis/content/form/cocoon:/c
a
>>
>>
>t
>
>
>>
>>
>>>>>>egories_combo.xml
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>>So it looks like I'm stuck with an additional transformation.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>Which
>>
>>
>>
>>
>>>>(as
>>>>
>>>>
>>>>
>>>>
>>>>>>>a situation) bites.
>>>>>>>
>>>>>>>-Andy
>>>>>>>
>>>>>>>
>>>>>>>On Sun, 2002-07-07 at 17:23, Stephan Michels wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>On 7 Jul 2002, Andrew C. Oliver wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>>Hi,
>>>>>>>>>
>>>>>>>>>Thanks for your reply.  This is very close to what I want.
>>>>>>>>>So I'm almost there, but I have to have a root element on the
>>>>>>>>>categories_combo.xml "page".  Its <xmlformcategories>.  I only
>>>>>>>>>want whats in between the root element.  CInclude appears to
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>not
>>
>>
>>
>>
>>>>>>>>>support the xpointer as it was trying to treat it as part of
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>the
>>
>>
>>
>>
>>>>URL.
>>>>
>>>>
>>>>
>>>>
>>>>>>>>>I'd hoped that the "element" attribute of the
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>><cinclude:include>
>>
>>
>>
>>
>>>>tag
>>>>
>>>>
>>>>
>>>>
>>>>>>>>>would allow this, but it actually seems to be for doing the
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>opposite.
>>>>
>>>>
>>>>
>>>>
>>>>>>>>>I suppose I can apply an additional layer of transformation
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>that
>>
>>
>>
>>
>>>>takes
>>>>
>>>>
>>>>
>>>>
>>>>>>>>>the output, includes everything but the <xformcategories> and
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>then
>>
>>
>>
>>
>>>>>>>>>includes its children, but that is very inefficient and kinda
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>of a
>>
>>
>>
>>
>>>>>>pain,
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>>>>etc.
>>>>>>>>>
>>>>>>>>>Is there a more straightforward way to take only the children
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>of
>>
>>
>>
>>
>>>>the
>>>>
>>>>
>>>>
>>>>
>>>>>>>>>xmformcategories, include them without including the
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>xmlformcategories
>>>>
>>>>
>>>>
>>>>
>>>>>>>>>tag?
>>>>>>>>>
>>>>>>>>>basically
>>>>>>>>>
>>>>>>>>><cinclude:include src="cocoon:/categories_combo.xml"
>>>>>>>>>select="xformcategories/*"/>
>>>>>>>>>
>>>>>>>>>or something to that effect
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>And whats the result of
>>>>>>>>
>>>>>>>><xi:include
>>>>>>>>href="cocoon:/categories_combo.xml#xpointer(xformcategories/*)"
>>>>>>>>parse="xml"/>
>>>>>>>>
>>>>>>>>Perhaps you forget the 'parse' attribute?
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>>source of requestform.xml:
>>>>>>>>>
>>>>>>>>><?xml version="1.0"?>
>>>>>>>>>
>>>>>>>>>   <document
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002"
>>
>>
>>
>>
>>>>xmlns:cinclude="http://apache.org/cocoon/include/1.0">
>>>>
>>>>
>>>>
>>>>
>>>>>>>>>     <xf:form id="request-form" view="requestform"
>>>>>>>>>action="postrequest.html">
>>>>>>>>>
>>>>>>>>>       <error>
>>>>>>>>>         <xf:violations class="error"/>
>>>>>>>>>       </error>
>>>>>>>>>
>>>>>>>>>       <xf:selectMany ref="/category" selectUIType="listbox">
>>>>>>>>>           <xf:caption>Category</xf:caption>
>>>>>>>>>           <cinclude:include
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>src="cocoon:/categories_combo.xml"
>>
>>
>>
>>
>>>>/>
>>>>
>>>>
>>>>
>>>>
>>>>>>>>>           <xf:violations class="error"/>
>>>>>>>>>       </xf:selectMany>
>>>>>>>>>
>>>>>>>>>       <xf:textbox ref="/title">
>>>>>>>>>           <xf:caption>Title/Item Name (no HTML)</xf:caption>
>>>>>>>>>           <xf:violations class="error"/>
>>>>>>>>>       </xf:textbox>
>>>>>>>>>
>>>>>>>>>.... snip ....
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>       <xf:textbox ref="/password">
>>>>>>>>>           <xf:caption>Password</xf:caption>
>>>>>>>>>           <xf:violations class="error"/>
>>>>>>>>>       </xf:textbox>
>>>>>>>>>
>>>>>>>>>       <xf:submit id="next" class="button">
>>>>>>>>>         <xf:caption>Next</xf:caption>
>>>>>>>>>       </xf:submit>
>>>>>>>>>
>>>>>>>>>     </xf:form>
>>>>>>>>>
>>>>>>>>>   </document>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>output from categories_combo.xml:
>>>>>>>>>
>>>>>>>>><xformcategories
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002">
>>>>
>>>>
>>>>
>>>>
>>>>>>>>><xf:item>
>>>>>>>>>
>>>>>>>>><xf:caption>Original Art</xf:caption>
>>>>>>>>><xf:value>16</xf:value>
>>>>>>>>></xf:item>
>>>>>>>>><xf:item>
>>>>>>>>><xf:caption>Antiques</xf:caption>
>>>>>>>>><xf:value>0</xf:value>
>>>>>>>>></xf:item>
>>>>>>>>><xf:item>
>>>>>>>>><xf:caption>Books</xf:caption>
>>>>>>>>><xf:value>1</xf:value>
>>>>>>>>></xf:item>
>>>>>>>>>
>>>>>>>>><xf:item>
>>>>>>>>><xf:caption>Cars</xf:caption>
>>>>>>>>><xf:value>2</xf:value>
>>>>>>>>></xf:item>
>>>>>>>>><xf:item>
>>>>>>>>><xf:caption>Collectibles</xf:caption>
>>>>>>>>><xf:value>3</xf:value>
>>>>>>>>></xf:item>
>>>>>>>>><xf:item>
>>>>>>>>><xf:caption>Comics</xf:caption>
>>>>>>>>><xf:value>4</xf:value>
>>>>>>>>>
>>>>>>>>></xf:item>
>>>>>>>>><xf:item>
>>>>>>>>><xf:caption>Computers</xf:caption>
>>>>>>>>><xf:value>5</xf:value>
>>>>>>>>></xf:item>
>>>>>>>>><xf:item>
>>>>>>>>><xf:caption>Crafts</xf:caption>
>>>>>>>>><xf:value>6</xf:value>
>>>>>>>>></xf:item>
>>>>>>>>><xf:item>
>>>>>>>>><xf:caption>Electronics</xf:caption>
>>>>>>>>><xf:value>7</xf:value>
>>>>>>>>>
>>>>>>>>></xf:item>
>>>>>>>>><xf:item>
>>>>>>>>><xf:caption>Gifts</xf:caption>
>>>>>>>>><xf:value>8</xf:value>
>>>>>>>>></xf:item>
>>>>>>>>><xf:item>
>>>>>>>>><xf:caption>Loans</xf:caption>
>>>>>>>>><xf:value>9</xf:value>
>>>>>>>>></xf:item>
>>>>>>>>><xf:item>
>>>>>>>>><xf:caption>Music</xf:caption>
>>>>>>>>><xf:value>10</xf:value>
>>>>>>>>>
>>>>>>>>></xf:item>
>>>>>>>>><xf:item>
>>>>>>>>><xf:caption>Office Supplies</xf:caption>
>>>>>>>>><xf:value>11</xf:value>
>>>>>>>>></xf:item>
>>>>>>>>><xf:item>
>>>>>>>>><xf:caption>Other</xf:caption>
>>>>>>>>><xf:value>12</xf:value>
>>>>>>>>></xf:item>
>>>>>>>>><xf:item>
>>>>>>>>><xf:caption>Toys</xf:caption>
>>>>>>>>><xf:value>13</xf:value>
>>>>>>>>>
>>>>>>>>></xf:item>
>>>>>>>>><xf:item>
>>>>>>>>><xf:caption>Travel</xf:caption>
>>>>>>>>><xf:value>14</xf:value>
>>>>>>>>></xf:item>
>>>>>>>>><xf:item>
>>>>>>>>><xf:caption>Videos</xf:caption>
>>>>>>>>><xf:value>15</xf:value>
>>>>>>>>></xf:item>
>>>>>>>>></xformcategories>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>-Andy
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>On Sun, 2002-07-07 at 14:59, Stephan Michels wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>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" <ac...@apache.org>
>>>>>>>>>>>To: "cocoon users" <co...@xml.apache.org>
>>>>>>>>>>>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/categorie
s
>>
>>
>_
>
>
>>
>>
>>>>>>>>>>>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:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>><co...@xml.apache.org>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>>>>>For additional commands, e-mail:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>><co...@xml.apache.org>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>>>>--
>>>>>>>>>http://www.superlinksoftware.com - software solutions for
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>business
>>
>>
>>
>>
>>>>>>>>>http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>Document
>>
>>
>>
>>
>>>>in
>>>>
>>>>
>>>>
>>>>
>>>>>>>>>Java
>>>>>>>>>http://krysalis.sourceforge.net/centipede - the best
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>build/project
>>
>>
>>
>>
>>>>>>>>>structure
>>>>>>>>>   a guy/gal could have! - Make Ant simple on complex
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>Projects!
>>
>>
>>
>>
>>>>>>>>>The avalanche has already started. It is too late for the
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>pebbles
>>
>>
>>
>>
>>>>to
>>>>
>>>>
>>>>
>>>>
>>>>>>>>>vote.
>>>>>>>>>-Ambassador Kosh
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>---------------------------------------------------------------------
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>>>>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:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>><co...@xml.apache.org>
>>>>
>>>>
>>>>
>>>>
>>>>>>>>>For additional commands, e-mail:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>><co...@xml.apache.org>
>>>>
>>>>
>>>>
>>>>
>>>>>>>>
>>>>>>>>
>>>>>---------------------------------------------------------------------
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>>>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:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>><co...@xml.apache.org>
>>>>
>>>>
>>>>
>>>>
>>>>>>>>For additional commands, e-mail:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>><co...@xml.apache.org>
>>>>
>>>>
>>>>
>>>>
>>>>>>>--
>>>>>>>http://www.superlinksoftware.com - software solutions for business
>>>>>>>http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>in
>>
>>
>>
>>
>>>>>>>Java
>>>>>>>http://krysalis.sourceforge.net/centipede - the best build/project
>>>>>>>structure
>>>>>>>   a guy/gal could have! - Make Ant simple on complex Projects!
>>>>>>>The avalanche has already started. It is too late for the pebbles
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>to
>>
>>
>>
>>
>>>>>>>vote.
>>>>>>>-Ambassador Kosh
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>---------------------------------------------------------------------
>>>
>>>
>>>
>>>
>>>>>>>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:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>><co...@xml.apache.org>
>>
>>
>>
>>
>>>>>>>For additional commands, e-mail:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>><co...@xml.apache.org>
>>
>>
>>
>>
>>>>>>
>>>>>>
>>>---------------------------------------------------------------------
>>>
>>>
>>>
>>>
>>>>>>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:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>><co...@xml.apache.org>
>>
>>
>>
>>
>>>>>>For additional commands, e-mail:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>><co...@xml.apache.org>
>>
>>
>>
>>
>>>>>--
>>>>>http://www.superlinksoftware.com - software solutions for business
>>>>>http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
>>>>>Java
>>>>>http://krysalis.sourceforge.net/centipede - the best build/project
>>>>>structure
>>>>>   a guy/gal could have! - Make Ant simple on complex Projects!
>>>>>The avalanche has already started. It is too late for the pebbles to
>>>>>vote.
>>>>>-Ambassador Kosh
>>>>>
>>>>>
>>>>>---------------------------------------------------------------------
>>>>>To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
>>>>>For additional commands, email: cocoon-dev-help@xml.apache.org
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
>>>>For additional commands, email: cocoon-dev-help@xml.apache.org
>>>>
>>>>
>>>>
>>>>
>>>>
>>>--
>>>http://www.superlinksoftware.com - software solutions for business
>>>http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
>>>Java
>>>http://krysalis.sourceforge.net/centipede - the best build/project
>>>structure
>>>   a guy/gal could have! - Make Ant simple on complex Projects!
>>>The avalanche has already started. It is too late for the pebbles to
>>>vote.
>>>-Ambassador Kosh
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
>>>For additional commands, email: cocoon-dev-help@xml.apache.org
>>>
>>>
>>>
>>>
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
>>For additional commands, email: cocoon-dev-help@xml.apache.org
>>
>>
>>
>>
>>
>>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
>For additional commands, email: cocoon-dev-help@xml.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
>For additional commands, email: cocoon-dev-help@xml.apache.org
>
>
>
>




---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: (Carsten Ziegeler) Re: XInclude/CInclude Issue (Re: including dynamic data withXMLForm)

Posted by "Andrew C. Oliver" <ac...@apache.org>.
<joke> I'd go to a seminar too, but that oath of celebacy just sounded 
too harsh ;-) </joke>

Matthew Langham wrote:

>Andy wrote:
>  
>
>Ha!  Isn't Carsten Ziegler on Vacation?  He's the author IIRC.
><<
>
>Carsten is away until Wednesday. Not on vacation (yet) - he's attending a
>seminar.
>
>Matthew
>
>--
>Open Source Group       Cocoon { Consulting, Training, Projects }
>=================================================================
>Matthew Langham, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
>Tel:+49-5251-1581-30  mlangham@s-und-n.de - http://www.s-und-n.de
>-----------------------------------------------------------------
>Cocoon book:
>  http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20
>=================================================================
>
>
>
>
>-----Original Message-----
>From: Andrew C. Oliver [mailto:acoliver@apache.org]
>Sent: Monday, July 08, 2002 3:53 PM
>To: cocoon-dev@xml.apache.org
>Subject: (Carsten Ziegeler) Re: XInclude/CInclude Issue (Re: including
>dynamic data withXMLForm)
>
>
>  
>
>>Np.  I'm 1/4 cocoon-developer (I've submitted several patches including
>>SQLTransformer, ESQL and of course the HSSFSerializer).  I just don't
>>happen to fit in because I don't like Avalon too much.
>>
>>
>>
>>No offense intended ;)
>>
>>
>>    
>>
>none taken.  Was merely clarifying.
>
>  
>
>>    
>>
>>>XInclude seemed insistent on real Files.  CInclude looked newer and
>>>more....avalonistic (which cocoon developers seem to like).  So CInclude
>>>started working for me immediately but was including too much.  XInclude
>>>didn't work at all (kept trying to find a real file).
>>>
>>>I can probably merge the XInclude functionality into the CInclude
>>>transformer and submit a patch for that if you like.
>>>
>>>
>>>      
>>>
>>I would certainly appreciate that. It seems like you're becoming the de
>>facto maintainer for X/CInclude, since noone else is responding at this
>>time.
>>
>>
>>    
>>
>Ha!  Isn't Carsten Ziegler on Vacation?  He's the author IIRC.
>
>Cool, I'll do so.  If you could commit my patch that would help.
> (Otherwise the next patch will be bigger and others
>won't have a chance to test the basis).  What I did will still be
>relevant, and I'd rather keep the two patches seperate.
>
>Thanks,
>
>Andy
>
>
>  
>
>>Ivelin
>>
>>
>>
>>
>>
>>    
>>
>>>-Andy
>>>
>>>
>>>On Sun, 2002-07-07 at 23:46, Ivelin Ivanov wrote:
>>>
>>>
>>>      
>>>
>>>>Thanks for the patch Oliver. That's how active I like most cocoon-users
>>>>
>>>>
>>>>        
>>>>
>>to
>>
>>
>>    
>>
>>>>be like ;)
>>>>
>>>>BTW, I was under the impression that it was recently decided that we
>>>>
>>>>
>>>>        
>>>>
>>will
>>
>>
>>    
>>
>>>>merge XInclude and CInclude's code bases.
>>>>Only XInclude would remain with the added ability to act on both
>>>>
>>>>
>>>>        
>>>>
>>XInclude
>>
>>
>>    
>>
>>>>and CInclude's namespaces.
>>>>How did you decide to improve CInclude vs fixing XInclude.
>>>>
>>>>
>>>>-=Ivelin
>>>>
>>>>
>>>>----- Original Message -----
>>>>From: "Andrew C. Oliver" <ac...@apache.org>
>>>>To: "cocoon users" <co...@xml.apache.org>
>>>>Cc: <co...@xml.apache.org>
>>>>Sent: Sunday, July 07, 2002 8:43 PM
>>>>Subject: Re: XInclude/CInclude Issue (Re: including dynamic data
>>>>withXMLForm)
>>>>
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>>>On Sun, 2002-07-07 at 20:51, Ivelin Ivanov wrote:
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>>>I'm sure there must be a more elegant way to solve the problem.
>>>>>>We just need to wait a bit to hear from the XInclude developers.
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>>>>>Down low, too slow.  Patch incoming.  New syntax implemented for
>>>>>CInclude to allow xpointers.  Will need help testing as my CInclude
>>>>>experience includes about 1 entire day of goofing with the sucker.
>>>>>
>>>>>http://nagoya.apache.org/bugzilla/createattachment.cgi?id=10540
>>>>>
>>>>>I added a "select" attribute to CInclude that supports the XPointer
>>>>>syntax without the XPointer() part (just what would go between the
>>>>>()'s).  (This is cleaner than the #XPointer() url-suffix nastiness).
>>>>>
>>>>>Hopefully, one of the CInclude geniuses will take a look at this and
>>>>>make it better.  I was baffled by the tall inheritance tree.  Mostly I
>>>>>borrowed the code from XInclude and made it look more like CInclude
>>>>>without actually understanding Avalon.
>>>>>
>>>>>Anyhow, if someone will kindly apply this or an even better version
>>>>>
>>>>>
>>>>>          
>>>>>
>>then
>>
>>
>>    
>>
>>>>>my issue will be satisfied and probably others who might want to
>>>>>populate HTML lists, selects, etc in XMLForm webapps.  Plus it will
>>>>>solve the hole in between XInclude and CInclude.
>>>>>
>>>>>(anything in this email that sounds arrogant is actually a whole
>>>>>day/weekend of frustration suddenly alleviated -- exuberance)
>>>>>
>>>>>Thanks,
>>>>>
>>>>>-Andy
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>>>----- Original Message -----
>>>>>>From: "Andrew C. Oliver" <ac...@apache.org>
>>>>>>To: "cocoon users" <co...@xml.apache.org>
>>>>>>Sent: Sunday, July 07, 2002 7:01 PM
>>>>>>Subject: Re: XInclude/CInclude Issue (Re: including dynamic data
>>>>>>withXMLForm)
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>>>>>>><xi:include
>>>>>>>href="cocoon:/categories_combo.xml#xpointer(xformcategories/*)"
>>>>>>>parse="xml"/>
>>>>>>>
>>>>>>>does this for me:
>>>>>>>
>>>>>>>org.apache.cocoon.ResourceNotFoundException: Resource not found.:
>>>>>>>org.apache.excalibur.source.SourceNotFoundException: Resource not
>>>>>>>
>>>>>>>
>>>>>>>              
>>>>>>>
>>>>found
>>>>
>>>>
>>>>        
>>>>
>>file:/opt/tomcat/webapps/cocoon/samples/bringmethis/content/form/cocoon:/ca
>>    
>>
>t
>  
>
>>    
>>
>>>>>>egories_combo.xml
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>>>>>>>So it looks like I'm stuck with an additional transformation.
>>>>>>>
>>>>>>>
>>>>>>>              
>>>>>>>
>>Which
>>
>>
>>    
>>
>>>>(as
>>>>
>>>>
>>>>        
>>>>
>>>>>>>a situation) bites.
>>>>>>>
>>>>>>>-Andy
>>>>>>>
>>>>>>>
>>>>>>>On Sun, 2002-07-07 at 17:23, Stephan Michels wrote:
>>>>>>>
>>>>>>>
>>>>>>>              
>>>>>>>
>>>>>>>>On 7 Jul 2002, Andrew C. Oliver wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>                
>>>>>>>>
>>>>>>>>>Hi,
>>>>>>>>>
>>>>>>>>>Thanks for your reply.  This is very close to what I want.
>>>>>>>>>So I'm almost there, but I have to have a root element on the
>>>>>>>>>categories_combo.xml "page".  Its <xmlformcategories>.  I only
>>>>>>>>>want whats in between the root element.  CInclude appears to
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                  
>>>>>>>>>
>>not
>>
>>
>>    
>>
>>>>>>>>>support the xpointer as it was trying to treat it as part of
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                  
>>>>>>>>>
>>the
>>
>>
>>    
>>
>>>>URL.
>>>>
>>>>
>>>>        
>>>>
>>>>>>>>>I'd hoped that the "element" attribute of the
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                  
>>>>>>>>>
>><cinclude:include>
>>
>>
>>    
>>
>>>>tag
>>>>
>>>>
>>>>        
>>>>
>>>>>>>>>would allow this, but it actually seems to be for doing the
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                  
>>>>>>>>>
>>>>opposite.
>>>>
>>>>
>>>>        
>>>>
>>>>>>>>>I suppose I can apply an additional layer of transformation
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                  
>>>>>>>>>
>>that
>>
>>
>>    
>>
>>>>takes
>>>>
>>>>
>>>>        
>>>>
>>>>>>>>>the output, includes everything but the <xformcategories> and
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                  
>>>>>>>>>
>>then
>>
>>
>>    
>>
>>>>>>>>>includes its children, but that is very inefficient and kinda
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                  
>>>>>>>>>
>>of a
>>
>>
>>    
>>
>>>>>>pain,
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>>>>>>>>>etc.
>>>>>>>>>
>>>>>>>>>Is there a more straightforward way to take only the children
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                  
>>>>>>>>>
>>of
>>
>>
>>    
>>
>>>>the
>>>>
>>>>
>>>>        
>>>>
>>>>>>>>>xmformcategories, include them without including the
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                  
>>>>>>>>>
>>>>xmlformcategories
>>>>
>>>>
>>>>        
>>>>
>>>>>>>>>tag?
>>>>>>>>>
>>>>>>>>>basically
>>>>>>>>>
>>>>>>>>><cinclude:include src="cocoon:/categories_combo.xml"
>>>>>>>>>select="xformcategories/*"/>
>>>>>>>>>
>>>>>>>>>or something to that effect
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                  
>>>>>>>>>
>>>>>>>>And whats the result of
>>>>>>>>
>>>>>>>><xi:include
>>>>>>>>href="cocoon:/categories_combo.xml#xpointer(xformcategories/*)"
>>>>>>>>parse="xml"/>
>>>>>>>>
>>>>>>>>Perhaps you forget the 'parse' attribute?
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>                
>>>>>>>>
>>>>>>>>>source of requestform.xml:
>>>>>>>>>
>>>>>>>>><?xml version="1.0"?>
>>>>>>>>>
>>>>>>>>>   <document
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                  
>>>>>>>>>
>>xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002"
>>
>>
>>    
>>
>>>>xmlns:cinclude="http://apache.org/cocoon/include/1.0">
>>>>
>>>>
>>>>        
>>>>
>>>>>>>>>     <xf:form id="request-form" view="requestform"
>>>>>>>>>action="postrequest.html">
>>>>>>>>>
>>>>>>>>>       <error>
>>>>>>>>>         <xf:violations class="error"/>
>>>>>>>>>       </error>
>>>>>>>>>
>>>>>>>>>       <xf:selectMany ref="/category" selectUIType="listbox">
>>>>>>>>>           <xf:caption>Category</xf:caption>
>>>>>>>>>           <cinclude:include
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                  
>>>>>>>>>
>>src="cocoon:/categories_combo.xml"
>>
>>
>>    
>>
>>>>/>
>>>>
>>>>
>>>>        
>>>>
>>>>>>>>>           <xf:violations class="error"/>
>>>>>>>>>       </xf:selectMany>
>>>>>>>>>
>>>>>>>>>       <xf:textbox ref="/title">
>>>>>>>>>           <xf:caption>Title/Item Name (no HTML)</xf:caption>
>>>>>>>>>           <xf:violations class="error"/>
>>>>>>>>>       </xf:textbox>
>>>>>>>>>
>>>>>>>>>.... snip ....
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>       <xf:textbox ref="/password">
>>>>>>>>>           <xf:caption>Password</xf:caption>
>>>>>>>>>           <xf:violations class="error"/>
>>>>>>>>>       </xf:textbox>
>>>>>>>>>
>>>>>>>>>       <xf:submit id="next" class="button">
>>>>>>>>>         <xf:caption>Next</xf:caption>
>>>>>>>>>       </xf:submit>
>>>>>>>>>
>>>>>>>>>     </xf:form>
>>>>>>>>>
>>>>>>>>>   </document>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>output from categories_combo.xml:
>>>>>>>>>
>>>>>>>>><xformcategories
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                  
>>>>>>>>>
>>>>xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002">
>>>>
>>>>
>>>>        
>>>>
>>>>>>>>><xf:item>
>>>>>>>>>
>>>>>>>>><xf:caption>Original Art</xf:caption>
>>>>>>>>><xf:value>16</xf:value>
>>>>>>>>></xf:item>
>>>>>>>>><xf:item>
>>>>>>>>><xf:caption>Antiques</xf:caption>
>>>>>>>>><xf:value>0</xf:value>
>>>>>>>>></xf:item>
>>>>>>>>><xf:item>
>>>>>>>>><xf:caption>Books</xf:caption>
>>>>>>>>><xf:value>1</xf:value>
>>>>>>>>></xf:item>
>>>>>>>>>
>>>>>>>>><xf:item>
>>>>>>>>><xf:caption>Cars</xf:caption>
>>>>>>>>><xf:value>2</xf:value>
>>>>>>>>></xf:item>
>>>>>>>>><xf:item>
>>>>>>>>><xf:caption>Collectibles</xf:caption>
>>>>>>>>><xf:value>3</xf:value>
>>>>>>>>></xf:item>
>>>>>>>>><xf:item>
>>>>>>>>><xf:caption>Comics</xf:caption>
>>>>>>>>><xf:value>4</xf:value>
>>>>>>>>>
>>>>>>>>></xf:item>
>>>>>>>>><xf:item>
>>>>>>>>><xf:caption>Computers</xf:caption>
>>>>>>>>><xf:value>5</xf:value>
>>>>>>>>></xf:item>
>>>>>>>>><xf:item>
>>>>>>>>><xf:caption>Crafts</xf:caption>
>>>>>>>>><xf:value>6</xf:value>
>>>>>>>>></xf:item>
>>>>>>>>><xf:item>
>>>>>>>>><xf:caption>Electronics</xf:caption>
>>>>>>>>><xf:value>7</xf:value>
>>>>>>>>>
>>>>>>>>></xf:item>
>>>>>>>>><xf:item>
>>>>>>>>><xf:caption>Gifts</xf:caption>
>>>>>>>>><xf:value>8</xf:value>
>>>>>>>>></xf:item>
>>>>>>>>><xf:item>
>>>>>>>>><xf:caption>Loans</xf:caption>
>>>>>>>>><xf:value>9</xf:value>
>>>>>>>>></xf:item>
>>>>>>>>><xf:item>
>>>>>>>>><xf:caption>Music</xf:caption>
>>>>>>>>><xf:value>10</xf:value>
>>>>>>>>>
>>>>>>>>></xf:item>
>>>>>>>>><xf:item>
>>>>>>>>><xf:caption>Office Supplies</xf:caption>
>>>>>>>>><xf:value>11</xf:value>
>>>>>>>>></xf:item>
>>>>>>>>><xf:item>
>>>>>>>>><xf:caption>Other</xf:caption>
>>>>>>>>><xf:value>12</xf:value>
>>>>>>>>></xf:item>
>>>>>>>>><xf:item>
>>>>>>>>><xf:caption>Toys</xf:caption>
>>>>>>>>><xf:value>13</xf:value>
>>>>>>>>>
>>>>>>>>></xf:item>
>>>>>>>>><xf:item>
>>>>>>>>><xf:caption>Travel</xf:caption>
>>>>>>>>><xf:value>14</xf:value>
>>>>>>>>></xf:item>
>>>>>>>>><xf:item>
>>>>>>>>><xf:caption>Videos</xf:caption>
>>>>>>>>><xf:value>15</xf:value>
>>>>>>>>></xf:item>
>>>>>>>>></xformcategories>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>-Andy
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>On Sun, 2002-07-07 at 14:59, Stephan Michels wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                  
>>>>>>>>>
>>>>>>>>>>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" <ac...@apache.org>
>>>>>>>>>>>To: "cocoon users" <co...@xml.apache.org>
>>>>>>>>>>>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:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                    
>>>>>>>>>>
>>>>>><co...@xml.apache.org>
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>>>>>>>>>>For additional commands, e-mail:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>                    
>>>>>>>>>>
>>>>>><co...@xml.apache.org>
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>>>>>>>>>--
>>>>>>>>>http://www.superlinksoftware.com - software solutions for
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                  
>>>>>>>>>
>>business
>>
>>
>>    
>>
>>>>>>>>>http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                  
>>>>>>>>>
>>Document
>>
>>
>>    
>>
>>>>in
>>>>
>>>>
>>>>        
>>>>
>>>>>>>>>Java
>>>>>>>>>http://krysalis.sourceforge.net/centipede - the best
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                  
>>>>>>>>>
>>build/project
>>
>>
>>    
>>
>>>>>>>>>structure
>>>>>>>>>   a guy/gal could have! - Make Ant simple on complex
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                  
>>>>>>>>>
>>Projects!
>>
>>
>>    
>>
>>>>>>>>>The avalanche has already started. It is too late for the
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                  
>>>>>>>>>
>>pebbles
>>
>>
>>    
>>
>>>>to
>>>>
>>>>
>>>>        
>>>>
>>>>>>>>>vote.
>>>>>>>>>-Ambassador Kosh
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                  
>>>>>>>>>
>>>>>---------------------------------------------------------------------
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>>>>>>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:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                  
>>>>>>>>>
>>>><co...@xml.apache.org>
>>>>
>>>>
>>>>        
>>>>
>>>>>>>>>For additional commands, e-mail:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>                  
>>>>>>>>>
>>>><co...@xml.apache.org>
>>>>
>>>>
>>>>        
>>>>
>>>>>>>>                
>>>>>>>>
>>>>>---------------------------------------------------------------------
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>>>>>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:
>>>>>>>>
>>>>>>>>
>>>>>>>>                
>>>>>>>>
>>>><co...@xml.apache.org>
>>>>
>>>>
>>>>        
>>>>
>>>>>>>>For additional commands, e-mail:
>>>>>>>>
>>>>>>>>
>>>>>>>>                
>>>>>>>>
>>>><co...@xml.apache.org>
>>>>
>>>>
>>>>        
>>>>
>>>>>>>--
>>>>>>>http://www.superlinksoftware.com - software solutions for business
>>>>>>>http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document
>>>>>>>
>>>>>>>
>>>>>>>              
>>>>>>>
>>in
>>
>>
>>    
>>
>>>>>>>Java
>>>>>>>http://krysalis.sourceforge.net/centipede - the best build/project
>>>>>>>structure
>>>>>>>   a guy/gal could have! - Make Ant simple on complex Projects!
>>>>>>>The avalanche has already started. It is too late for the pebbles
>>>>>>>
>>>>>>>
>>>>>>>              
>>>>>>>
>>to
>>
>>
>>    
>>
>>>>>>>vote.
>>>>>>>-Ambassador Kosh
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>              
>>>>>>>
>>>---------------------------------------------------------------------
>>>
>>>
>>>      
>>>
>>>>>>>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:
>>>>>>>
>>>>>>>
>>>>>>>              
>>>>>>>
>><co...@xml.apache.org>
>>
>>
>>    
>>
>>>>>>>For additional commands, e-mail:
>>>>>>>
>>>>>>>
>>>>>>>              
>>>>>>>
>><co...@xml.apache.org>
>>
>>
>>    
>>
>>>>>>            
>>>>>>
>>>---------------------------------------------------------------------
>>>
>>>
>>>      
>>>
>>>>>>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:
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>><co...@xml.apache.org>
>>
>>
>>    
>>
>>>>>>For additional commands, e-mail:
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>><co...@xml.apache.org>
>>
>>
>>    
>>
>>>>>--
>>>>>http://www.superlinksoftware.com - software solutions for business
>>>>>http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
>>>>>Java
>>>>>http://krysalis.sourceforge.net/centipede - the best build/project
>>>>>structure
>>>>>   a guy/gal could have! - Make Ant simple on complex Projects!
>>>>>The avalanche has already started. It is too late for the pebbles to
>>>>>vote.
>>>>>-Ambassador Kosh
>>>>>
>>>>>
>>>>>---------------------------------------------------------------------
>>>>>To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
>>>>>For additional commands, email: cocoon-dev-help@xml.apache.org
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
>>>>For additional commands, email: cocoon-dev-help@xml.apache.org
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>--
>>>http://www.superlinksoftware.com - software solutions for business
>>>http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
>>>Java
>>>http://krysalis.sourceforge.net/centipede - the best build/project
>>>structure
>>>   a guy/gal could have! - Make Ant simple on complex Projects!
>>>The avalanche has already started. It is too late for the pebbles to
>>>vote.
>>>-Ambassador Kosh
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
>>>For additional commands, email: cocoon-dev-help@xml.apache.org
>>>
>>>
>>>
>>>      
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
>>For additional commands, email: cocoon-dev-help@xml.apache.org
>>
>>
>>
>>
>>    
>>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
>For additional commands, email: cocoon-dev-help@xml.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
>For additional commands, email: cocoon-dev-help@xml.apache.org
>
>
>  
>




---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


RE: (Carsten Ziegeler) Re: XInclude/CInclude Issue (Re: including dynamic data withXMLForm)

Posted by Matthew Langham <ml...@s-und-n.de>.
Andy wrote:
>>
Ha!  Isn't Carsten Ziegler on Vacation?  He's the author IIRC.
<<

Carsten is away until Wednesday. Not on vacation (yet) - he's attending a
seminar.

Matthew

--
Open Source Group       Cocoon { Consulting, Training, Projects }
=================================================================
Matthew Langham, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
Tel:+49-5251-1581-30  mlangham@s-und-n.de - http://www.s-und-n.de
-----------------------------------------------------------------
Cocoon book:
  http://www.amazon.com/exec/obidos/ASIN/0735712352/needacake-20
=================================================================




-----Original Message-----
From: Andrew C. Oliver [mailto:acoliver@apache.org]
Sent: Monday, July 08, 2002 3:53 PM
To: cocoon-dev@xml.apache.org
Subject: (Carsten Ziegeler) Re: XInclude/CInclude Issue (Re: including
dynamic data withXMLForm)


>
>
>Np.  I'm 1/4 cocoon-developer (I've submitted several patches including
>SQLTransformer, ESQL and of course the HSSFSerializer).  I just don't
>happen to fit in because I don't like Avalon too much.
>
>
>
>No offense intended ;)
>
>
none taken.  Was merely clarifying.

>
>
>>XInclude seemed insistent on real Files.  CInclude looked newer and
>>more....avalonistic (which cocoon developers seem to like).  So CInclude
>>started working for me immediately but was including too much.  XInclude
>>didn't work at all (kept trying to find a real file).
>>
>>I can probably merge the XInclude functionality into the CInclude
>>transformer and submit a patch for that if you like.
>>
>>
>
>I would certainly appreciate that. It seems like you're becoming the de
>facto maintainer for X/CInclude, since noone else is responding at this
>time.
>
>
Ha!  Isn't Carsten Ziegler on Vacation?  He's the author IIRC.

Cool, I'll do so.  If you could commit my patch that would help.
 (Otherwise the next patch will be bigger and others
won't have a chance to test the basis).  What I did will still be
relevant, and I'd rather keep the two patches seperate.

Thanks,

Andy


>
>
>Ivelin
>
>
>
>
>
>>-Andy
>>
>>
>>On Sun, 2002-07-07 at 23:46, Ivelin Ivanov wrote:
>>
>>
>>>Thanks for the patch Oliver. That's how active I like most cocoon-users
>>>
>>>
>to
>
>
>>>be like ;)
>>>
>>>BTW, I was under the impression that it was recently decided that we
>>>
>>>
>will
>
>
>>>merge XInclude and CInclude's code bases.
>>>Only XInclude would remain with the added ability to act on both
>>>
>>>
>XInclude
>
>
>>>and CInclude's namespaces.
>>>How did you decide to improve CInclude vs fixing XInclude.
>>>
>>>
>>>-=Ivelin
>>>
>>>
>>>----- Original Message -----
>>>From: "Andrew C. Oliver" <ac...@apache.org>
>>>To: "cocoon users" <co...@xml.apache.org>
>>>Cc: <co...@xml.apache.org>
>>>Sent: Sunday, July 07, 2002 8:43 PM
>>>Subject: Re: XInclude/CInclude Issue (Re: including dynamic data
>>>withXMLForm)
>>>
>>>
>>>
>>>
>>>>On Sun, 2002-07-07 at 20:51, Ivelin Ivanov wrote:
>>>>
>>>>
>>>>>I'm sure there must be a more elegant way to solve the problem.
>>>>>We just need to wait a bit to hear from the XInclude developers.
>>>>>
>>>>>
>>>>Down low, too slow.  Patch incoming.  New syntax implemented for
>>>>CInclude to allow xpointers.  Will need help testing as my CInclude
>>>>experience includes about 1 entire day of goofing with the sucker.
>>>>
>>>>http://nagoya.apache.org/bugzilla/createattachment.cgi?id=10540
>>>>
>>>>I added a "select" attribute to CInclude that supports the XPointer
>>>>syntax without the XPointer() part (just what would go between the
>>>>()'s).  (This is cleaner than the #XPointer() url-suffix nastiness).
>>>>
>>>>Hopefully, one of the CInclude geniuses will take a look at this and
>>>>make it better.  I was baffled by the tall inheritance tree.  Mostly I
>>>>borrowed the code from XInclude and made it look more like CInclude
>>>>without actually understanding Avalon.
>>>>
>>>>Anyhow, if someone will kindly apply this or an even better version
>>>>
>>>>
>then
>
>
>>>>my issue will be satisfied and probably others who might want to
>>>>populate HTML lists, selects, etc in XMLForm webapps.  Plus it will
>>>>solve the hole in between XInclude and CInclude.
>>>>
>>>>(anything in this email that sounds arrogant is actually a whole
>>>>day/weekend of frustration suddenly alleviated -- exuberance)
>>>>
>>>>Thanks,
>>>>
>>>>-Andy
>>>>
>>>>
>>>>
>>>>
>>>>>
>>>>>----- Original Message -----
>>>>>From: "Andrew C. Oliver" <ac...@apache.org>
>>>>>To: "cocoon users" <co...@xml.apache.org>
>>>>>Sent: Sunday, July 07, 2002 7:01 PM
>>>>>Subject: Re: XInclude/CInclude Issue (Re: including dynamic data
>>>>>withXMLForm)
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>><xi:include
>>>>>>href="cocoon:/categories_combo.xml#xpointer(xformcategories/*)"
>>>>>>parse="xml"/>
>>>>>>
>>>>>>does this for me:
>>>>>>
>>>>>>org.apache.cocoon.ResourceNotFoundException: Resource not found.:
>>>>>>org.apache.excalibur.source.SourceNotFoundException: Resource not
>>>>>>
>>>>>>
>>>found
>>>
>>>
>file:/opt/tomcat/webapps/cocoon/samples/bringmethis/content/form/cocoon:/ca
t
>
>
>>>>>egories_combo.xml
>>>>>
>>>>>
>>>>>>So it looks like I'm stuck with an additional transformation.
>>>>>>
>>>>>>
>Which
>
>
>>>(as
>>>
>>>
>>>>>>a situation) bites.
>>>>>>
>>>>>>-Andy
>>>>>>
>>>>>>
>>>>>>On Sun, 2002-07-07 at 17:23, Stephan Michels wrote:
>>>>>>
>>>>>>
>>>>>>>On 7 Jul 2002, Andrew C. Oliver wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>Hi,
>>>>>>>>
>>>>>>>>Thanks for your reply.  This is very close to what I want.
>>>>>>>>So I'm almost there, but I have to have a root element on the
>>>>>>>>categories_combo.xml "page".  Its <xmlformcategories>.  I only
>>>>>>>>want whats in between the root element.  CInclude appears to
>>>>>>>>
>>>>>>>>
>not
>
>
>>>>>>>>support the xpointer as it was trying to treat it as part of
>>>>>>>>
>>>>>>>>
>the
>
>
>>>URL.
>>>
>>>
>>>>>>>>I'd hoped that the "element" attribute of the
>>>>>>>>
>>>>>>>>
><cinclude:include>
>
>
>>>tag
>>>
>>>
>>>>>>>>would allow this, but it actually seems to be for doing the
>>>>>>>>
>>>>>>>>
>>>opposite.
>>>
>>>
>>>>>>>>I suppose I can apply an additional layer of transformation
>>>>>>>>
>>>>>>>>
>that
>
>
>>>takes
>>>
>>>
>>>>>>>>the output, includes everything but the <xformcategories> and
>>>>>>>>
>>>>>>>>
>then
>
>
>>>>>>>>includes its children, but that is very inefficient and kinda
>>>>>>>>
>>>>>>>>
>of a
>
>
>>>>>pain,
>>>>>
>>>>>
>>>>>>>>etc.
>>>>>>>>
>>>>>>>>Is there a more straightforward way to take only the children
>>>>>>>>
>>>>>>>>
>of
>
>
>>>the
>>>
>>>
>>>>>>>>xmformcategories, include them without including the
>>>>>>>>
>>>>>>>>
>>>xmlformcategories
>>>
>>>
>>>>>>>>tag?
>>>>>>>>
>>>>>>>>basically
>>>>>>>>
>>>>>>>><cinclude:include src="cocoon:/categories_combo.xml"
>>>>>>>>select="xformcategories/*"/>
>>>>>>>>
>>>>>>>>or something to that effect
>>>>>>>>
>>>>>>>>
>>>>>>>And whats the result of
>>>>>>>
>>>>>>><xi:include
>>>>>>>href="cocoon:/categories_combo.xml#xpointer(xformcategories/*)"
>>>>>>>parse="xml"/>
>>>>>>>
>>>>>>>Perhaps you forget the 'parse' attribute?
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>source of requestform.xml:
>>>>>>>>
>>>>>>>><?xml version="1.0"?>
>>>>>>>>
>>>>>>>>    <document
>>>>>>>>
>>>>>>>>
>xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002"
>
>
>>>xmlns:cinclude="http://apache.org/cocoon/include/1.0">
>>>
>>>
>>>>>>>>      <xf:form id="request-form" view="requestform"
>>>>>>>>action="postrequest.html">
>>>>>>>>
>>>>>>>>        <error>
>>>>>>>>          <xf:violations class="error"/>
>>>>>>>>        </error>
>>>>>>>>
>>>>>>>>        <xf:selectMany ref="/category" selectUIType="listbox">
>>>>>>>>            <xf:caption>Category</xf:caption>
>>>>>>>>            <cinclude:include
>>>>>>>>
>>>>>>>>
>src="cocoon:/categories_combo.xml"
>
>
>>>/>
>>>
>>>
>>>>>>>>            <xf:violations class="error"/>
>>>>>>>>        </xf:selectMany>
>>>>>>>>
>>>>>>>>        <xf:textbox ref="/title">
>>>>>>>>            <xf:caption>Title/Item Name (no HTML)</xf:caption>
>>>>>>>>            <xf:violations class="error"/>
>>>>>>>>        </xf:textbox>
>>>>>>>>
>>>>>>>>.... snip ....
>>>>>>>>
>>>>>>>>
>>>>>>>>        <xf:textbox ref="/password">
>>>>>>>>            <xf:caption>Password</xf:caption>
>>>>>>>>            <xf:violations class="error"/>
>>>>>>>>        </xf:textbox>
>>>>>>>>
>>>>>>>>        <xf:submit id="next" class="button">
>>>>>>>>          <xf:caption>Next</xf:caption>
>>>>>>>>        </xf:submit>
>>>>>>>>
>>>>>>>>      </xf:form>
>>>>>>>>
>>>>>>>>    </document>
>>>>>>>>
>>>>>>>>
>>>>>>>>output from categories_combo.xml:
>>>>>>>>
>>>>>>>><xformcategories
>>>>>>>>
>>>>>>>>
>>>xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002">
>>>
>>>
>>>>>>>><xf:item>
>>>>>>>>
>>>>>>>><xf:caption>Original Art</xf:caption>
>>>>>>>><xf:value>16</xf:value>
>>>>>>>></xf:item>
>>>>>>>><xf:item>
>>>>>>>><xf:caption>Antiques</xf:caption>
>>>>>>>><xf:value>0</xf:value>
>>>>>>>></xf:item>
>>>>>>>><xf:item>
>>>>>>>><xf:caption>Books</xf:caption>
>>>>>>>><xf:value>1</xf:value>
>>>>>>>></xf:item>
>>>>>>>>
>>>>>>>><xf:item>
>>>>>>>><xf:caption>Cars</xf:caption>
>>>>>>>><xf:value>2</xf:value>
>>>>>>>></xf:item>
>>>>>>>><xf:item>
>>>>>>>><xf:caption>Collectibles</xf:caption>
>>>>>>>><xf:value>3</xf:value>
>>>>>>>></xf:item>
>>>>>>>><xf:item>
>>>>>>>><xf:caption>Comics</xf:caption>
>>>>>>>><xf:value>4</xf:value>
>>>>>>>>
>>>>>>>></xf:item>
>>>>>>>><xf:item>
>>>>>>>><xf:caption>Computers</xf:caption>
>>>>>>>><xf:value>5</xf:value>
>>>>>>>></xf:item>
>>>>>>>><xf:item>
>>>>>>>><xf:caption>Crafts</xf:caption>
>>>>>>>><xf:value>6</xf:value>
>>>>>>>></xf:item>
>>>>>>>><xf:item>
>>>>>>>><xf:caption>Electronics</xf:caption>
>>>>>>>><xf:value>7</xf:value>
>>>>>>>>
>>>>>>>></xf:item>
>>>>>>>><xf:item>
>>>>>>>><xf:caption>Gifts</xf:caption>
>>>>>>>><xf:value>8</xf:value>
>>>>>>>></xf:item>
>>>>>>>><xf:item>
>>>>>>>><xf:caption>Loans</xf:caption>
>>>>>>>><xf:value>9</xf:value>
>>>>>>>></xf:item>
>>>>>>>><xf:item>
>>>>>>>><xf:caption>Music</xf:caption>
>>>>>>>><xf:value>10</xf:value>
>>>>>>>>
>>>>>>>></xf:item>
>>>>>>>><xf:item>
>>>>>>>><xf:caption>Office Supplies</xf:caption>
>>>>>>>><xf:value>11</xf:value>
>>>>>>>></xf:item>
>>>>>>>><xf:item>
>>>>>>>><xf:caption>Other</xf:caption>
>>>>>>>><xf:value>12</xf:value>
>>>>>>>></xf:item>
>>>>>>>><xf:item>
>>>>>>>><xf:caption>Toys</xf:caption>
>>>>>>>><xf:value>13</xf:value>
>>>>>>>>
>>>>>>>></xf:item>
>>>>>>>><xf:item>
>>>>>>>><xf:caption>Travel</xf:caption>
>>>>>>>><xf:value>14</xf:value>
>>>>>>>></xf:item>
>>>>>>>><xf:item>
>>>>>>>><xf:caption>Videos</xf:caption>
>>>>>>>><xf:value>15</xf:value>
>>>>>>>></xf:item>
>>>>>>>></xformcategories>
>>>>>>>>
>>>>>>>>
>>>>>>>>-Andy
>>>>>>>>
>>>>>>>>
>>>>>>>>On Sun, 2002-07-07 at 14:59, Stephan Michels wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>>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" <ac...@apache.org>
>>>>>>>>>>To: "cocoon users" <co...@xml.apache.org>
>>>>>>>>>>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:
>>>>>>>>>
>>>>>>>>>
>>>>><co...@xml.apache.org>
>>>>>
>>>>>
>>>>>>>>>For additional commands, e-mail:
>>>>>>>>>
>>>>>>>>>
>>>>><co...@xml.apache.org>
>>>>>
>>>>>
>>>>>>>>--
>>>>>>>>http://www.superlinksoftware.com - software solutions for
>>>>>>>>
>>>>>>>>
>business
>
>
>>>>>>>>http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound
>>>>>>>>
>>>>>>>>
>Document
>
>
>>>in
>>>
>>>
>>>>>>>>Java
>>>>>>>>http://krysalis.sourceforge.net/centipede - the best
>>>>>>>>
>>>>>>>>
>build/project
>
>
>>>>>>>>structure
>>>>>>>>    a guy/gal could have! - Make Ant simple on complex
>>>>>>>>
>>>>>>>>
>Projects!
>
>
>>>>>>>>The avalanche has already started. It is too late for the
>>>>>>>>
>>>>>>>>
>pebbles
>
>
>>>to
>>>
>>>
>>>>>>>>vote.
>>>>>>>>-Ambassador Kosh
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>---------------------------------------------------------------------
>>>>
>>>>
>>>>>>>>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:
>>>>>>>>
>>>>>>>>
>>><co...@xml.apache.org>
>>>
>>>
>>>>>>>>For additional commands, e-mail:
>>>>>>>>
>>>>>>>>
>>><co...@xml.apache.org>
>>>
>>>
>>>>>>>
>>>>>>>
>>>>---------------------------------------------------------------------
>>>>
>>>>
>>>>>>>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:
>>>>>>>
>>>>>>>
>>><co...@xml.apache.org>
>>>
>>>
>>>>>>>For additional commands, e-mail:
>>>>>>>
>>>>>>>
>>><co...@xml.apache.org>
>>>
>>>
>>>>>>--
>>>>>>http://www.superlinksoftware.com - software solutions for business
>>>>>>http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document
>>>>>>
>>>>>>
>in
>
>
>>>>>>Java
>>>>>>http://krysalis.sourceforge.net/centipede - the best build/project
>>>>>>structure
>>>>>>    a guy/gal could have! - Make Ant simple on complex Projects!
>>>>>>The avalanche has already started. It is too late for the pebbles
>>>>>>
>>>>>>
>to
>
>
>>>>>>vote.
>>>>>>-Ambassador Kosh
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>---------------------------------------------------------------------
>>
>>
>>>>>>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:
>>>>>>
>>>>>>
><co...@xml.apache.org>
>
>
>>>>>>For additional commands, e-mail:
>>>>>>
>>>>>>
><co...@xml.apache.org>
>
>
>>>>>
>>>>>
>>---------------------------------------------------------------------
>>
>>
>>>>>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:
>>>>>
>>>>>
><co...@xml.apache.org>
>
>
>>>>>For additional commands, e-mail:
>>>>>
>>>>>
><co...@xml.apache.org>
>
>
>>>>--
>>>>http://www.superlinksoftware.com - software solutions for business
>>>>http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
>>>>Java
>>>>http://krysalis.sourceforge.net/centipede - the best build/project
>>>>structure
>>>>    a guy/gal could have! - Make Ant simple on complex Projects!
>>>>The avalanche has already started. It is too late for the pebbles to
>>>>vote.
>>>>-Ambassador Kosh
>>>>
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
>>>>For additional commands, email: cocoon-dev-help@xml.apache.org
>>>>
>>>>
>>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
>>>For additional commands, email: cocoon-dev-help@xml.apache.org
>>>
>>>
>>>
>>--
>>http://www.superlinksoftware.com - software solutions for business
>>http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
>>Java
>>http://krysalis.sourceforge.net/centipede - the best build/project
>>structure
>>    a guy/gal could have! - Make Ant simple on complex Projects!
>>The avalanche has already started. It is too late for the pebbles to
>>vote.
>>-Ambassador Kosh
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
>>For additional commands, email: cocoon-dev-help@xml.apache.org
>>
>>
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
>For additional commands, email: cocoon-dev-help@xml.apache.org
>
>
>
>




---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: (Carsten Ziegeler) Re: XInclude/CInclude Issue (Re: including dynamic data withXMLForm)

Posted by Ivelin Ivanov <iv...@apache.org>.
I'll try to commit the patch ASAP, although I'm totally busy these days.

Is some of the other commiters able to apply this patch?


-=Ivelin=-
----- Original Message -----
From: "Andrew C. Oliver" <ac...@apache.org>
To: <co...@xml.apache.org>
Sent: Monday, July 08, 2002 8:53 AM
Subject: (Carsten Ziegeler) Re: XInclude/CInclude Issue (Re: including
dynamic data withXMLForm)


> >
> >
> >Np.  I'm 1/4 cocoon-developer (I've submitted several patches including
> >SQLTransformer, ESQL and of course the HSSFSerializer).  I just don't
> >happen to fit in because I don't like Avalon too much.
> >
> >
> >
> >No offense intended ;)
> >
> >
> none taken.  Was merely clarifying.
>
> >
> >
> >>XInclude seemed insistent on real Files.  CInclude looked newer and
> >>more....avalonistic (which cocoon developers seem to like).  So CInclude
> >>started working for me immediately but was including too much.  XInclude
> >>didn't work at all (kept trying to find a real file).
> >>
> >>I can probably merge the XInclude functionality into the CInclude
> >>transformer and submit a patch for that if you like.
> >>
> >>
> >
> >I would certainly appreciate that. It seems like you're becoming the de
> >facto maintainer for X/CInclude, since noone else is responding at this
> >time.
> >
> >
> Ha!  Isn't Carsten Ziegler on Vacation?  He's the author IIRC.
>
> Cool, I'll do so.  If you could commit my patch that would help.
>  (Otherwise the next patch will be bigger and others
> won't have a chance to test the basis).  What I did will still be
> relevant, and I'd rather keep the two patches seperate.
>
> Thanks,
>
> Andy
>
>
> >
> >
> >Ivelin
> >
> >
> >
> >
> >
> >>-Andy
> >>
> >>
> >>On Sun, 2002-07-07 at 23:46, Ivelin Ivanov wrote:
> >>
> >>
> >>>Thanks for the patch Oliver. That's how active I like most cocoon-users
> >>>
> >>>
> >to
> >
> >
> >>>be like ;)
> >>>
> >>>BTW, I was under the impression that it was recently decided that we
> >>>
> >>>
> >will
> >
> >
> >>>merge XInclude and CInclude's code bases.
> >>>Only XInclude would remain with the added ability to act on both
> >>>
> >>>
> >XInclude
> >
> >
> >>>and CInclude's namespaces.
> >>>How did you decide to improve CInclude vs fixing XInclude.
> >>>
> >>>
> >>>-=Ivelin
> >>>
> >>>
> >>>----- Original Message -----
> >>>From: "Andrew C. Oliver" <ac...@apache.org>
> >>>To: "cocoon users" <co...@xml.apache.org>
> >>>Cc: <co...@xml.apache.org>
> >>>Sent: Sunday, July 07, 2002 8:43 PM
> >>>Subject: Re: XInclude/CInclude Issue (Re: including dynamic data
> >>>withXMLForm)
> >>>
> >>>
> >>>
> >>>
> >>>>On Sun, 2002-07-07 at 20:51, Ivelin Ivanov wrote:
> >>>>
> >>>>
> >>>>>I'm sure there must be a more elegant way to solve the problem.
> >>>>>We just need to wait a bit to hear from the XInclude developers.
> >>>>>
> >>>>>
> >>>>Down low, too slow.  Patch incoming.  New syntax implemented for
> >>>>CInclude to allow xpointers.  Will need help testing as my CInclude
> >>>>experience includes about 1 entire day of goofing with the sucker.
> >>>>
> >>>>http://nagoya.apache.org/bugzilla/createattachment.cgi?id=10540
> >>>>
> >>>>I added a "select" attribute to CInclude that supports the XPointer
> >>>>syntax without the XPointer() part (just what would go between the
> >>>>()'s).  (This is cleaner than the #XPointer() url-suffix nastiness).
> >>>>
> >>>>Hopefully, one of the CInclude geniuses will take a look at this and
> >>>>make it better.  I was baffled by the tall inheritance tree.  Mostly I
> >>>>borrowed the code from XInclude and made it look more like CInclude
> >>>>without actually understanding Avalon.
> >>>>
> >>>>Anyhow, if someone will kindly apply this or an even better version
> >>>>
> >>>>
> >then
> >
> >
> >>>>my issue will be satisfied and probably others who might want to
> >>>>populate HTML lists, selects, etc in XMLForm webapps.  Plus it will
> >>>>solve the hole in between XInclude and CInclude.
> >>>>
> >>>>(anything in this email that sounds arrogant is actually a whole
> >>>>day/weekend of frustration suddenly alleviated -- exuberance)
> >>>>
> >>>>Thanks,
> >>>>
> >>>>-Andy
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>
> >>>>>----- Original Message -----
> >>>>>From: "Andrew C. Oliver" <ac...@apache.org>
> >>>>>To: "cocoon users" <co...@xml.apache.org>
> >>>>>Sent: Sunday, July 07, 2002 7:01 PM
> >>>>>Subject: Re: XInclude/CInclude Issue (Re: including dynamic data
> >>>>>withXMLForm)
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>><xi:include
> >>>>>>href="cocoon:/categories_combo.xml#xpointer(xformcategories/*)"
> >>>>>>parse="xml"/>
> >>>>>>
> >>>>>>does this for me:
> >>>>>>
> >>>>>>org.apache.cocoon.ResourceNotFoundException: Resource not found.:
> >>>>>>org.apache.excalibur.source.SourceNotFoundException: Resource not
> >>>>>>
> >>>>>>
> >>>found
> >>>
> >>>
>
>file:/opt/tomcat/webapps/cocoon/samples/bringmethis/content/form/cocoon:/ca
t
> >
> >
> >>>>>egories_combo.xml
> >>>>>
> >>>>>
> >>>>>>So it looks like I'm stuck with an additional transformation.
> >>>>>>
> >>>>>>
> >Which
> >
> >
> >>>(as
> >>>
> >>>
> >>>>>>a situation) bites.
> >>>>>>
> >>>>>>-Andy
> >>>>>>
> >>>>>>
> >>>>>>On Sun, 2002-07-07 at 17:23, Stephan Michels wrote:
> >>>>>>
> >>>>>>
> >>>>>>>On 7 Jul 2002, Andrew C. Oliver wrote:
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>>Hi,
> >>>>>>>>
> >>>>>>>>Thanks for your reply.  This is very close to what I want.
> >>>>>>>>So I'm almost there, but I have to have a root element on the
> >>>>>>>>categories_combo.xml "page".  Its <xmlformcategories>.  I only
> >>>>>>>>want whats in between the root element.  CInclude appears to
> >>>>>>>>
> >>>>>>>>
> >not
> >
> >
> >>>>>>>>support the xpointer as it was trying to treat it as part of
> >>>>>>>>
> >>>>>>>>
> >the
> >
> >
> >>>URL.
> >>>
> >>>
> >>>>>>>>I'd hoped that the "element" attribute of the
> >>>>>>>>
> >>>>>>>>
> ><cinclude:include>
> >
> >
> >>>tag
> >>>
> >>>
> >>>>>>>>would allow this, but it actually seems to be for doing the
> >>>>>>>>
> >>>>>>>>
> >>>opposite.
> >>>
> >>>
> >>>>>>>>I suppose I can apply an additional layer of transformation
> >>>>>>>>
> >>>>>>>>
> >that
> >
> >
> >>>takes
> >>>
> >>>
> >>>>>>>>the output, includes everything but the <xformcategories> and
> >>>>>>>>
> >>>>>>>>
> >then
> >
> >
> >>>>>>>>includes its children, but that is very inefficient and kinda
> >>>>>>>>
> >>>>>>>>
> >of a
> >
> >
> >>>>>pain,
> >>>>>
> >>>>>
> >>>>>>>>etc.
> >>>>>>>>
> >>>>>>>>Is there a more straightforward way to take only the children
> >>>>>>>>
> >>>>>>>>
> >of
> >
> >
> >>>the
> >>>
> >>>
> >>>>>>>>xmformcategories, include them without including the
> >>>>>>>>
> >>>>>>>>
> >>>xmlformcategories
> >>>
> >>>
> >>>>>>>>tag?
> >>>>>>>>
> >>>>>>>>basically
> >>>>>>>>
> >>>>>>>><cinclude:include src="cocoon:/categories_combo.xml"
> >>>>>>>>select="xformcategories/*"/>
> >>>>>>>>
> >>>>>>>>or something to that effect
> >>>>>>>>
> >>>>>>>>
> >>>>>>>And whats the result of
> >>>>>>>
> >>>>>>><xi:include
> >>>>>>>href="cocoon:/categories_combo.xml#xpointer(xformcategories/*)"
> >>>>>>>parse="xml"/>
> >>>>>>>
> >>>>>>>Perhaps you forget the 'parse' attribute?
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>>source of requestform.xml:
> >>>>>>>>
> >>>>>>>><?xml version="1.0"?>
> >>>>>>>>
> >>>>>>>>    <document
> >>>>>>>>
> >>>>>>>>
> >xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002"
> >
> >
> >>>xmlns:cinclude="http://apache.org/cocoon/include/1.0">
> >>>
> >>>
> >>>>>>>>      <xf:form id="request-form" view="requestform"
> >>>>>>>>action="postrequest.html">
> >>>>>>>>
> >>>>>>>>        <error>
> >>>>>>>>          <xf:violations class="error"/>
> >>>>>>>>        </error>
> >>>>>>>>
> >>>>>>>>        <xf:selectMany ref="/category" selectUIType="listbox">
> >>>>>>>>            <xf:caption>Category</xf:caption>
> >>>>>>>>            <cinclude:include
> >>>>>>>>
> >>>>>>>>
> >src="cocoon:/categories_combo.xml"
> >
> >
> >>>/>
> >>>
> >>>
> >>>>>>>>            <xf:violations class="error"/>
> >>>>>>>>        </xf:selectMany>
> >>>>>>>>
> >>>>>>>>        <xf:textbox ref="/title">
> >>>>>>>>            <xf:caption>Title/Item Name (no HTML)</xf:caption>
> >>>>>>>>            <xf:violations class="error"/>
> >>>>>>>>        </xf:textbox>
> >>>>>>>>
> >>>>>>>>.... snip ....
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>        <xf:textbox ref="/password">
> >>>>>>>>            <xf:caption>Password</xf:caption>
> >>>>>>>>            <xf:violations class="error"/>
> >>>>>>>>        </xf:textbox>
> >>>>>>>>
> >>>>>>>>        <xf:submit id="next" class="button">
> >>>>>>>>          <xf:caption>Next</xf:caption>
> >>>>>>>>        </xf:submit>
> >>>>>>>>
> >>>>>>>>      </xf:form>
> >>>>>>>>
> >>>>>>>>    </document>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>output from categories_combo.xml:
> >>>>>>>>
> >>>>>>>><xformcategories
> >>>>>>>>
> >>>>>>>>
> >>>xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002">
> >>>
> >>>
> >>>>>>>><xf:item>
> >>>>>>>>
> >>>>>>>><xf:caption>Original Art</xf:caption>
> >>>>>>>><xf:value>16</xf:value>
> >>>>>>>></xf:item>
> >>>>>>>><xf:item>
> >>>>>>>><xf:caption>Antiques</xf:caption>
> >>>>>>>><xf:value>0</xf:value>
> >>>>>>>></xf:item>
> >>>>>>>><xf:item>
> >>>>>>>><xf:caption>Books</xf:caption>
> >>>>>>>><xf:value>1</xf:value>
> >>>>>>>></xf:item>
> >>>>>>>>
> >>>>>>>><xf:item>
> >>>>>>>><xf:caption>Cars</xf:caption>
> >>>>>>>><xf:value>2</xf:value>
> >>>>>>>></xf:item>
> >>>>>>>><xf:item>
> >>>>>>>><xf:caption>Collectibles</xf:caption>
> >>>>>>>><xf:value>3</xf:value>
> >>>>>>>></xf:item>
> >>>>>>>><xf:item>
> >>>>>>>><xf:caption>Comics</xf:caption>
> >>>>>>>><xf:value>4</xf:value>
> >>>>>>>>
> >>>>>>>></xf:item>
> >>>>>>>><xf:item>
> >>>>>>>><xf:caption>Computers</xf:caption>
> >>>>>>>><xf:value>5</xf:value>
> >>>>>>>></xf:item>
> >>>>>>>><xf:item>
> >>>>>>>><xf:caption>Crafts</xf:caption>
> >>>>>>>><xf:value>6</xf:value>
> >>>>>>>></xf:item>
> >>>>>>>><xf:item>
> >>>>>>>><xf:caption>Electronics</xf:caption>
> >>>>>>>><xf:value>7</xf:value>
> >>>>>>>>
> >>>>>>>></xf:item>
> >>>>>>>><xf:item>
> >>>>>>>><xf:caption>Gifts</xf:caption>
> >>>>>>>><xf:value>8</xf:value>
> >>>>>>>></xf:item>
> >>>>>>>><xf:item>
> >>>>>>>><xf:caption>Loans</xf:caption>
> >>>>>>>><xf:value>9</xf:value>
> >>>>>>>></xf:item>
> >>>>>>>><xf:item>
> >>>>>>>><xf:caption>Music</xf:caption>
> >>>>>>>><xf:value>10</xf:value>
> >>>>>>>>
> >>>>>>>></xf:item>
> >>>>>>>><xf:item>
> >>>>>>>><xf:caption>Office Supplies</xf:caption>
> >>>>>>>><xf:value>11</xf:value>
> >>>>>>>></xf:item>
> >>>>>>>><xf:item>
> >>>>>>>><xf:caption>Other</xf:caption>
> >>>>>>>><xf:value>12</xf:value>
> >>>>>>>></xf:item>
> >>>>>>>><xf:item>
> >>>>>>>><xf:caption>Toys</xf:caption>
> >>>>>>>><xf:value>13</xf:value>
> >>>>>>>>
> >>>>>>>></xf:item>
> >>>>>>>><xf:item>
> >>>>>>>><xf:caption>Travel</xf:caption>
> >>>>>>>><xf:value>14</xf:value>
> >>>>>>>></xf:item>
> >>>>>>>><xf:item>
> >>>>>>>><xf:caption>Videos</xf:caption>
> >>>>>>>><xf:value>15</xf:value>
> >>>>>>>></xf:item>
> >>>>>>>></xformcategories>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>-Andy
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>On Sun, 2002-07-07 at 14:59, Stephan Michels wrote:
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>>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" <ac...@apache.org>
> >>>>>>>>>>To: "cocoon users" <co...@xml.apache.org>
> >>>>>>>>>>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:
> >>>>>>>>>
> >>>>>>>>>
> >>>>><co...@xml.apache.org>
> >>>>>
> >>>>>
> >>>>>>>>>For additional commands, e-mail:
> >>>>>>>>>
> >>>>>>>>>
> >>>>><co...@xml.apache.org>
> >>>>>
> >>>>>
> >>>>>>>>--
> >>>>>>>>http://www.superlinksoftware.com - software solutions for
> >>>>>>>>
> >>>>>>>>
> >business
> >
> >
> >>>>>>>>http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound
> >>>>>>>>
> >>>>>>>>
> >Document
> >
> >
> >>>in
> >>>
> >>>
> >>>>>>>>Java
> >>>>>>>>http://krysalis.sourceforge.net/centipede - the best
> >>>>>>>>
> >>>>>>>>
> >build/project
> >
> >
> >>>>>>>>structure
> >>>>>>>>    a guy/gal could have! - Make Ant simple on complex
> >>>>>>>>
> >>>>>>>>
> >Projects!
> >
> >
> >>>>>>>>The avalanche has already started. It is too late for the
> >>>>>>>>
> >>>>>>>>
> >pebbles
> >
> >
> >>>to
> >>>
> >>>
> >>>>>>>>vote.
> >>>>>>>>-Ambassador Kosh
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>---------------------------------------------------------------------
> >>>>
> >>>>
> >>>>>>>>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:
> >>>>>>>>
> >>>>>>>>
> >>><co...@xml.apache.org>
> >>>
> >>>
> >>>>>>>>For additional commands, e-mail:
> >>>>>>>>
> >>>>>>>>
> >>><co...@xml.apache.org>
> >>>
> >>>
> >>>>>>>
> >>>>>>>
> >>>>---------------------------------------------------------------------
> >>>>
> >>>>
> >>>>>>>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:
> >>>>>>>
> >>>>>>>
> >>><co...@xml.apache.org>
> >>>
> >>>
> >>>>>>>For additional commands, e-mail:
> >>>>>>>
> >>>>>>>
> >>><co...@xml.apache.org>
> >>>
> >>>
> >>>>>>--
> >>>>>>http://www.superlinksoftware.com - software solutions for business
> >>>>>>http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document
> >>>>>>
> >>>>>>
> >in
> >
> >
> >>>>>>Java
> >>>>>>http://krysalis.sourceforge.net/centipede - the best build/project
> >>>>>>structure
> >>>>>>    a guy/gal could have! - Make Ant simple on complex Projects!
> >>>>>>The avalanche has already started. It is too late for the pebbles
> >>>>>>
> >>>>>>
> >to
> >
> >
> >>>>>>vote.
> >>>>>>-Ambassador Kosh
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>---------------------------------------------------------------------
> >>
> >>
> >>>>>>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:
> >>>>>>
> >>>>>>
> ><co...@xml.apache.org>
> >
> >
> >>>>>>For additional commands, e-mail:
> >>>>>>
> >>>>>>
> ><co...@xml.apache.org>
> >
> >
> >>>>>
> >>>>>
> >>---------------------------------------------------------------------
> >>
> >>
> >>>>>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:
> >>>>>
> >>>>>
> ><co...@xml.apache.org>
> >
> >
> >>>>>For additional commands, e-mail:
> >>>>>
> >>>>>
> ><co...@xml.apache.org>
> >
> >
> >>>>--
> >>>>http://www.superlinksoftware.com - software solutions for business
> >>>>http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
> >>>>Java
> >>>>http://krysalis.sourceforge.net/centipede - the best build/project
> >>>>structure
> >>>>    a guy/gal could have! - Make Ant simple on complex Projects!
> >>>>The avalanche has already started. It is too late for the pebbles to
> >>>>vote.
> >>>>-Ambassador Kosh
> >>>>
> >>>>
> >>>>---------------------------------------------------------------------
> >>>>To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> >>>>For additional commands, email: cocoon-dev-help@xml.apache.org
> >>>>
> >>>>
> >>>>
> >>>---------------------------------------------------------------------
> >>>To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> >>>For additional commands, email: cocoon-dev-help@xml.apache.org
> >>>
> >>>
> >>>
> >>--
> >>http://www.superlinksoftware.com - software solutions for business
> >>http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
> >>Java
> >>http://krysalis.sourceforge.net/centipede - the best build/project
> >>structure
> >>    a guy/gal could have! - Make Ant simple on complex Projects!
> >>The avalanche has already started. It is too late for the pebbles to
> >>vote.
> >>-Ambassador Kosh
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> >>For additional commands, email: cocoon-dev-help@xml.apache.org
> >>
> >>
> >>
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> >For additional commands, email: cocoon-dev-help@xml.apache.org
> >
> >
> >
> >
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


(Carsten Ziegeler) Re: XInclude/CInclude Issue (Re: including dynamic data withXMLForm)

Posted by "Andrew C. Oliver" <ac...@apache.org>.
>
>
>Np.  I'm 1/4 cocoon-developer (I've submitted several patches including
>SQLTransformer, ESQL and of course the HSSFSerializer).  I just don't
>happen to fit in because I don't like Avalon too much.
>  
>
>
>No offense intended ;)
>  
>
none taken.  Was merely clarifying.

>  
>
>>XInclude seemed insistent on real Files.  CInclude looked newer and
>>more....avalonistic (which cocoon developers seem to like).  So CInclude
>>started working for me immediately but was including too much.  XInclude
>>didn't work at all (kept trying to find a real file).
>>
>>I can probably merge the XInclude functionality into the CInclude
>>transformer and submit a patch for that if you like.
>>    
>>
>
>I would certainly appreciate that. It seems like you're becoming the de
>facto maintainer for X/CInclude, since noone else is responding at this
>time.
>  
>
Ha!  Isn't Carsten Ziegler on Vacation?  He's the author IIRC.

Cool, I'll do so.  If you could commit my patch that would help. 
 (Otherwise the next patch will be bigger and others
won't have a chance to test the basis).  What I did will still be 
relevant, and I'd rather keep the two patches seperate.

Thanks,

Andy


>
>
>Ivelin
>
>
>
>  
>
>>-Andy
>>
>>
>>On Sun, 2002-07-07 at 23:46, Ivelin Ivanov wrote:
>>    
>>
>>>Thanks for the patch Oliver. That's how active I like most cocoon-users
>>>      
>>>
>to
>  
>
>>>be like ;)
>>>
>>>BTW, I was under the impression that it was recently decided that we
>>>      
>>>
>will
>  
>
>>>merge XInclude and CInclude's code bases.
>>>Only XInclude would remain with the added ability to act on both
>>>      
>>>
>XInclude
>  
>
>>>and CInclude's namespaces.
>>>How did you decide to improve CInclude vs fixing XInclude.
>>>
>>>
>>>-=Ivelin
>>>
>>>
>>>----- Original Message -----
>>>From: "Andrew C. Oliver" <ac...@apache.org>
>>>To: "cocoon users" <co...@xml.apache.org>
>>>Cc: <co...@xml.apache.org>
>>>Sent: Sunday, July 07, 2002 8:43 PM
>>>Subject: Re: XInclude/CInclude Issue (Re: including dynamic data
>>>withXMLForm)
>>>
>>>
>>>      
>>>
>>>>On Sun, 2002-07-07 at 20:51, Ivelin Ivanov wrote:
>>>>        
>>>>
>>>>>I'm sure there must be a more elegant way to solve the problem.
>>>>>We just need to wait a bit to hear from the XInclude developers.
>>>>>          
>>>>>
>>>>Down low, too slow.  Patch incoming.  New syntax implemented for
>>>>CInclude to allow xpointers.  Will need help testing as my CInclude
>>>>experience includes about 1 entire day of goofing with the sucker.
>>>>
>>>>http://nagoya.apache.org/bugzilla/createattachment.cgi?id=10540
>>>>
>>>>I added a "select" attribute to CInclude that supports the XPointer
>>>>syntax without the XPointer() part (just what would go between the
>>>>()'s).  (This is cleaner than the #XPointer() url-suffix nastiness).
>>>>
>>>>Hopefully, one of the CInclude geniuses will take a look at this and
>>>>make it better.  I was baffled by the tall inheritance tree.  Mostly I
>>>>borrowed the code from XInclude and made it look more like CInclude
>>>>without actually understanding Avalon.
>>>>
>>>>Anyhow, if someone will kindly apply this or an even better version
>>>>        
>>>>
>then
>  
>
>>>>my issue will be satisfied and probably others who might want to
>>>>populate HTML lists, selects, etc in XMLForm webapps.  Plus it will
>>>>solve the hole in between XInclude and CInclude.
>>>>
>>>>(anything in this email that sounds arrogant is actually a whole
>>>>day/weekend of frustration suddenly alleviated -- exuberance)
>>>>
>>>>Thanks,
>>>>
>>>>-Andy
>>>>
>>>>
>>>>        
>>>>
>>>>>
>>>>>----- Original Message -----
>>>>>From: "Andrew C. Oliver" <ac...@apache.org>
>>>>>To: "cocoon users" <co...@xml.apache.org>
>>>>>Sent: Sunday, July 07, 2002 7:01 PM
>>>>>Subject: Re: XInclude/CInclude Issue (Re: including dynamic data
>>>>>withXMLForm)
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>>><xi:include
>>>>>>href="cocoon:/categories_combo.xml#xpointer(xformcategories/*)"
>>>>>>parse="xml"/>
>>>>>>
>>>>>>does this for me:
>>>>>>
>>>>>>org.apache.cocoon.ResourceNotFoundException: Resource not found.:
>>>>>>org.apache.excalibur.source.SourceNotFoundException: Resource not
>>>>>>            
>>>>>>
>>>found
>>>      
>>>
>file:/opt/tomcat/webapps/cocoon/samples/bringmethis/content/form/cocoon:/cat
>  
>
>>>>>egories_combo.xml
>>>>>          
>>>>>
>>>>>>So it looks like I'm stuck with an additional transformation.
>>>>>>            
>>>>>>
>Which
>  
>
>>>(as
>>>      
>>>
>>>>>>a situation) bites.
>>>>>>
>>>>>>-Andy
>>>>>>
>>>>>>
>>>>>>On Sun, 2002-07-07 at 17:23, Stephan Michels wrote:
>>>>>>            
>>>>>>
>>>>>>>On 7 Jul 2002, Andrew C. Oliver wrote:
>>>>>>>
>>>>>>>              
>>>>>>>
>>>>>>>>Hi,
>>>>>>>>
>>>>>>>>Thanks for your reply.  This is very close to what I want.
>>>>>>>>So I'm almost there, but I have to have a root element on the
>>>>>>>>categories_combo.xml "page".  Its <xmlformcategories>.  I only
>>>>>>>>want whats in between the root element.  CInclude appears to
>>>>>>>>                
>>>>>>>>
>not
>  
>
>>>>>>>>support the xpointer as it was trying to treat it as part of
>>>>>>>>                
>>>>>>>>
>the
>  
>
>>>URL.
>>>      
>>>
>>>>>>>>I'd hoped that the "element" attribute of the
>>>>>>>>                
>>>>>>>>
><cinclude:include>
>  
>
>>>tag
>>>      
>>>
>>>>>>>>would allow this, but it actually seems to be for doing the
>>>>>>>>                
>>>>>>>>
>>>opposite.
>>>      
>>>
>>>>>>>>I suppose I can apply an additional layer of transformation
>>>>>>>>                
>>>>>>>>
>that
>  
>
>>>takes
>>>      
>>>
>>>>>>>>the output, includes everything but the <xformcategories> and
>>>>>>>>                
>>>>>>>>
>then
>  
>
>>>>>>>>includes its children, but that is very inefficient and kinda
>>>>>>>>                
>>>>>>>>
>of a
>  
>
>>>>>pain,
>>>>>          
>>>>>
>>>>>>>>etc.
>>>>>>>>
>>>>>>>>Is there a more straightforward way to take only the children
>>>>>>>>                
>>>>>>>>
>of
>  
>
>>>the
>>>      
>>>
>>>>>>>>xmformcategories, include them without including the
>>>>>>>>                
>>>>>>>>
>>>xmlformcategories
>>>      
>>>
>>>>>>>>tag?
>>>>>>>>
>>>>>>>>basically
>>>>>>>>
>>>>>>>><cinclude:include src="cocoon:/categories_combo.xml"
>>>>>>>>select="xformcategories/*"/>
>>>>>>>>
>>>>>>>>or something to that effect
>>>>>>>>                
>>>>>>>>
>>>>>>>And whats the result of
>>>>>>>
>>>>>>><xi:include
>>>>>>>href="cocoon:/categories_combo.xml#xpointer(xformcategories/*)"
>>>>>>>parse="xml"/>
>>>>>>>
>>>>>>>Perhaps you forget the 'parse' attribute?
>>>>>>>
>>>>>>>              
>>>>>>>
>>>>>>>>source of requestform.xml:
>>>>>>>>
>>>>>>>><?xml version="1.0"?>
>>>>>>>>
>>>>>>>>    <document
>>>>>>>>                
>>>>>>>>
>xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002"
>  
>
>>>xmlns:cinclude="http://apache.org/cocoon/include/1.0">
>>>      
>>>
>>>>>>>>      <xf:form id="request-form" view="requestform"
>>>>>>>>action="postrequest.html">
>>>>>>>>
>>>>>>>>        <error>
>>>>>>>>          <xf:violations class="error"/>
>>>>>>>>        </error>
>>>>>>>>
>>>>>>>>        <xf:selectMany ref="/category" selectUIType="listbox">
>>>>>>>>            <xf:caption>Category</xf:caption>
>>>>>>>>            <cinclude:include
>>>>>>>>                
>>>>>>>>
>src="cocoon:/categories_combo.xml"
>  
>
>>>/>
>>>      
>>>
>>>>>>>>            <xf:violations class="error"/>
>>>>>>>>        </xf:selectMany>
>>>>>>>>
>>>>>>>>        <xf:textbox ref="/title">
>>>>>>>>            <xf:caption>Title/Item Name (no HTML)</xf:caption>
>>>>>>>>            <xf:violations class="error"/>
>>>>>>>>        </xf:textbox>
>>>>>>>>
>>>>>>>>.... snip ....
>>>>>>>>
>>>>>>>>
>>>>>>>>        <xf:textbox ref="/password">
>>>>>>>>            <xf:caption>Password</xf:caption>
>>>>>>>>            <xf:violations class="error"/>
>>>>>>>>        </xf:textbox>
>>>>>>>>
>>>>>>>>        <xf:submit id="next" class="button">
>>>>>>>>          <xf:caption>Next</xf:caption>
>>>>>>>>        </xf:submit>
>>>>>>>>
>>>>>>>>      </xf:form>
>>>>>>>>
>>>>>>>>    </document>
>>>>>>>>
>>>>>>>>
>>>>>>>>output from categories_combo.xml:
>>>>>>>>
>>>>>>>><xformcategories
>>>>>>>>                
>>>>>>>>
>>>xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002">
>>>      
>>>
>>>>>>>><xf:item>
>>>>>>>>
>>>>>>>><xf:caption>Original Art</xf:caption>
>>>>>>>><xf:value>16</xf:value>
>>>>>>>></xf:item>
>>>>>>>><xf:item>
>>>>>>>><xf:caption>Antiques</xf:caption>
>>>>>>>><xf:value>0</xf:value>
>>>>>>>></xf:item>
>>>>>>>><xf:item>
>>>>>>>><xf:caption>Books</xf:caption>
>>>>>>>><xf:value>1</xf:value>
>>>>>>>></xf:item>
>>>>>>>>
>>>>>>>><xf:item>
>>>>>>>><xf:caption>Cars</xf:caption>
>>>>>>>><xf:value>2</xf:value>
>>>>>>>></xf:item>
>>>>>>>><xf:item>
>>>>>>>><xf:caption>Collectibles</xf:caption>
>>>>>>>><xf:value>3</xf:value>
>>>>>>>></xf:item>
>>>>>>>><xf:item>
>>>>>>>><xf:caption>Comics</xf:caption>
>>>>>>>><xf:value>4</xf:value>
>>>>>>>>
>>>>>>>></xf:item>
>>>>>>>><xf:item>
>>>>>>>><xf:caption>Computers</xf:caption>
>>>>>>>><xf:value>5</xf:value>
>>>>>>>></xf:item>
>>>>>>>><xf:item>
>>>>>>>><xf:caption>Crafts</xf:caption>
>>>>>>>><xf:value>6</xf:value>
>>>>>>>></xf:item>
>>>>>>>><xf:item>
>>>>>>>><xf:caption>Electronics</xf:caption>
>>>>>>>><xf:value>7</xf:value>
>>>>>>>>
>>>>>>>></xf:item>
>>>>>>>><xf:item>
>>>>>>>><xf:caption>Gifts</xf:caption>
>>>>>>>><xf:value>8</xf:value>
>>>>>>>></xf:item>
>>>>>>>><xf:item>
>>>>>>>><xf:caption>Loans</xf:caption>
>>>>>>>><xf:value>9</xf:value>
>>>>>>>></xf:item>
>>>>>>>><xf:item>
>>>>>>>><xf:caption>Music</xf:caption>
>>>>>>>><xf:value>10</xf:value>
>>>>>>>>
>>>>>>>></xf:item>
>>>>>>>><xf:item>
>>>>>>>><xf:caption>Office Supplies</xf:caption>
>>>>>>>><xf:value>11</xf:value>
>>>>>>>></xf:item>
>>>>>>>><xf:item>
>>>>>>>><xf:caption>Other</xf:caption>
>>>>>>>><xf:value>12</xf:value>
>>>>>>>></xf:item>
>>>>>>>><xf:item>
>>>>>>>><xf:caption>Toys</xf:caption>
>>>>>>>><xf:value>13</xf:value>
>>>>>>>>
>>>>>>>></xf:item>
>>>>>>>><xf:item>
>>>>>>>><xf:caption>Travel</xf:caption>
>>>>>>>><xf:value>14</xf:value>
>>>>>>>></xf:item>
>>>>>>>><xf:item>
>>>>>>>><xf:caption>Videos</xf:caption>
>>>>>>>><xf:value>15</xf:value>
>>>>>>>></xf:item>
>>>>>>>></xformcategories>
>>>>>>>>
>>>>>>>>
>>>>>>>>-Andy
>>>>>>>>
>>>>>>>>
>>>>>>>>On Sun, 2002-07-07 at 14:59, Stephan Michels wrote:
>>>>>>>>                
>>>>>>>>
>>>>>>>>>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" <ac...@apache.org>
>>>>>>>>>>To: "cocoon users" <co...@xml.apache.org>
>>>>>>>>>>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:
>>>>>>>>>                  
>>>>>>>>>
>>>>><co...@xml.apache.org>
>>>>>          
>>>>>
>>>>>>>>>For additional commands, e-mail:
>>>>>>>>>                  
>>>>>>>>>
>>>>><co...@xml.apache.org>
>>>>>          
>>>>>
>>>>>>>>--
>>>>>>>>http://www.superlinksoftware.com - software solutions for
>>>>>>>>                
>>>>>>>>
>business
>  
>
>>>>>>>>http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound
>>>>>>>>                
>>>>>>>>
>Document
>  
>
>>>in
>>>      
>>>
>>>>>>>>Java
>>>>>>>>http://krysalis.sourceforge.net/centipede - the best
>>>>>>>>                
>>>>>>>>
>build/project
>  
>
>>>>>>>>structure
>>>>>>>>    a guy/gal could have! - Make Ant simple on complex
>>>>>>>>                
>>>>>>>>
>Projects!
>  
>
>>>>>>>>The avalanche has already started. It is too late for the
>>>>>>>>                
>>>>>>>>
>pebbles
>  
>
>>>to
>>>      
>>>
>>>>>>>>vote.
>>>>>>>>-Ambassador Kosh
>>>>>>>>
>>>>>>>>
>>>>>>>>                
>>>>>>>>
>>>>---------------------------------------------------------------------
>>>>        
>>>>
>>>>>>>>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:
>>>>>>>>                
>>>>>>>>
>>><co...@xml.apache.org>
>>>      
>>>
>>>>>>>>For additional commands, e-mail:
>>>>>>>>                
>>>>>>>>
>>><co...@xml.apache.org>
>>>      
>>>
>>>>>>>              
>>>>>>>
>>>>---------------------------------------------------------------------
>>>>        
>>>>
>>>>>>>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:
>>>>>>>              
>>>>>>>
>>><co...@xml.apache.org>
>>>      
>>>
>>>>>>>For additional commands, e-mail:
>>>>>>>              
>>>>>>>
>>><co...@xml.apache.org>
>>>      
>>>
>>>>>>--
>>>>>>http://www.superlinksoftware.com - software solutions for business
>>>>>>http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document
>>>>>>            
>>>>>>
>in
>  
>
>>>>>>Java
>>>>>>http://krysalis.sourceforge.net/centipede - the best build/project
>>>>>>structure
>>>>>>    a guy/gal could have! - Make Ant simple on complex Projects!
>>>>>>The avalanche has already started. It is too late for the pebbles
>>>>>>            
>>>>>>
>to
>  
>
>>>>>>vote.
>>>>>>-Ambassador Kosh
>>>>>>
>>>>>>
>>>>>>            
>>>>>>
>>---------------------------------------------------------------------
>>    
>>
>>>>>>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:
>>>>>>            
>>>>>>
><co...@xml.apache.org>
>  
>
>>>>>>For additional commands, e-mail:
>>>>>>            
>>>>>>
><co...@xml.apache.org>
>  
>
>>>>>          
>>>>>
>>---------------------------------------------------------------------
>>    
>>
>>>>>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:
>>>>>          
>>>>>
><co...@xml.apache.org>
>  
>
>>>>>For additional commands, e-mail:
>>>>>          
>>>>>
><co...@xml.apache.org>
>  
>
>>>>--
>>>>http://www.superlinksoftware.com - software solutions for business
>>>>http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
>>>>Java
>>>>http://krysalis.sourceforge.net/centipede - the best build/project
>>>>structure
>>>>    a guy/gal could have! - Make Ant simple on complex Projects!
>>>>The avalanche has already started. It is too late for the pebbles to
>>>>vote.
>>>>-Ambassador Kosh
>>>>
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
>>>>For additional commands, email: cocoon-dev-help@xml.apache.org
>>>>
>>>>        
>>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
>>>For additional commands, email: cocoon-dev-help@xml.apache.org
>>>
>>>      
>>>
>>--
>>http://www.superlinksoftware.com - software solutions for business
>>http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
>>Java
>>http://krysalis.sourceforge.net/centipede - the best build/project
>>structure
>>    a guy/gal could have! - Make Ant simple on complex Projects!
>>The avalanche has already started. It is too late for the pebbles to
>>vote.
>>-Ambassador Kosh
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
>>For additional commands, email: cocoon-dev-help@xml.apache.org
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
>For additional commands, email: cocoon-dev-help@xml.apache.org
>
>
>  
>




---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: XInclude/CInclude Issue (Re: including dynamic data withXMLForm)

Posted by Ivelin Ivanov <iv...@apache.org>.
-=Ivelin=-
----- Original Message -----
From: "Andrew C. Oliver" <ac...@apache.org>
To: <co...@xml.apache.org>
Sent: Sunday, July 07, 2002 11:40 PM
Subject: Re: XInclude/CInclude Issue (Re: including dynamic data
withXMLForm)


> Np.  I'm 1/4 cocoon-developer (I've submitted several patches including
> SQLTransformer, ESQL and of course the HSSFSerializer).  I just don't
> happen to fit in because I don't like Avalon too much.

No offense intended ;)

>
> XInclude seemed insistent on real Files.  CInclude looked newer and
> more....avalonistic (which cocoon developers seem to like).  So CInclude
> started working for me immediately but was including too much.  XInclude
> didn't work at all (kept trying to find a real file).
>
> I can probably merge the XInclude functionality into the CInclude
> transformer and submit a patch for that if you like.

I would certainly appreciate that. It seems like you're becoming the de
facto maintainer for X/CInclude, since noone else is responding at this
time.



Ivelin



>
> -Andy
>
>
> On Sun, 2002-07-07 at 23:46, Ivelin Ivanov wrote:
> >
> > Thanks for the patch Oliver. That's how active I like most cocoon-users
to
> > be like ;)
> >
> > BTW, I was under the impression that it was recently decided that we
will
> > merge XInclude and CInclude's code bases.
> > Only XInclude would remain with the added ability to act on both
XInclude
> > and CInclude's namespaces.
> > How did you decide to improve CInclude vs fixing XInclude.
> >
> >
> > -=Ivelin
> >
> >
> > ----- Original Message -----
> > From: "Andrew C. Oliver" <ac...@apache.org>
> > To: "cocoon users" <co...@xml.apache.org>
> > Cc: <co...@xml.apache.org>
> > Sent: Sunday, July 07, 2002 8:43 PM
> > Subject: Re: XInclude/CInclude Issue (Re: including dynamic data
> > withXMLForm)
> >
> >
> > > On Sun, 2002-07-07 at 20:51, Ivelin Ivanov wrote:
> > > > I'm sure there must be a more elegant way to solve the problem.
> > > > We just need to wait a bit to hear from the XInclude developers.
> > >
> > >
> > > Down low, too slow.  Patch incoming.  New syntax implemented for
> > > CInclude to allow xpointers.  Will need help testing as my CInclude
> > > experience includes about 1 entire day of goofing with the sucker.
> > >
> > > http://nagoya.apache.org/bugzilla/createattachment.cgi?id=10540
> > >
> > > I added a "select" attribute to CInclude that supports the XPointer
> > > syntax without the XPointer() part (just what would go between the
> > > ()'s).  (This is cleaner than the #XPointer() url-suffix nastiness).
> > >
> > > Hopefully, one of the CInclude geniuses will take a look at this and
> > > make it better.  I was baffled by the tall inheritance tree.  Mostly I
> > > borrowed the code from XInclude and made it look more like CInclude
> > > without actually understanding Avalon.
> > >
> > > Anyhow, if someone will kindly apply this or an even better version
then
> > > my issue will be satisfied and probably others who might want to
> > > populate HTML lists, selects, etc in XMLForm webapps.  Plus it will
> > > solve the hole in between XInclude and CInclude.
> > >
> > > (anything in this email that sounds arrogant is actually a whole
> > > day/weekend of frustration suddenly alleviated -- exuberance)
> > >
> > > Thanks,
> > >
> > > -Andy
> > >
> > >
> > > >
> > > >
> > > >
> > > > ----- Original Message -----
> > > > From: "Andrew C. Oliver" <ac...@apache.org>
> > > > To: "cocoon users" <co...@xml.apache.org>
> > > > Sent: Sunday, July 07, 2002 7:01 PM
> > > > Subject: Re: XInclude/CInclude Issue (Re: including dynamic data
> > > > withXMLForm)
> > > >
> > > >
> > > > > <xi:include
> > > > > href="cocoon:/categories_combo.xml#xpointer(xformcategories/*)"
> > > > > parse="xml"/>
> > > > >
> > > > > does this for me:
> > > > >
> > > > > org.apache.cocoon.ResourceNotFoundException: Resource not found.:
> > > > > org.apache.excalibur.source.SourceNotFoundException: Resource not
> > found
> > > > >
> > > >
> >
file:/opt/tomcat/webapps/cocoon/samples/bringmethis/content/form/cocoon:/cat
> > > > egories_combo.xml
> > > > >
> > > > > So it looks like I'm stuck with an additional transformation.
Which
> > (as
> > > > > a situation) bites.
> > > > >
> > > > > -Andy
> > > > >
> > > > >
> > > > > On Sun, 2002-07-07 at 17:23, Stephan Michels wrote:
> > > > > >
> > > > > > On 7 Jul 2002, Andrew C. Oliver wrote:
> > > > > >
> > > > > > > Hi,
> > > > > > >
> > > > > > > Thanks for your reply.  This is very close to what I want.
> > > > > > > So I'm almost there, but I have to have a root element on the
> > > > > > > categories_combo.xml "page".  Its <xmlformcategories>.  I only
> > > > > > > want whats in between the root element.  CInclude appears to
not
> > > > > > > support the xpointer as it was trying to treat it as part of
the
> > URL.
> > > > > > > I'd hoped that the "element" attribute of the
<cinclude:include>
> > tag
> > > > > > > would allow this, but it actually seems to be for doing the
> > opposite.
> > > > > > > I suppose I can apply an additional layer of transformation
that
> > takes
> > > > > > > the output, includes everything but the <xformcategories> and
then
> > > > > > > includes its children, but that is very inefficient and kinda
of a
> > > > pain,
> > > > > > > etc.
> > > > > > >
> > > > > > > Is there a more straightforward way to take only the children
of
> > the
> > > > > > > xmformcategories, include them without including the
> > xmlformcategories
> > > > > > > tag?
> > > > > > >
> > > > > > > basically
> > > > > > >
> > > > > > > <cinclude:include src="cocoon:/categories_combo.xml"
> > > > > > > select="xformcategories/*"/>
> > > > > > >
> > > > > > > or something to that effect
> > > > > >
> > > > > > And whats the result of
> > > > > >
> > > > > > <xi:include
> > > > > > href="cocoon:/categories_combo.xml#xpointer(xformcategories/*)"
> > > > > > parse="xml"/>
> > > > > >
> > > > > > Perhaps you forget the 'parse' attribute?
> > > > > >
> > > > > > >
> > > > > > > source of requestform.xml:
> > > > > > >
> > > > > > > <?xml version="1.0"?>
> > > > > > >
> > > > > > >     <document
xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002"
> > > > > > >
> > xmlns:cinclude="http://apache.org/cocoon/include/1.0">
> > > > > > >
> > > > > > >       <xf:form id="request-form" view="requestform"
> > > > > > > action="postrequest.html">
> > > > > > >
> > > > > > >         <error>
> > > > > > >           <xf:violations class="error"/>
> > > > > > >         </error>
> > > > > > >
> > > > > > >         <xf:selectMany ref="/category" selectUIType="listbox">
> > > > > > >             <xf:caption>Category</xf:caption>
> > > > > > >             <cinclude:include
src="cocoon:/categories_combo.xml"
> > />
> > > > > > >             <xf:violations class="error"/>
> > > > > > >         </xf:selectMany>
> > > > > > >
> > > > > > >         <xf:textbox ref="/title">
> > > > > > >             <xf:caption>Title/Item Name (no HTML)</xf:caption>
> > > > > > >             <xf:violations class="error"/>
> > > > > > >         </xf:textbox>
> > > > > > >
> > > > > > > .... snip ....
> > > > > > >
> > > > > > >
> > > > > > >         <xf:textbox ref="/password">
> > > > > > >             <xf:caption>Password</xf:caption>
> > > > > > >             <xf:violations class="error"/>
> > > > > > >         </xf:textbox>
> > > > > > >
> > > > > > >         <xf:submit id="next" class="button">
> > > > > > >           <xf:caption>Next</xf:caption>
> > > > > > >         </xf:submit>
> > > > > > >
> > > > > > >       </xf:form>
> > > > > > >
> > > > > > >     </document>
> > > > > > >
> > > > > > >
> > > > > > > output from categories_combo.xml:
> > > > > > >
> > > > > > > <xformcategories
> > xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002">
> > > > > > > <xf:item>
> > > > > > >
> > > > > > > <xf:caption>Original Art</xf:caption>
> > > > > > > <xf:value>16</xf:value>
> > > > > > > </xf:item>
> > > > > > > <xf:item>
> > > > > > > <xf:caption>Antiques</xf:caption>
> > > > > > > <xf:value>0</xf:value>
> > > > > > > </xf:item>
> > > > > > > <xf:item>
> > > > > > > <xf:caption>Books</xf:caption>
> > > > > > > <xf:value>1</xf:value>
> > > > > > > </xf:item>
> > > > > > >
> > > > > > > <xf:item>
> > > > > > > <xf:caption>Cars</xf:caption>
> > > > > > > <xf:value>2</xf:value>
> > > > > > > </xf:item>
> > > > > > > <xf:item>
> > > > > > > <xf:caption>Collectibles</xf:caption>
> > > > > > > <xf:value>3</xf:value>
> > > > > > > </xf:item>
> > > > > > > <xf:item>
> > > > > > > <xf:caption>Comics</xf:caption>
> > > > > > > <xf:value>4</xf:value>
> > > > > > >
> > > > > > > </xf:item>
> > > > > > > <xf:item>
> > > > > > > <xf:caption>Computers</xf:caption>
> > > > > > > <xf:value>5</xf:value>
> > > > > > > </xf:item>
> > > > > > > <xf:item>
> > > > > > > <xf:caption>Crafts</xf:caption>
> > > > > > > <xf:value>6</xf:value>
> > > > > > > </xf:item>
> > > > > > > <xf:item>
> > > > > > > <xf:caption>Electronics</xf:caption>
> > > > > > > <xf:value>7</xf:value>
> > > > > > >
> > > > > > > </xf:item>
> > > > > > > <xf:item>
> > > > > > > <xf:caption>Gifts</xf:caption>
> > > > > > > <xf:value>8</xf:value>
> > > > > > > </xf:item>
> > > > > > > <xf:item>
> > > > > > > <xf:caption>Loans</xf:caption>
> > > > > > > <xf:value>9</xf:value>
> > > > > > > </xf:item>
> > > > > > > <xf:item>
> > > > > > > <xf:caption>Music</xf:caption>
> > > > > > > <xf:value>10</xf:value>
> > > > > > >
> > > > > > > </xf:item>
> > > > > > > <xf:item>
> > > > > > > <xf:caption>Office Supplies</xf:caption>
> > > > > > > <xf:value>11</xf:value>
> > > > > > > </xf:item>
> > > > > > > <xf:item>
> > > > > > > <xf:caption>Other</xf:caption>
> > > > > > > <xf:value>12</xf:value>
> > > > > > > </xf:item>
> > > > > > > <xf:item>
> > > > > > > <xf:caption>Toys</xf:caption>
> > > > > > > <xf:value>13</xf:value>
> > > > > > >
> > > > > > > </xf:item>
> > > > > > > <xf:item>
> > > > > > > <xf:caption>Travel</xf:caption>
> > > > > > > <xf:value>14</xf:value>
> > > > > > > </xf:item>
> > > > > > > <xf:item>
> > > > > > > <xf:caption>Videos</xf:caption>
> > > > > > > <xf:value>15</xf:value>
> > > > > > > </xf:item>
> > > > > > > </xformcategories>
> > > > > > >
> > > > > > >
> > > > > > > -Andy
> > > > > > >
> > > > > > >
> > > > > > > On Sun, 2002-07-07 at 14:59, Stephan Michels wrote:
> > > > > > > >
> > > > > > > > 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" <ac...@apache.org>
> > > > > > > > > To: "cocoon users" <co...@xml.apache.org>
> > > > > > > > > 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:
> > > > <co...@xml.apache.org>
> > > > > > > > For additional commands, e-mail:
> > > > <co...@xml.apache.org>
> > > > > > > >
> > > > > > > --
> > > > > > > http://www.superlinksoftware.com - software solutions for
business
> > > > > > > http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound
Document
> > in
> > > > > > > Java
> > > > > > > http://krysalis.sourceforge.net/centipede - the best
build/project
> > > > > > > structure
> > > > > > >     a guy/gal could have! - Make Ant simple on complex
Projects!
> > > > > > > The avalanche has already started. It is too late for the
pebbles
> > to
> > > > > > > vote.
> > > > > > > -Ambassador Kosh
> > > > > > >
> > > > > > >
> > > > > >
> > > ---------------------------------------------------------------------
> > > > > > > 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:
> > <co...@xml.apache.org>
> > > > > > > For additional commands, e-mail:
> > <co...@xml.apache.org>
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > ---------------------------------------------------------------------
> > > > > > 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:
> > <co...@xml.apache.org>
> > > > > > For additional commands, e-mail:
> > <co...@xml.apache.org>
> > > > > >
> > > > > --
> > > > > http://www.superlinksoftware.com - software solutions for business
> > > > > http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document
in
> > > > > Java
> > > > > http://krysalis.sourceforge.net/centipede - the best build/project
> > > > > structure
> > > > >     a guy/gal could have! - Make Ant simple on complex Projects!
> > > > > The avalanche has already started. It is too late for the pebbles
to
> > > > > vote.
> > > > > -Ambassador Kosh
> > > > >
> > > > >
> > > >
> ---------------------------------------------------------------------
> > > > > 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:
<co...@xml.apache.org>
> > > > > For additional commands, e-mail:
<co...@xml.apache.org>
> > > > >
> > > >
> > > >
> > >
> ---------------------------------------------------------------------
> > > > 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:
<co...@xml.apache.org>
> > > > For additional commands, e-mail:
<co...@xml.apache.org>
> > > >
> > > --
> > > http://www.superlinksoftware.com - software solutions for business
> > > http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
> > > Java
> > > http://krysalis.sourceforge.net/centipede - the best build/project
> > > structure
> > >     a guy/gal could have! - Make Ant simple on complex Projects!
> > > The avalanche has already started. It is too late for the pebbles to
> > > vote.
> > > -Ambassador Kosh
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > > For additional commands, email: cocoon-dev-help@xml.apache.org
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > For additional commands, email: cocoon-dev-help@xml.apache.org
> >
> --
> http://www.superlinksoftware.com - software solutions for business
> http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
> Java
> http://krysalis.sourceforge.net/centipede - the best build/project
> structure
>     a guy/gal could have! - Make Ant simple on complex Projects!
> The avalanche has already started. It is too late for the pebbles to
> vote.
> -Ambassador Kosh
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: XInclude/CInclude Issue (Re: including dynamic data withXMLForm)

Posted by "Andrew C. Oliver" <ac...@apache.org>.
Np.  I'm 1/4 cocoon-developer (I've submitted several patches including
SQLTransformer, ESQL and of course the HSSFSerializer).  I just don't
happen to fit in because I don't like Avalon too much. 

XInclude seemed insistent on real Files.  CInclude looked newer and
more....avalonistic (which cocoon developers seem to like).  So CInclude
started working for me immediately but was including too much.  XInclude
didn't work at all (kept trying to find a real file).  

I can probably merge the XInclude functionality into the CInclude
transformer and submit a patch for that if you like.

-Andy


On Sun, 2002-07-07 at 23:46, Ivelin Ivanov wrote:
> 
> Thanks for the patch Oliver. That's how active I like most cocoon-users to
> be like ;)
> 
> BTW, I was under the impression that it was recently decided that we will
> merge XInclude and CInclude's code bases.
> Only XInclude would remain with the added ability to act on both XInclude
> and CInclude's namespaces.
> How did you decide to improve CInclude vs fixing XInclude.
> 
> 
> -=Ivelin
> 
> 
> ----- Original Message -----
> From: "Andrew C. Oliver" <ac...@apache.org>
> To: "cocoon users" <co...@xml.apache.org>
> Cc: <co...@xml.apache.org>
> Sent: Sunday, July 07, 2002 8:43 PM
> Subject: Re: XInclude/CInclude Issue (Re: including dynamic data
> withXMLForm)
> 
> 
> > On Sun, 2002-07-07 at 20:51, Ivelin Ivanov wrote:
> > > I'm sure there must be a more elegant way to solve the problem.
> > > We just need to wait a bit to hear from the XInclude developers.
> >
> >
> > Down low, too slow.  Patch incoming.  New syntax implemented for
> > CInclude to allow xpointers.  Will need help testing as my CInclude
> > experience includes about 1 entire day of goofing with the sucker.
> >
> > http://nagoya.apache.org/bugzilla/createattachment.cgi?id=10540
> >
> > I added a "select" attribute to CInclude that supports the XPointer
> > syntax without the XPointer() part (just what would go between the
> > ()'s).  (This is cleaner than the #XPointer() url-suffix nastiness).
> >
> > Hopefully, one of the CInclude geniuses will take a look at this and
> > make it better.  I was baffled by the tall inheritance tree.  Mostly I
> > borrowed the code from XInclude and made it look more like CInclude
> > without actually understanding Avalon.
> >
> > Anyhow, if someone will kindly apply this or an even better version then
> > my issue will be satisfied and probably others who might want to
> > populate HTML lists, selects, etc in XMLForm webapps.  Plus it will
> > solve the hole in between XInclude and CInclude.
> >
> > (anything in this email that sounds arrogant is actually a whole
> > day/weekend of frustration suddenly alleviated -- exuberance)
> >
> > Thanks,
> >
> > -Andy
> >
> >
> > >
> > >
> > >
> > > ----- Original Message -----
> > > From: "Andrew C. Oliver" <ac...@apache.org>
> > > To: "cocoon users" <co...@xml.apache.org>
> > > Sent: Sunday, July 07, 2002 7:01 PM
> > > Subject: Re: XInclude/CInclude Issue (Re: including dynamic data
> > > withXMLForm)
> > >
> > >
> > > > <xi:include
> > > > href="cocoon:/categories_combo.xml#xpointer(xformcategories/*)"
> > > > parse="xml"/>
> > > >
> > > > does this for me:
> > > >
> > > > org.apache.cocoon.ResourceNotFoundException: Resource not found.:
> > > > org.apache.excalibur.source.SourceNotFoundException: Resource not
> found
> > > >
> > >
> file:/opt/tomcat/webapps/cocoon/samples/bringmethis/content/form/cocoon:/cat
> > > egories_combo.xml
> > > >
> > > > So it looks like I'm stuck with an additional transformation.  Which
> (as
> > > > a situation) bites.
> > > >
> > > > -Andy
> > > >
> > > >
> > > > On Sun, 2002-07-07 at 17:23, Stephan Michels wrote:
> > > > >
> > > > > On 7 Jul 2002, Andrew C. Oliver wrote:
> > > > >
> > > > > > Hi,
> > > > > >
> > > > > > Thanks for your reply.  This is very close to what I want.
> > > > > > So I'm almost there, but I have to have a root element on the
> > > > > > categories_combo.xml "page".  Its <xmlformcategories>.  I only
> > > > > > want whats in between the root element.  CInclude appears to not
> > > > > > support the xpointer as it was trying to treat it as part of the
> URL.
> > > > > > I'd hoped that the "element" attribute of the <cinclude:include>
> tag
> > > > > > would allow this, but it actually seems to be for doing the
> opposite.
> > > > > > I suppose I can apply an additional layer of transformation that
> takes
> > > > > > the output, includes everything but the <xformcategories> and then
> > > > > > includes its children, but that is very inefficient and kinda of a
> > > pain,
> > > > > > etc.
> > > > > >
> > > > > > Is there a more straightforward way to take only the children of
> the
> > > > > > xmformcategories, include them without including the
> xmlformcategories
> > > > > > tag?
> > > > > >
> > > > > > basically
> > > > > >
> > > > > > <cinclude:include src="cocoon:/categories_combo.xml"
> > > > > > select="xformcategories/*"/>
> > > > > >
> > > > > > or something to that effect
> > > > >
> > > > > And whats the result of
> > > > >
> > > > > <xi:include
> > > > > href="cocoon:/categories_combo.xml#xpointer(xformcategories/*)"
> > > > > parse="xml"/>
> > > > >
> > > > > Perhaps you forget the 'parse' attribute?
> > > > >
> > > > > >
> > > > > > source of requestform.xml:
> > > > > >
> > > > > > <?xml version="1.0"?>
> > > > > >
> > > > > >     <document xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002"
> > > > > >
> xmlns:cinclude="http://apache.org/cocoon/include/1.0">
> > > > > >
> > > > > >       <xf:form id="request-form" view="requestform"
> > > > > > action="postrequest.html">
> > > > > >
> > > > > >         <error>
> > > > > >           <xf:violations class="error"/>
> > > > > >         </error>
> > > > > >
> > > > > >         <xf:selectMany ref="/category" selectUIType="listbox">
> > > > > >             <xf:caption>Category</xf:caption>
> > > > > >             <cinclude:include src="cocoon:/categories_combo.xml"
> />
> > > > > >             <xf:violations class="error"/>
> > > > > >         </xf:selectMany>
> > > > > >
> > > > > >         <xf:textbox ref="/title">
> > > > > >             <xf:caption>Title/Item Name (no HTML)</xf:caption>
> > > > > >             <xf:violations class="error"/>
> > > > > >         </xf:textbox>
> > > > > >
> > > > > > .... snip ....
> > > > > >
> > > > > >
> > > > > >         <xf:textbox ref="/password">
> > > > > >             <xf:caption>Password</xf:caption>
> > > > > >             <xf:violations class="error"/>
> > > > > >         </xf:textbox>
> > > > > >
> > > > > >         <xf:submit id="next" class="button">
> > > > > >           <xf:caption>Next</xf:caption>
> > > > > >         </xf:submit>
> > > > > >
> > > > > >       </xf:form>
> > > > > >
> > > > > >     </document>
> > > > > >
> > > > > >
> > > > > > output from categories_combo.xml:
> > > > > >
> > > > > > <xformcategories
> xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002">
> > > > > > <xf:item>
> > > > > >
> > > > > > <xf:caption>Original Art</xf:caption>
> > > > > > <xf:value>16</xf:value>
> > > > > > </xf:item>
> > > > > > <xf:item>
> > > > > > <xf:caption>Antiques</xf:caption>
> > > > > > <xf:value>0</xf:value>
> > > > > > </xf:item>
> > > > > > <xf:item>
> > > > > > <xf:caption>Books</xf:caption>
> > > > > > <xf:value>1</xf:value>
> > > > > > </xf:item>
> > > > > >
> > > > > > <xf:item>
> > > > > > <xf:caption>Cars</xf:caption>
> > > > > > <xf:value>2</xf:value>
> > > > > > </xf:item>
> > > > > > <xf:item>
> > > > > > <xf:caption>Collectibles</xf:caption>
> > > > > > <xf:value>3</xf:value>
> > > > > > </xf:item>
> > > > > > <xf:item>
> > > > > > <xf:caption>Comics</xf:caption>
> > > > > > <xf:value>4</xf:value>
> > > > > >
> > > > > > </xf:item>
> > > > > > <xf:item>
> > > > > > <xf:caption>Computers</xf:caption>
> > > > > > <xf:value>5</xf:value>
> > > > > > </xf:item>
> > > > > > <xf:item>
> > > > > > <xf:caption>Crafts</xf:caption>
> > > > > > <xf:value>6</xf:value>
> > > > > > </xf:item>
> > > > > > <xf:item>
> > > > > > <xf:caption>Electronics</xf:caption>
> > > > > > <xf:value>7</xf:value>
> > > > > >
> > > > > > </xf:item>
> > > > > > <xf:item>
> > > > > > <xf:caption>Gifts</xf:caption>
> > > > > > <xf:value>8</xf:value>
> > > > > > </xf:item>
> > > > > > <xf:item>
> > > > > > <xf:caption>Loans</xf:caption>
> > > > > > <xf:value>9</xf:value>
> > > > > > </xf:item>
> > > > > > <xf:item>
> > > > > > <xf:caption>Music</xf:caption>
> > > > > > <xf:value>10</xf:value>
> > > > > >
> > > > > > </xf:item>
> > > > > > <xf:item>
> > > > > > <xf:caption>Office Supplies</xf:caption>
> > > > > > <xf:value>11</xf:value>
> > > > > > </xf:item>
> > > > > > <xf:item>
> > > > > > <xf:caption>Other</xf:caption>
> > > > > > <xf:value>12</xf:value>
> > > > > > </xf:item>
> > > > > > <xf:item>
> > > > > > <xf:caption>Toys</xf:caption>
> > > > > > <xf:value>13</xf:value>
> > > > > >
> > > > > > </xf:item>
> > > > > > <xf:item>
> > > > > > <xf:caption>Travel</xf:caption>
> > > > > > <xf:value>14</xf:value>
> > > > > > </xf:item>
> > > > > > <xf:item>
> > > > > > <xf:caption>Videos</xf:caption>
> > > > > > <xf:value>15</xf:value>
> > > > > > </xf:item>
> > > > > > </xformcategories>
> > > > > >
> > > > > >
> > > > > > -Andy
> > > > > >
> > > > > >
> > > > > > On Sun, 2002-07-07 at 14:59, Stephan Michels wrote:
> > > > > > >
> > > > > > > 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" <ac...@apache.org>
> > > > > > > > To: "cocoon users" <co...@xml.apache.org>
> > > > > > > > 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:
> > > <co...@xml.apache.org>
> > > > > > > For additional commands, e-mail:
> > > <co...@xml.apache.org>
> > > > > > >
> > > > > > --
> > > > > > http://www.superlinksoftware.com - software solutions for business
> > > > > > http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document
> in
> > > > > > Java
> > > > > > http://krysalis.sourceforge.net/centipede - the best build/project
> > > > > > structure
> > > > > >     a guy/gal could have! - Make Ant simple on complex Projects!
> > > > > > The avalanche has already started. It is too late for the pebbles
> to
> > > > > > vote.
> > > > > > -Ambassador Kosh
> > > > > >
> > > > > >
> > > > >
> > ---------------------------------------------------------------------
> > > > > > 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:
> <co...@xml.apache.org>
> > > > > > For additional commands, e-mail:
> <co...@xml.apache.org>
> > > > > >
> > > > >
> > > > >
> > > >
> > ---------------------------------------------------------------------
> > > > > 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:
> <co...@xml.apache.org>
> > > > > For additional commands, e-mail:
> <co...@xml.apache.org>
> > > > >
> > > > --
> > > > http://www.superlinksoftware.com - software solutions for business
> > > > http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
> > > > Java
> > > > http://krysalis.sourceforge.net/centipede - the best build/project
> > > > structure
> > > >     a guy/gal could have! - Make Ant simple on complex Projects!
> > > > The avalanche has already started. It is too late for the pebbles to
> > > > vote.
> > > > -Ambassador Kosh
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > 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:     <co...@xml.apache.org>
> > > > For additional commands, e-mail:   <co...@xml.apache.org>
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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:     <co...@xml.apache.org>
> > > For additional commands, e-mail:   <co...@xml.apache.org>
> > >
> > --
> > http://www.superlinksoftware.com - software solutions for business
> > http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
> > Java
> > http://krysalis.sourceforge.net/centipede - the best build/project
> > structure
> >     a guy/gal could have! - Make Ant simple on complex Projects!
> > The avalanche has already started. It is too late for the pebbles to
> > vote.
> > -Ambassador Kosh
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> > For additional commands, email: cocoon-dev-help@xml.apache.org
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 
-- 
http://www.superlinksoftware.com - software solutions for business
http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
Java                            
http://krysalis.sourceforge.net/centipede - the best build/project
structure
		    a guy/gal could have! - Make Ant simple on complex Projects!
The avalanche has already started. It is too late for the pebbles to
vote.
-Ambassador Kosh


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: XInclude/CInclude Issue (Re: including dynamic data withXMLForm)

Posted by Ivelin Ivanov <iv...@apache.org>.
Thanks for the patch Oliver. That's how active I like most cocoon-users to
be like ;)

BTW, I was under the impression that it was recently decided that we will
merge XInclude and CInclude's code bases.
Only XInclude would remain with the added ability to act on both XInclude
and CInclude's namespaces.
How did you decide to improve CInclude vs fixing XInclude.


-=Ivelin


----- Original Message -----
From: "Andrew C. Oliver" <ac...@apache.org>
To: "cocoon users" <co...@xml.apache.org>
Cc: <co...@xml.apache.org>
Sent: Sunday, July 07, 2002 8:43 PM
Subject: Re: XInclude/CInclude Issue (Re: including dynamic data
withXMLForm)


> On Sun, 2002-07-07 at 20:51, Ivelin Ivanov wrote:
> > I'm sure there must be a more elegant way to solve the problem.
> > We just need to wait a bit to hear from the XInclude developers.
>
>
> Down low, too slow.  Patch incoming.  New syntax implemented for
> CInclude to allow xpointers.  Will need help testing as my CInclude
> experience includes about 1 entire day of goofing with the sucker.
>
> http://nagoya.apache.org/bugzilla/createattachment.cgi?id=10540
>
> I added a "select" attribute to CInclude that supports the XPointer
> syntax without the XPointer() part (just what would go between the
> ()'s).  (This is cleaner than the #XPointer() url-suffix nastiness).
>
> Hopefully, one of the CInclude geniuses will take a look at this and
> make it better.  I was baffled by the tall inheritance tree.  Mostly I
> borrowed the code from XInclude and made it look more like CInclude
> without actually understanding Avalon.
>
> Anyhow, if someone will kindly apply this or an even better version then
> my issue will be satisfied and probably others who might want to
> populate HTML lists, selects, etc in XMLForm webapps.  Plus it will
> solve the hole in between XInclude and CInclude.
>
> (anything in this email that sounds arrogant is actually a whole
> day/weekend of frustration suddenly alleviated -- exuberance)
>
> Thanks,
>
> -Andy
>
>
> >
> >
> >
> > ----- Original Message -----
> > From: "Andrew C. Oliver" <ac...@apache.org>
> > To: "cocoon users" <co...@xml.apache.org>
> > Sent: Sunday, July 07, 2002 7:01 PM
> > Subject: Re: XInclude/CInclude Issue (Re: including dynamic data
> > withXMLForm)
> >
> >
> > > <xi:include
> > > href="cocoon:/categories_combo.xml#xpointer(xformcategories/*)"
> > > parse="xml"/>
> > >
> > > does this for me:
> > >
> > > org.apache.cocoon.ResourceNotFoundException: Resource not found.:
> > > org.apache.excalibur.source.SourceNotFoundException: Resource not
found
> > >
> >
file:/opt/tomcat/webapps/cocoon/samples/bringmethis/content/form/cocoon:/cat
> > egories_combo.xml
> > >
> > > So it looks like I'm stuck with an additional transformation.  Which
(as
> > > a situation) bites.
> > >
> > > -Andy
> > >
> > >
> > > On Sun, 2002-07-07 at 17:23, Stephan Michels wrote:
> > > >
> > > > On 7 Jul 2002, Andrew C. Oliver wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > Thanks for your reply.  This is very close to what I want.
> > > > > So I'm almost there, but I have to have a root element on the
> > > > > categories_combo.xml "page".  Its <xmlformcategories>.  I only
> > > > > want whats in between the root element.  CInclude appears to not
> > > > > support the xpointer as it was trying to treat it as part of the
URL.
> > > > > I'd hoped that the "element" attribute of the <cinclude:include>
tag
> > > > > would allow this, but it actually seems to be for doing the
opposite.
> > > > > I suppose I can apply an additional layer of transformation that
takes
> > > > > the output, includes everything but the <xformcategories> and then
> > > > > includes its children, but that is very inefficient and kinda of a
> > pain,
> > > > > etc.
> > > > >
> > > > > Is there a more straightforward way to take only the children of
the
> > > > > xmformcategories, include them without including the
xmlformcategories
> > > > > tag?
> > > > >
> > > > > basically
> > > > >
> > > > > <cinclude:include src="cocoon:/categories_combo.xml"
> > > > > select="xformcategories/*"/>
> > > > >
> > > > > or something to that effect
> > > >
> > > > And whats the result of
> > > >
> > > > <xi:include
> > > > href="cocoon:/categories_combo.xml#xpointer(xformcategories/*)"
> > > > parse="xml"/>
> > > >
> > > > Perhaps you forget the 'parse' attribute?
> > > >
> > > > >
> > > > > source of requestform.xml:
> > > > >
> > > > > <?xml version="1.0"?>
> > > > >
> > > > >     <document xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002"
> > > > >
xmlns:cinclude="http://apache.org/cocoon/include/1.0">
> > > > >
> > > > >       <xf:form id="request-form" view="requestform"
> > > > > action="postrequest.html">
> > > > >
> > > > >         <error>
> > > > >           <xf:violations class="error"/>
> > > > >         </error>
> > > > >
> > > > >         <xf:selectMany ref="/category" selectUIType="listbox">
> > > > >             <xf:caption>Category</xf:caption>
> > > > >             <cinclude:include src="cocoon:/categories_combo.xml"
/>
> > > > >             <xf:violations class="error"/>
> > > > >         </xf:selectMany>
> > > > >
> > > > >         <xf:textbox ref="/title">
> > > > >             <xf:caption>Title/Item Name (no HTML)</xf:caption>
> > > > >             <xf:violations class="error"/>
> > > > >         </xf:textbox>
> > > > >
> > > > > .... snip ....
> > > > >
> > > > >
> > > > >         <xf:textbox ref="/password">
> > > > >             <xf:caption>Password</xf:caption>
> > > > >             <xf:violations class="error"/>
> > > > >         </xf:textbox>
> > > > >
> > > > >         <xf:submit id="next" class="button">
> > > > >           <xf:caption>Next</xf:caption>
> > > > >         </xf:submit>
> > > > >
> > > > >       </xf:form>
> > > > >
> > > > >     </document>
> > > > >
> > > > >
> > > > > output from categories_combo.xml:
> > > > >
> > > > > <xformcategories
xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002">
> > > > > <xf:item>
> > > > >
> > > > > <xf:caption>Original Art</xf:caption>
> > > > > <xf:value>16</xf:value>
> > > > > </xf:item>
> > > > > <xf:item>
> > > > > <xf:caption>Antiques</xf:caption>
> > > > > <xf:value>0</xf:value>
> > > > > </xf:item>
> > > > > <xf:item>
> > > > > <xf:caption>Books</xf:caption>
> > > > > <xf:value>1</xf:value>
> > > > > </xf:item>
> > > > >
> > > > > <xf:item>
> > > > > <xf:caption>Cars</xf:caption>
> > > > > <xf:value>2</xf:value>
> > > > > </xf:item>
> > > > > <xf:item>
> > > > > <xf:caption>Collectibles</xf:caption>
> > > > > <xf:value>3</xf:value>
> > > > > </xf:item>
> > > > > <xf:item>
> > > > > <xf:caption>Comics</xf:caption>
> > > > > <xf:value>4</xf:value>
> > > > >
> > > > > </xf:item>
> > > > > <xf:item>
> > > > > <xf:caption>Computers</xf:caption>
> > > > > <xf:value>5</xf:value>
> > > > > </xf:item>
> > > > > <xf:item>
> > > > > <xf:caption>Crafts</xf:caption>
> > > > > <xf:value>6</xf:value>
> > > > > </xf:item>
> > > > > <xf:item>
> > > > > <xf:caption>Electronics</xf:caption>
> > > > > <xf:value>7</xf:value>
> > > > >
> > > > > </xf:item>
> > > > > <xf:item>
> > > > > <xf:caption>Gifts</xf:caption>
> > > > > <xf:value>8</xf:value>
> > > > > </xf:item>
> > > > > <xf:item>
> > > > > <xf:caption>Loans</xf:caption>
> > > > > <xf:value>9</xf:value>
> > > > > </xf:item>
> > > > > <xf:item>
> > > > > <xf:caption>Music</xf:caption>
> > > > > <xf:value>10</xf:value>
> > > > >
> > > > > </xf:item>
> > > > > <xf:item>
> > > > > <xf:caption>Office Supplies</xf:caption>
> > > > > <xf:value>11</xf:value>
> > > > > </xf:item>
> > > > > <xf:item>
> > > > > <xf:caption>Other</xf:caption>
> > > > > <xf:value>12</xf:value>
> > > > > </xf:item>
> > > > > <xf:item>
> > > > > <xf:caption>Toys</xf:caption>
> > > > > <xf:value>13</xf:value>
> > > > >
> > > > > </xf:item>
> > > > > <xf:item>
> > > > > <xf:caption>Travel</xf:caption>
> > > > > <xf:value>14</xf:value>
> > > > > </xf:item>
> > > > > <xf:item>
> > > > > <xf:caption>Videos</xf:caption>
> > > > > <xf:value>15</xf:value>
> > > > > </xf:item>
> > > > > </xformcategories>
> > > > >
> > > > >
> > > > > -Andy
> > > > >
> > > > >
> > > > > On Sun, 2002-07-07 at 14:59, Stephan Michels wrote:
> > > > > >
> > > > > > 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" <ac...@apache.org>
> > > > > > > To: "cocoon users" <co...@xml.apache.org>
> > > > > > > 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:
> > <co...@xml.apache.org>
> > > > > > For additional commands, e-mail:
> > <co...@xml.apache.org>
> > > > > >
> > > > > --
> > > > > http://www.superlinksoftware.com - software solutions for business
> > > > > http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document
in
> > > > > Java
> > > > > http://krysalis.sourceforge.net/centipede - the best build/project
> > > > > structure
> > > > >     a guy/gal could have! - Make Ant simple on complex Projects!
> > > > > The avalanche has already started. It is too late for the pebbles
to
> > > > > vote.
> > > > > -Ambassador Kosh
> > > > >
> > > > >
> > > >
> ---------------------------------------------------------------------
> > > > > 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:
<co...@xml.apache.org>
> > > > > For additional commands, e-mail:
<co...@xml.apache.org>
> > > > >
> > > >
> > > >
> > >
> ---------------------------------------------------------------------
> > > > 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:
<co...@xml.apache.org>
> > > > For additional commands, e-mail:
<co...@xml.apache.org>
> > > >
> > > --
> > > http://www.superlinksoftware.com - software solutions for business
> > > http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
> > > Java
> > > http://krysalis.sourceforge.net/centipede - the best build/project
> > > structure
> > >     a guy/gal could have! - Make Ant simple on complex Projects!
> > > The avalanche has already started. It is too late for the pebbles to
> > > vote.
> > > -Ambassador Kosh
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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:     <co...@xml.apache.org>
> > > For additional commands, e-mail:   <co...@xml.apache.org>
> > >
> >
> >
> > ---------------------------------------------------------------------
> > 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:     <co...@xml.apache.org>
> > For additional commands, e-mail:   <co...@xml.apache.org>
> >
> --
> http://www.superlinksoftware.com - software solutions for business
> http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
> Java
> http://krysalis.sourceforge.net/centipede - the best build/project
> structure
>     a guy/gal could have! - Make Ant simple on complex Projects!
> The avalanche has already started. It is too late for the pebbles to
> vote.
> -Ambassador Kosh
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: XInclude/CInclude Issue (Re: including dynamic data withXMLForm)

Posted by Ivelin Ivanov <iv...@apache.org>.
Thanks for the patch Oliver. That's how active I like most cocoon-users to
be like ;)

BTW, I was under the impression that it was recently decided that we will
merge XInclude and CInclude's code bases.
Only XInclude would remain with the added ability to act on both XInclude
and CInclude's namespaces.
How did you decide to improve CInclude vs fixing XInclude.


-=Ivelin


----- Original Message -----
From: "Andrew C. Oliver" <ac...@apache.org>
To: "cocoon users" <co...@xml.apache.org>
Cc: <co...@xml.apache.org>
Sent: Sunday, July 07, 2002 8:43 PM
Subject: Re: XInclude/CInclude Issue (Re: including dynamic data
withXMLForm)


> On Sun, 2002-07-07 at 20:51, Ivelin Ivanov wrote:
> > I'm sure there must be a more elegant way to solve the problem.
> > We just need to wait a bit to hear from the XInclude developers.
>
>
> Down low, too slow.  Patch incoming.  New syntax implemented for
> CInclude to allow xpointers.  Will need help testing as my CInclude
> experience includes about 1 entire day of goofing with the sucker.
>
> http://nagoya.apache.org/bugzilla/createattachment.cgi?id=10540
>
> I added a "select" attribute to CInclude that supports the XPointer
> syntax without the XPointer() part (just what would go between the
> ()'s).  (This is cleaner than the #XPointer() url-suffix nastiness).
>
> Hopefully, one of the CInclude geniuses will take a look at this and
> make it better.  I was baffled by the tall inheritance tree.  Mostly I
> borrowed the code from XInclude and made it look more like CInclude
> without actually understanding Avalon.
>
> Anyhow, if someone will kindly apply this or an even better version then
> my issue will be satisfied and probably others who might want to
> populate HTML lists, selects, etc in XMLForm webapps.  Plus it will
> solve the hole in between XInclude and CInclude.
>
> (anything in this email that sounds arrogant is actually a whole
> day/weekend of frustration suddenly alleviated -- exuberance)
>
> Thanks,
>
> -Andy
>
>
> >
> >
> >
> > ----- Original Message -----
> > From: "Andrew C. Oliver" <ac...@apache.org>
> > To: "cocoon users" <co...@xml.apache.org>
> > Sent: Sunday, July 07, 2002 7:01 PM
> > Subject: Re: XInclude/CInclude Issue (Re: including dynamic data
> > withXMLForm)
> >
> >
> > > <xi:include
> > > href="cocoon:/categories_combo.xml#xpointer(xformcategories/*)"
> > > parse="xml"/>
> > >
> > > does this for me:
> > >
> > > org.apache.cocoon.ResourceNotFoundException: Resource not found.:
> > > org.apache.excalibur.source.SourceNotFoundException: Resource not
found
> > >
> >
file:/opt/tomcat/webapps/cocoon/samples/bringmethis/content/form/cocoon:/cat
> > egories_combo.xml
> > >
> > > So it looks like I'm stuck with an additional transformation.  Which
(as
> > > a situation) bites.
> > >
> > > -Andy
> > >
> > >
> > > On Sun, 2002-07-07 at 17:23, Stephan Michels wrote:
> > > >
> > > > On 7 Jul 2002, Andrew C. Oliver wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > Thanks for your reply.  This is very close to what I want.
> > > > > So I'm almost there, but I have to have a root element on the
> > > > > categories_combo.xml "page".  Its <xmlformcategories>.  I only
> > > > > want whats in between the root element.  CInclude appears to not
> > > > > support the xpointer as it was trying to treat it as part of the
URL.
> > > > > I'd hoped that the "element" attribute of the <cinclude:include>
tag
> > > > > would allow this, but it actually seems to be for doing the
opposite.
> > > > > I suppose I can apply an additional layer of transformation that
takes
> > > > > the output, includes everything but the <xformcategories> and then
> > > > > includes its children, but that is very inefficient and kinda of a
> > pain,
> > > > > etc.
> > > > >
> > > > > Is there a more straightforward way to take only the children of
the
> > > > > xmformcategories, include them without including the
xmlformcategories
> > > > > tag?
> > > > >
> > > > > basically
> > > > >
> > > > > <cinclude:include src="cocoon:/categories_combo.xml"
> > > > > select="xformcategories/*"/>
> > > > >
> > > > > or something to that effect
> > > >
> > > > And whats the result of
> > > >
> > > > <xi:include
> > > > href="cocoon:/categories_combo.xml#xpointer(xformcategories/*)"
> > > > parse="xml"/>
> > > >
> > > > Perhaps you forget the 'parse' attribute?
> > > >
> > > > >
> > > > > source of requestform.xml:
> > > > >
> > > > > <?xml version="1.0"?>
> > > > >
> > > > >     <document xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002"
> > > > >
xmlns:cinclude="http://apache.org/cocoon/include/1.0">
> > > > >
> > > > >       <xf:form id="request-form" view="requestform"
> > > > > action="postrequest.html">
> > > > >
> > > > >         <error>
> > > > >           <xf:violations class="error"/>
> > > > >         </error>
> > > > >
> > > > >         <xf:selectMany ref="/category" selectUIType="listbox">
> > > > >             <xf:caption>Category</xf:caption>
> > > > >             <cinclude:include src="cocoon:/categories_combo.xml"
/>
> > > > >             <xf:violations class="error"/>
> > > > >         </xf:selectMany>
> > > > >
> > > > >         <xf:textbox ref="/title">
> > > > >             <xf:caption>Title/Item Name (no HTML)</xf:caption>
> > > > >             <xf:violations class="error"/>
> > > > >         </xf:textbox>
> > > > >
> > > > > .... snip ....
> > > > >
> > > > >
> > > > >         <xf:textbox ref="/password">
> > > > >             <xf:caption>Password</xf:caption>
> > > > >             <xf:violations class="error"/>
> > > > >         </xf:textbox>
> > > > >
> > > > >         <xf:submit id="next" class="button">
> > > > >           <xf:caption>Next</xf:caption>
> > > > >         </xf:submit>
> > > > >
> > > > >       </xf:form>
> > > > >
> > > > >     </document>
> > > > >
> > > > >
> > > > > output from categories_combo.xml:
> > > > >
> > > > > <xformcategories
xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002">
> > > > > <xf:item>
> > > > >
> > > > > <xf:caption>Original Art</xf:caption>
> > > > > <xf:value>16</xf:value>
> > > > > </xf:item>
> > > > > <xf:item>
> > > > > <xf:caption>Antiques</xf:caption>
> > > > > <xf:value>0</xf:value>
> > > > > </xf:item>
> > > > > <xf:item>
> > > > > <xf:caption>Books</xf:caption>
> > > > > <xf:value>1</xf:value>
> > > > > </xf:item>
> > > > >
> > > > > <xf:item>
> > > > > <xf:caption>Cars</xf:caption>
> > > > > <xf:value>2</xf:value>
> > > > > </xf:item>
> > > > > <xf:item>
> > > > > <xf:caption>Collectibles</xf:caption>
> > > > > <xf:value>3</xf:value>
> > > > > </xf:item>
> > > > > <xf:item>
> > > > > <xf:caption>Comics</xf:caption>
> > > > > <xf:value>4</xf:value>
> > > > >
> > > > > </xf:item>
> > > > > <xf:item>
> > > > > <xf:caption>Computers</xf:caption>
> > > > > <xf:value>5</xf:value>
> > > > > </xf:item>
> > > > > <xf:item>
> > > > > <xf:caption>Crafts</xf:caption>
> > > > > <xf:value>6</xf:value>
> > > > > </xf:item>
> > > > > <xf:item>
> > > > > <xf:caption>Electronics</xf:caption>
> > > > > <xf:value>7</xf:value>
> > > > >
> > > > > </xf:item>
> > > > > <xf:item>
> > > > > <xf:caption>Gifts</xf:caption>
> > > > > <xf:value>8</xf:value>
> > > > > </xf:item>
> > > > > <xf:item>
> > > > > <xf:caption>Loans</xf:caption>
> > > > > <xf:value>9</xf:value>
> > > > > </xf:item>
> > > > > <xf:item>
> > > > > <xf:caption>Music</xf:caption>
> > > > > <xf:value>10</xf:value>
> > > > >
> > > > > </xf:item>
> > > > > <xf:item>
> > > > > <xf:caption>Office Supplies</xf:caption>
> > > > > <xf:value>11</xf:value>
> > > > > </xf:item>
> > > > > <xf:item>
> > > > > <xf:caption>Other</xf:caption>
> > > > > <xf:value>12</xf:value>
> > > > > </xf:item>
> > > > > <xf:item>
> > > > > <xf:caption>Toys</xf:caption>
> > > > > <xf:value>13</xf:value>
> > > > >
> > > > > </xf:item>
> > > > > <xf:item>
> > > > > <xf:caption>Travel</xf:caption>
> > > > > <xf:value>14</xf:value>
> > > > > </xf:item>
> > > > > <xf:item>
> > > > > <xf:caption>Videos</xf:caption>
> > > > > <xf:value>15</xf:value>
> > > > > </xf:item>
> > > > > </xformcategories>
> > > > >
> > > > >
> > > > > -Andy
> > > > >
> > > > >
> > > > > On Sun, 2002-07-07 at 14:59, Stephan Michels wrote:
> > > > > >
> > > > > > 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" <ac...@apache.org>
> > > > > > > To: "cocoon users" <co...@xml.apache.org>
> > > > > > > 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:
> > <co...@xml.apache.org>
> > > > > > For additional commands, e-mail:
> > <co...@xml.apache.org>
> > > > > >
> > > > > --
> > > > > http://www.superlinksoftware.com - software solutions for business
> > > > > http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document
in
> > > > > Java
> > > > > http://krysalis.sourceforge.net/centipede - the best build/project
> > > > > structure
> > > > >     a guy/gal could have! - Make Ant simple on complex Projects!
> > > > > The avalanche has already started. It is too late for the pebbles
to
> > > > > vote.
> > > > > -Ambassador Kosh
> > > > >
> > > > >
> > > >
> ---------------------------------------------------------------------
> > > > > 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:
<co...@xml.apache.org>
> > > > > For additional commands, e-mail:
<co...@xml.apache.org>
> > > > >
> > > >
> > > >
> > >
> ---------------------------------------------------------------------
> > > > 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:
<co...@xml.apache.org>
> > > > For additional commands, e-mail:
<co...@xml.apache.org>
> > > >
> > > --
> > > http://www.superlinksoftware.com - software solutions for business
> > > http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
> > > Java
> > > http://krysalis.sourceforge.net/centipede - the best build/project
> > > structure
> > >     a guy/gal could have! - Make Ant simple on complex Projects!
> > > The avalanche has already started. It is too late for the pebbles to
> > > vote.
> > > -Ambassador Kosh
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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:     <co...@xml.apache.org>
> > > For additional commands, e-mail:   <co...@xml.apache.org>
> > >
> >
> >
> > ---------------------------------------------------------------------
> > 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:     <co...@xml.apache.org>
> > For additional commands, e-mail:   <co...@xml.apache.org>
> >
> --
> http://www.superlinksoftware.com - software solutions for business
> http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
> Java
> http://krysalis.sourceforge.net/centipede - the best build/project
> structure
>     a guy/gal could have! - Make Ant simple on complex Projects!
> The avalanche has already started. It is too late for the pebbles to
> vote.
> -Ambassador Kosh
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>


---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: XInclude/CInclude Issue (Re: including dynamic data withXMLForm)

Posted by "Andrew C. Oliver" <ac...@apache.org>.
On Sun, 2002-07-07 at 20:51, Ivelin Ivanov wrote:
> I'm sure there must be a more elegant way to solve the problem.
> We just need to wait a bit to hear from the XInclude developers.


Down low, too slow.  Patch incoming.  New syntax implemented for
CInclude to allow xpointers.  Will need help testing as my CInclude
experience includes about 1 entire day of goofing with the sucker.  

http://nagoya.apache.org/bugzilla/createattachment.cgi?id=10540

I added a "select" attribute to CInclude that supports the XPointer
syntax without the XPointer() part (just what would go between the
()'s).  (This is cleaner than the #XPointer() url-suffix nastiness).

Hopefully, one of the CInclude geniuses will take a look at this and
make it better.  I was baffled by the tall inheritance tree.  Mostly I
borrowed the code from XInclude and made it look more like CInclude
without actually understanding Avalon.

Anyhow, if someone will kindly apply this or an even better version then
my issue will be satisfied and probably others who might want to
populate HTML lists, selects, etc in XMLForm webapps.  Plus it will
solve the hole in between XInclude and CInclude.

(anything in this email that sounds arrogant is actually a whole
day/weekend of frustration suddenly alleviated -- exuberance)

Thanks,

-Andy


> 
> 
> 
> ----- Original Message -----
> From: "Andrew C. Oliver" <ac...@apache.org>
> To: "cocoon users" <co...@xml.apache.org>
> Sent: Sunday, July 07, 2002 7:01 PM
> Subject: Re: XInclude/CInclude Issue (Re: including dynamic data
> withXMLForm)
> 
> 
> > <xi:include
> > href="cocoon:/categories_combo.xml#xpointer(xformcategories/*)"
> > parse="xml"/>
> >
> > does this for me:
> >
> > org.apache.cocoon.ResourceNotFoundException: Resource not found.:
> > org.apache.excalibur.source.SourceNotFoundException: Resource not found
> >
> file:/opt/tomcat/webapps/cocoon/samples/bringmethis/content/form/cocoon:/cat
> egories_combo.xml
> >
> > So it looks like I'm stuck with an additional transformation.  Which (as
> > a situation) bites.
> >
> > -Andy
> >
> >
> > On Sun, 2002-07-07 at 17:23, Stephan Michels wrote:
> > >
> > > On 7 Jul 2002, Andrew C. Oliver wrote:
> > >
> > > > Hi,
> > > >
> > > > Thanks for your reply.  This is very close to what I want.
> > > > So I'm almost there, but I have to have a root element on the
> > > > categories_combo.xml "page".  Its <xmlformcategories>.  I only
> > > > want whats in between the root element.  CInclude appears to not
> > > > support the xpointer as it was trying to treat it as part of the URL.
> > > > I'd hoped that the "element" attribute of the <cinclude:include> tag
> > > > would allow this, but it actually seems to be for doing the opposite.
> > > > I suppose I can apply an additional layer of transformation that takes
> > > > the output, includes everything but the <xformcategories> and then
> > > > includes its children, but that is very inefficient and kinda of a
> pain,
> > > > etc.
> > > >
> > > > Is there a more straightforward way to take only the children of the
> > > > xmformcategories, include them without including the xmlformcategories
> > > > tag?
> > > >
> > > > basically
> > > >
> > > > <cinclude:include src="cocoon:/categories_combo.xml"
> > > > select="xformcategories/*"/>
> > > >
> > > > or something to that effect
> > >
> > > And whats the result of
> > >
> > > <xi:include
> > > href="cocoon:/categories_combo.xml#xpointer(xformcategories/*)"
> > > parse="xml"/>
> > >
> > > Perhaps you forget the 'parse' attribute?
> > >
> > > >
> > > > source of requestform.xml:
> > > >
> > > > <?xml version="1.0"?>
> > > >
> > > >     <document xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002"
> > > >               xmlns:cinclude="http://apache.org/cocoon/include/1.0">
> > > >
> > > >       <xf:form id="request-form" view="requestform"
> > > > action="postrequest.html">
> > > >
> > > >         <error>
> > > >           <xf:violations class="error"/>
> > > >         </error>
> > > >
> > > >         <xf:selectMany ref="/category" selectUIType="listbox">
> > > >             <xf:caption>Category</xf:caption>
> > > >             <cinclude:include src="cocoon:/categories_combo.xml" />
> > > >             <xf:violations class="error"/>
> > > >         </xf:selectMany>
> > > >
> > > >         <xf:textbox ref="/title">
> > > >             <xf:caption>Title/Item Name (no HTML)</xf:caption>
> > > >             <xf:violations class="error"/>
> > > >         </xf:textbox>
> > > >
> > > > .... snip ....
> > > >
> > > >
> > > >         <xf:textbox ref="/password">
> > > >             <xf:caption>Password</xf:caption>
> > > >             <xf:violations class="error"/>
> > > >         </xf:textbox>
> > > >
> > > >         <xf:submit id="next" class="button">
> > > >           <xf:caption>Next</xf:caption>
> > > >         </xf:submit>
> > > >
> > > >       </xf:form>
> > > >
> > > >     </document>
> > > >
> > > >
> > > > output from categories_combo.xml:
> > > >
> > > > <xformcategories xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002">
> > > > <xf:item>
> > > >
> > > > <xf:caption>Original Art</xf:caption>
> > > > <xf:value>16</xf:value>
> > > > </xf:item>
> > > > <xf:item>
> > > > <xf:caption>Antiques</xf:caption>
> > > > <xf:value>0</xf:value>
> > > > </xf:item>
> > > > <xf:item>
> > > > <xf:caption>Books</xf:caption>
> > > > <xf:value>1</xf:value>
> > > > </xf:item>
> > > >
> > > > <xf:item>
> > > > <xf:caption>Cars</xf:caption>
> > > > <xf:value>2</xf:value>
> > > > </xf:item>
> > > > <xf:item>
> > > > <xf:caption>Collectibles</xf:caption>
> > > > <xf:value>3</xf:value>
> > > > </xf:item>
> > > > <xf:item>
> > > > <xf:caption>Comics</xf:caption>
> > > > <xf:value>4</xf:value>
> > > >
> > > > </xf:item>
> > > > <xf:item>
> > > > <xf:caption>Computers</xf:caption>
> > > > <xf:value>5</xf:value>
> > > > </xf:item>
> > > > <xf:item>
> > > > <xf:caption>Crafts</xf:caption>
> > > > <xf:value>6</xf:value>
> > > > </xf:item>
> > > > <xf:item>
> > > > <xf:caption>Electronics</xf:caption>
> > > > <xf:value>7</xf:value>
> > > >
> > > > </xf:item>
> > > > <xf:item>
> > > > <xf:caption>Gifts</xf:caption>
> > > > <xf:value>8</xf:value>
> > > > </xf:item>
> > > > <xf:item>
> > > > <xf:caption>Loans</xf:caption>
> > > > <xf:value>9</xf:value>
> > > > </xf:item>
> > > > <xf:item>
> > > > <xf:caption>Music</xf:caption>
> > > > <xf:value>10</xf:value>
> > > >
> > > > </xf:item>
> > > > <xf:item>
> > > > <xf:caption>Office Supplies</xf:caption>
> > > > <xf:value>11</xf:value>
> > > > </xf:item>
> > > > <xf:item>
> > > > <xf:caption>Other</xf:caption>
> > > > <xf:value>12</xf:value>
> > > > </xf:item>
> > > > <xf:item>
> > > > <xf:caption>Toys</xf:caption>
> > > > <xf:value>13</xf:value>
> > > >
> > > > </xf:item>
> > > > <xf:item>
> > > > <xf:caption>Travel</xf:caption>
> > > > <xf:value>14</xf:value>
> > > > </xf:item>
> > > > <xf:item>
> > > > <xf:caption>Videos</xf:caption>
> > > > <xf:value>15</xf:value>
> > > > </xf:item>
> > > > </xformcategories>
> > > >
> > > >
> > > > -Andy
> > > >
> > > >
> > > > On Sun, 2002-07-07 at 14:59, Stephan Michels wrote:
> > > > >
> > > > > 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" <ac...@apache.org>
> > > > > > To: "cocoon users" <co...@xml.apache.org>
> > > > > > 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:
> <co...@xml.apache.org>
> > > > > For additional commands, e-mail:
> <co...@xml.apache.org>
> > > > >
> > > > --
> > > > http://www.superlinksoftware.com - software solutions for business
> > > > http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
> > > > Java
> > > > http://krysalis.sourceforge.net/centipede - the best build/project
> > > > structure
> > > >     a guy/gal could have! - Make Ant simple on complex Projects!
> > > > The avalanche has already started. It is too late for the pebbles to
> > > > vote.
> > > > -Ambassador Kosh
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > 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:     <co...@xml.apache.org>
> > > > For additional commands, e-mail:   <co...@xml.apache.org>
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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:     <co...@xml.apache.org>
> > > For additional commands, e-mail:   <co...@xml.apache.org>
> > >
> > --
> > http://www.superlinksoftware.com - software solutions for business
> > http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
> > Java
> > http://krysalis.sourceforge.net/centipede - the best build/project
> > structure
> >     a guy/gal could have! - Make Ant simple on complex Projects!
> > The avalanche has already started. It is too late for the pebbles to
> > vote.
> > -Ambassador Kosh
> >
> >
> > ---------------------------------------------------------------------
> > 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:     <co...@xml.apache.org>
> > For additional commands, e-mail:   <co...@xml.apache.org>
> >
> 
> 
> ---------------------------------------------------------------------
> 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:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
> 
-- 
http://www.superlinksoftware.com - software solutions for business
http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
Java                            
http://krysalis.sourceforge.net/centipede - the best build/project
structure
		    a guy/gal could have! - Make Ant simple on complex Projects!
The avalanche has already started. It is too late for the pebbles to
vote.
-Ambassador Kosh


---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: XInclude/CInclude Issue (Re: including dynamic data withXMLForm)

Posted by "Andrew C. Oliver" <ac...@apache.org>.
On Sun, 2002-07-07 at 20:51, Ivelin Ivanov wrote:
> I'm sure there must be a more elegant way to solve the problem.
> We just need to wait a bit to hear from the XInclude developers.


Down low, too slow.  Patch incoming.  New syntax implemented for
CInclude to allow xpointers.  Will need help testing as my CInclude
experience includes about 1 entire day of goofing with the sucker.  

http://nagoya.apache.org/bugzilla/createattachment.cgi?id=10540

I added a "select" attribute to CInclude that supports the XPointer
syntax without the XPointer() part (just what would go between the
()'s).  (This is cleaner than the #XPointer() url-suffix nastiness).

Hopefully, one of the CInclude geniuses will take a look at this and
make it better.  I was baffled by the tall inheritance tree.  Mostly I
borrowed the code from XInclude and made it look more like CInclude
without actually understanding Avalon.

Anyhow, if someone will kindly apply this or an even better version then
my issue will be satisfied and probably others who might want to
populate HTML lists, selects, etc in XMLForm webapps.  Plus it will
solve the hole in between XInclude and CInclude.

(anything in this email that sounds arrogant is actually a whole
day/weekend of frustration suddenly alleviated -- exuberance)

Thanks,

-Andy


> 
> 
> 
> ----- Original Message -----
> From: "Andrew C. Oliver" <ac...@apache.org>
> To: "cocoon users" <co...@xml.apache.org>
> Sent: Sunday, July 07, 2002 7:01 PM
> Subject: Re: XInclude/CInclude Issue (Re: including dynamic data
> withXMLForm)
> 
> 
> > <xi:include
> > href="cocoon:/categories_combo.xml#xpointer(xformcategories/*)"
> > parse="xml"/>
> >
> > does this for me:
> >
> > org.apache.cocoon.ResourceNotFoundException: Resource not found.:
> > org.apache.excalibur.source.SourceNotFoundException: Resource not found
> >
> file:/opt/tomcat/webapps/cocoon/samples/bringmethis/content/form/cocoon:/cat
> egories_combo.xml
> >
> > So it looks like I'm stuck with an additional transformation.  Which (as
> > a situation) bites.
> >
> > -Andy
> >
> >
> > On Sun, 2002-07-07 at 17:23, Stephan Michels wrote:
> > >
> > > On 7 Jul 2002, Andrew C. Oliver wrote:
> > >
> > > > Hi,
> > > >
> > > > Thanks for your reply.  This is very close to what I want.
> > > > So I'm almost there, but I have to have a root element on the
> > > > categories_combo.xml "page".  Its <xmlformcategories>.  I only
> > > > want whats in between the root element.  CInclude appears to not
> > > > support the xpointer as it was trying to treat it as part of the URL.
> > > > I'd hoped that the "element" attribute of the <cinclude:include> tag
> > > > would allow this, but it actually seems to be for doing the opposite.
> > > > I suppose I can apply an additional layer of transformation that takes
> > > > the output, includes everything but the <xformcategories> and then
> > > > includes its children, but that is very inefficient and kinda of a
> pain,
> > > > etc.
> > > >
> > > > Is there a more straightforward way to take only the children of the
> > > > xmformcategories, include them without including the xmlformcategories
> > > > tag?
> > > >
> > > > basically
> > > >
> > > > <cinclude:include src="cocoon:/categories_combo.xml"
> > > > select="xformcategories/*"/>
> > > >
> > > > or something to that effect
> > >
> > > And whats the result of
> > >
> > > <xi:include
> > > href="cocoon:/categories_combo.xml#xpointer(xformcategories/*)"
> > > parse="xml"/>
> > >
> > > Perhaps you forget the 'parse' attribute?
> > >
> > > >
> > > > source of requestform.xml:
> > > >
> > > > <?xml version="1.0"?>
> > > >
> > > >     <document xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002"
> > > >               xmlns:cinclude="http://apache.org/cocoon/include/1.0">
> > > >
> > > >       <xf:form id="request-form" view="requestform"
> > > > action="postrequest.html">
> > > >
> > > >         <error>
> > > >           <xf:violations class="error"/>
> > > >         </error>
> > > >
> > > >         <xf:selectMany ref="/category" selectUIType="listbox">
> > > >             <xf:caption>Category</xf:caption>
> > > >             <cinclude:include src="cocoon:/categories_combo.xml" />
> > > >             <xf:violations class="error"/>
> > > >         </xf:selectMany>
> > > >
> > > >         <xf:textbox ref="/title">
> > > >             <xf:caption>Title/Item Name (no HTML)</xf:caption>
> > > >             <xf:violations class="error"/>
> > > >         </xf:textbox>
> > > >
> > > > .... snip ....
> > > >
> > > >
> > > >         <xf:textbox ref="/password">
> > > >             <xf:caption>Password</xf:caption>
> > > >             <xf:violations class="error"/>
> > > >         </xf:textbox>
> > > >
> > > >         <xf:submit id="next" class="button">
> > > >           <xf:caption>Next</xf:caption>
> > > >         </xf:submit>
> > > >
> > > >       </xf:form>
> > > >
> > > >     </document>
> > > >
> > > >
> > > > output from categories_combo.xml:
> > > >
> > > > <xformcategories xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002">
> > > > <xf:item>
> > > >
> > > > <xf:caption>Original Art</xf:caption>
> > > > <xf:value>16</xf:value>
> > > > </xf:item>
> > > > <xf:item>
> > > > <xf:caption>Antiques</xf:caption>
> > > > <xf:value>0</xf:value>
> > > > </xf:item>
> > > > <xf:item>
> > > > <xf:caption>Books</xf:caption>
> > > > <xf:value>1</xf:value>
> > > > </xf:item>
> > > >
> > > > <xf:item>
> > > > <xf:caption>Cars</xf:caption>
> > > > <xf:value>2</xf:value>
> > > > </xf:item>
> > > > <xf:item>
> > > > <xf:caption>Collectibles</xf:caption>
> > > > <xf:value>3</xf:value>
> > > > </xf:item>
> > > > <xf:item>
> > > > <xf:caption>Comics</xf:caption>
> > > > <xf:value>4</xf:value>
> > > >
> > > > </xf:item>
> > > > <xf:item>
> > > > <xf:caption>Computers</xf:caption>
> > > > <xf:value>5</xf:value>
> > > > </xf:item>
> > > > <xf:item>
> > > > <xf:caption>Crafts</xf:caption>
> > > > <xf:value>6</xf:value>
> > > > </xf:item>
> > > > <xf:item>
> > > > <xf:caption>Electronics</xf:caption>
> > > > <xf:value>7</xf:value>
> > > >
> > > > </xf:item>
> > > > <xf:item>
> > > > <xf:caption>Gifts</xf:caption>
> > > > <xf:value>8</xf:value>
> > > > </xf:item>
> > > > <xf:item>
> > > > <xf:caption>Loans</xf:caption>
> > > > <xf:value>9</xf:value>
> > > > </xf:item>
> > > > <xf:item>
> > > > <xf:caption>Music</xf:caption>
> > > > <xf:value>10</xf:value>
> > > >
> > > > </xf:item>
> > > > <xf:item>
> > > > <xf:caption>Office Supplies</xf:caption>
> > > > <xf:value>11</xf:value>
> > > > </xf:item>
> > > > <xf:item>
> > > > <xf:caption>Other</xf:caption>
> > > > <xf:value>12</xf:value>
> > > > </xf:item>
> > > > <xf:item>
> > > > <xf:caption>Toys</xf:caption>
> > > > <xf:value>13</xf:value>
> > > >
> > > > </xf:item>
> > > > <xf:item>
> > > > <xf:caption>Travel</xf:caption>
> > > > <xf:value>14</xf:value>
> > > > </xf:item>
> > > > <xf:item>
> > > > <xf:caption>Videos</xf:caption>
> > > > <xf:value>15</xf:value>
> > > > </xf:item>
> > > > </xformcategories>
> > > >
> > > >
> > > > -Andy
> > > >
> > > >
> > > > On Sun, 2002-07-07 at 14:59, Stephan Michels wrote:
> > > > >
> > > > > 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" <ac...@apache.org>
> > > > > > To: "cocoon users" <co...@xml.apache.org>
> > > > > > 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:
> <co...@xml.apache.org>
> > > > > For additional commands, e-mail:
> <co...@xml.apache.org>
> > > > >
> > > > --
> > > > http://www.superlinksoftware.com - software solutions for business
> > > > http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
> > > > Java
> > > > http://krysalis.sourceforge.net/centipede - the best build/project
> > > > structure
> > > >     a guy/gal could have! - Make Ant simple on complex Projects!
> > > > The avalanche has already started. It is too late for the pebbles to
> > > > vote.
> > > > -Ambassador Kosh
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > 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:     <co...@xml.apache.org>
> > > > For additional commands, e-mail:   <co...@xml.apache.org>
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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:     <co...@xml.apache.org>
> > > For additional commands, e-mail:   <co...@xml.apache.org>
> > >
> > --
> > http://www.superlinksoftware.com - software solutions for business
> > http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
> > Java
> > http://krysalis.sourceforge.net/centipede - the best build/project
> > structure
> >     a guy/gal could have! - Make Ant simple on complex Projects!
> > The avalanche has already started. It is too late for the pebbles to
> > vote.
> > -Ambassador Kosh
> >
> >
> > ---------------------------------------------------------------------
> > 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:     <co...@xml.apache.org>
> > For additional commands, e-mail:   <co...@xml.apache.org>
> >
> 
> 
> ---------------------------------------------------------------------
> 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:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
> 
-- 
http://www.superlinksoftware.com - software solutions for business
http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
Java                            
http://krysalis.sourceforge.net/centipede - the best build/project
structure
		    a guy/gal could have! - Make Ant simple on complex Projects!
The avalanche has already started. It is too late for the pebbles to
vote.
-Ambassador Kosh


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: XInclude/CInclude Issue (Re: including dynamic data withXMLForm)

Posted by Ivelin Ivanov <iv...@apache.org>.
I'm sure there must be a more elegant way to solve the problem.
We just need to wait a bit to hear from the XInclude developers.


----- Original Message -----
From: "Andrew C. Oliver" <ac...@apache.org>
To: "cocoon users" <co...@xml.apache.org>
Sent: Sunday, July 07, 2002 7:01 PM
Subject: Re: XInclude/CInclude Issue (Re: including dynamic data
withXMLForm)


> <xi:include
> href="cocoon:/categories_combo.xml#xpointer(xformcategories/*)"
> parse="xml"/>
>
> does this for me:
>
> org.apache.cocoon.ResourceNotFoundException: Resource not found.:
> org.apache.excalibur.source.SourceNotFoundException: Resource not found
>
file:/opt/tomcat/webapps/cocoon/samples/bringmethis/content/form/cocoon:/cat
egories_combo.xml
>
> So it looks like I'm stuck with an additional transformation.  Which (as
> a situation) bites.
>
> -Andy
>
>
> On Sun, 2002-07-07 at 17:23, Stephan Michels wrote:
> >
> > On 7 Jul 2002, Andrew C. Oliver wrote:
> >
> > > Hi,
> > >
> > > Thanks for your reply.  This is very close to what I want.
> > > So I'm almost there, but I have to have a root element on the
> > > categories_combo.xml "page".  Its <xmlformcategories>.  I only
> > > want whats in between the root element.  CInclude appears to not
> > > support the xpointer as it was trying to treat it as part of the URL.
> > > I'd hoped that the "element" attribute of the <cinclude:include> tag
> > > would allow this, but it actually seems to be for doing the opposite.
> > > I suppose I can apply an additional layer of transformation that takes
> > > the output, includes everything but the <xformcategories> and then
> > > includes its children, but that is very inefficient and kinda of a
pain,
> > > etc.
> > >
> > > Is there a more straightforward way to take only the children of the
> > > xmformcategories, include them without including the xmlformcategories
> > > tag?
> > >
> > > basically
> > >
> > > <cinclude:include src="cocoon:/categories_combo.xml"
> > > select="xformcategories/*"/>
> > >
> > > or something to that effect
> >
> > And whats the result of
> >
> > <xi:include
> > href="cocoon:/categories_combo.xml#xpointer(xformcategories/*)"
> > parse="xml"/>
> >
> > Perhaps you forget the 'parse' attribute?
> >
> > >
> > > source of requestform.xml:
> > >
> > > <?xml version="1.0"?>
> > >
> > >     <document xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002"
> > >               xmlns:cinclude="http://apache.org/cocoon/include/1.0">
> > >
> > >       <xf:form id="request-form" view="requestform"
> > > action="postrequest.html">
> > >
> > >         <error>
> > >           <xf:violations class="error"/>
> > >         </error>
> > >
> > >         <xf:selectMany ref="/category" selectUIType="listbox">
> > >             <xf:caption>Category</xf:caption>
> > >             <cinclude:include src="cocoon:/categories_combo.xml" />
> > >             <xf:violations class="error"/>
> > >         </xf:selectMany>
> > >
> > >         <xf:textbox ref="/title">
> > >             <xf:caption>Title/Item Name (no HTML)</xf:caption>
> > >             <xf:violations class="error"/>
> > >         </xf:textbox>
> > >
> > > .... snip ....
> > >
> > >
> > >         <xf:textbox ref="/password">
> > >             <xf:caption>Password</xf:caption>
> > >             <xf:violations class="error"/>
> > >         </xf:textbox>
> > >
> > >         <xf:submit id="next" class="button">
> > >           <xf:caption>Next</xf:caption>
> > >         </xf:submit>
> > >
> > >       </xf:form>
> > >
> > >     </document>
> > >
> > >
> > > output from categories_combo.xml:
> > >
> > > <xformcategories xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002">
> > > <xf:item>
> > >
> > > <xf:caption>Original Art</xf:caption>
> > > <xf:value>16</xf:value>
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Antiques</xf:caption>
> > > <xf:value>0</xf:value>
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Books</xf:caption>
> > > <xf:value>1</xf:value>
> > > </xf:item>
> > >
> > > <xf:item>
> > > <xf:caption>Cars</xf:caption>
> > > <xf:value>2</xf:value>
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Collectibles</xf:caption>
> > > <xf:value>3</xf:value>
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Comics</xf:caption>
> > > <xf:value>4</xf:value>
> > >
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Computers</xf:caption>
> > > <xf:value>5</xf:value>
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Crafts</xf:caption>
> > > <xf:value>6</xf:value>
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Electronics</xf:caption>
> > > <xf:value>7</xf:value>
> > >
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Gifts</xf:caption>
> > > <xf:value>8</xf:value>
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Loans</xf:caption>
> > > <xf:value>9</xf:value>
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Music</xf:caption>
> > > <xf:value>10</xf:value>
> > >
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Office Supplies</xf:caption>
> > > <xf:value>11</xf:value>
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Other</xf:caption>
> > > <xf:value>12</xf:value>
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Toys</xf:caption>
> > > <xf:value>13</xf:value>
> > >
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Travel</xf:caption>
> > > <xf:value>14</xf:value>
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Videos</xf:caption>
> > > <xf:value>15</xf:value>
> > > </xf:item>
> > > </xformcategories>
> > >
> > >
> > > -Andy
> > >
> > >
> > > On Sun, 2002-07-07 at 14:59, Stephan Michels wrote:
> > > >
> > > > 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" <ac...@apache.org>
> > > > > To: "cocoon users" <co...@xml.apache.org>
> > > > > 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:
<co...@xml.apache.org>
> > > > For additional commands, e-mail:
<co...@xml.apache.org>
> > > >
> > > --
> > > http://www.superlinksoftware.com - software solutions for business
> > > http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
> > > Java
> > > http://krysalis.sourceforge.net/centipede - the best build/project
> > > structure
> > >     a guy/gal could have! - Make Ant simple on complex Projects!
> > > The avalanche has already started. It is too late for the pebbles to
> > > vote.
> > > -Ambassador Kosh
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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:     <co...@xml.apache.org>
> > > For additional commands, e-mail:   <co...@xml.apache.org>
> > >
> >
> >
> > ---------------------------------------------------------------------
> > 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:     <co...@xml.apache.org>
> > For additional commands, e-mail:   <co...@xml.apache.org>
> >
> --
> http://www.superlinksoftware.com - software solutions for business
> http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
> Java
> http://krysalis.sourceforge.net/centipede - the best build/project
> structure
>     a guy/gal could have! - Make Ant simple on complex Projects!
> The avalanche has already started. It is too late for the pebbles to
> vote.
> -Ambassador Kosh
>
>
> ---------------------------------------------------------------------
> 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:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Re: XInclude/CInclude Issue (Re: including dynamic data withXMLForm)

Posted by Ivelin Ivanov <iv...@apache.org>.
I'm sure there must be a more elegant way to solve the problem.
We just need to wait a bit to hear from the XInclude developers.


----- Original Message -----
From: "Andrew C. Oliver" <ac...@apache.org>
To: "cocoon users" <co...@xml.apache.org>
Sent: Sunday, July 07, 2002 7:01 PM
Subject: Re: XInclude/CInclude Issue (Re: including dynamic data
withXMLForm)


> <xi:include
> href="cocoon:/categories_combo.xml#xpointer(xformcategories/*)"
> parse="xml"/>
>
> does this for me:
>
> org.apache.cocoon.ResourceNotFoundException: Resource not found.:
> org.apache.excalibur.source.SourceNotFoundException: Resource not found
>
file:/opt/tomcat/webapps/cocoon/samples/bringmethis/content/form/cocoon:/cat
egories_combo.xml
>
> So it looks like I'm stuck with an additional transformation.  Which (as
> a situation) bites.
>
> -Andy
>
>
> On Sun, 2002-07-07 at 17:23, Stephan Michels wrote:
> >
> > On 7 Jul 2002, Andrew C. Oliver wrote:
> >
> > > Hi,
> > >
> > > Thanks for your reply.  This is very close to what I want.
> > > So I'm almost there, but I have to have a root element on the
> > > categories_combo.xml "page".  Its <xmlformcategories>.  I only
> > > want whats in between the root element.  CInclude appears to not
> > > support the xpointer as it was trying to treat it as part of the URL.
> > > I'd hoped that the "element" attribute of the <cinclude:include> tag
> > > would allow this, but it actually seems to be for doing the opposite.
> > > I suppose I can apply an additional layer of transformation that takes
> > > the output, includes everything but the <xformcategories> and then
> > > includes its children, but that is very inefficient and kinda of a
pain,
> > > etc.
> > >
> > > Is there a more straightforward way to take only the children of the
> > > xmformcategories, include them without including the xmlformcategories
> > > tag?
> > >
> > > basically
> > >
> > > <cinclude:include src="cocoon:/categories_combo.xml"
> > > select="xformcategories/*"/>
> > >
> > > or something to that effect
> >
> > And whats the result of
> >
> > <xi:include
> > href="cocoon:/categories_combo.xml#xpointer(xformcategories/*)"
> > parse="xml"/>
> >
> > Perhaps you forget the 'parse' attribute?
> >
> > >
> > > source of requestform.xml:
> > >
> > > <?xml version="1.0"?>
> > >
> > >     <document xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002"
> > >               xmlns:cinclude="http://apache.org/cocoon/include/1.0">
> > >
> > >       <xf:form id="request-form" view="requestform"
> > > action="postrequest.html">
> > >
> > >         <error>
> > >           <xf:violations class="error"/>
> > >         </error>
> > >
> > >         <xf:selectMany ref="/category" selectUIType="listbox">
> > >             <xf:caption>Category</xf:caption>
> > >             <cinclude:include src="cocoon:/categories_combo.xml" />
> > >             <xf:violations class="error"/>
> > >         </xf:selectMany>
> > >
> > >         <xf:textbox ref="/title">
> > >             <xf:caption>Title/Item Name (no HTML)</xf:caption>
> > >             <xf:violations class="error"/>
> > >         </xf:textbox>
> > >
> > > .... snip ....
> > >
> > >
> > >         <xf:textbox ref="/password">
> > >             <xf:caption>Password</xf:caption>
> > >             <xf:violations class="error"/>
> > >         </xf:textbox>
> > >
> > >         <xf:submit id="next" class="button">
> > >           <xf:caption>Next</xf:caption>
> > >         </xf:submit>
> > >
> > >       </xf:form>
> > >
> > >     </document>
> > >
> > >
> > > output from categories_combo.xml:
> > >
> > > <xformcategories xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002">
> > > <xf:item>
> > >
> > > <xf:caption>Original Art</xf:caption>
> > > <xf:value>16</xf:value>
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Antiques</xf:caption>
> > > <xf:value>0</xf:value>
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Books</xf:caption>
> > > <xf:value>1</xf:value>
> > > </xf:item>
> > >
> > > <xf:item>
> > > <xf:caption>Cars</xf:caption>
> > > <xf:value>2</xf:value>
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Collectibles</xf:caption>
> > > <xf:value>3</xf:value>
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Comics</xf:caption>
> > > <xf:value>4</xf:value>
> > >
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Computers</xf:caption>
> > > <xf:value>5</xf:value>
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Crafts</xf:caption>
> > > <xf:value>6</xf:value>
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Electronics</xf:caption>
> > > <xf:value>7</xf:value>
> > >
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Gifts</xf:caption>
> > > <xf:value>8</xf:value>
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Loans</xf:caption>
> > > <xf:value>9</xf:value>
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Music</xf:caption>
> > > <xf:value>10</xf:value>
> > >
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Office Supplies</xf:caption>
> > > <xf:value>11</xf:value>
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Other</xf:caption>
> > > <xf:value>12</xf:value>
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Toys</xf:caption>
> > > <xf:value>13</xf:value>
> > >
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Travel</xf:caption>
> > > <xf:value>14</xf:value>
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Videos</xf:caption>
> > > <xf:value>15</xf:value>
> > > </xf:item>
> > > </xformcategories>
> > >
> > >
> > > -Andy
> > >
> > >
> > > On Sun, 2002-07-07 at 14:59, Stephan Michels wrote:
> > > >
> > > > 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" <ac...@apache.org>
> > > > > To: "cocoon users" <co...@xml.apache.org>
> > > > > 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:
<co...@xml.apache.org>
> > > > For additional commands, e-mail:
<co...@xml.apache.org>
> > > >
> > > --
> > > http://www.superlinksoftware.com - software solutions for business
> > > http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
> > > Java
> > > http://krysalis.sourceforge.net/centipede - the best build/project
> > > structure
> > >     a guy/gal could have! - Make Ant simple on complex Projects!
> > > The avalanche has already started. It is too late for the pebbles to
> > > vote.
> > > -Ambassador Kosh
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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:     <co...@xml.apache.org>
> > > For additional commands, e-mail:   <co...@xml.apache.org>
> > >
> >
> >
> > ---------------------------------------------------------------------
> > 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:     <co...@xml.apache.org>
> > For additional commands, e-mail:   <co...@xml.apache.org>
> >
> --
> http://www.superlinksoftware.com - software solutions for business
> http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
> Java
> http://krysalis.sourceforge.net/centipede - the best build/project
> structure
>     a guy/gal could have! - Make Ant simple on complex Projects!
> The avalanche has already started. It is too late for the pebbles to
> vote.
> -Ambassador Kosh
>
>
> ---------------------------------------------------------------------
> 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:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
>


---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: XInclude/CInclude Issue (Re: including dynamic data with XMLForm)

Posted by "Andrew C. Oliver" <ac...@apache.org>.
Humm.  I'll try that.  I still hope someone will look at my patch to 
CInclude as:

1. I imagine that its faster
2. I like the syntax better
3. I don't know why it shouldn't support some form of element selection.

-Andy

Stephan Michels wrote:

>On 7 Jul 2002, Andrew C. Oliver wrote:
>
>  
>
>><xi:include
>>href="cocoon:/categories_combo.xml#xpointer(xformcategories/*)"
>>parse="xml"/>
>>
>>does this for me:
>>
>>org.apache.cocoon.ResourceNotFoundException: Resource not found.:
>>org.apache.excalibur.source.SourceNotFoundException: Resource not found
>>file:/opt/tomcat/webapps/cocoon/samples/bringmethis/content/form/cocoon:/categories_combo.xml
>>
>>So it looks like I'm stuck with an additional transformation.  Which (as
>>a situation) bites.
>>
>>    
>>
>
>I think the problem is the 'base' attribute. If you don't specify the
>'base' the XInclude transformer takes the location from the document,
>which is, I think,
>'file:/opt/tomcat/webapps/cocoon/samples/bringmethis/content/form/'
>
>So, to prevent that, you could create an base attribute
>
><xi:include xml:base="cocoon:/"
>href="categories_combo.xml#xpointer(xformcategories/*)"
>parse="xml"/>
>
>  
>
>>On Sun, 2002-07-07 at 17:23, Stephan Michels wrote:
>>    
>>
>>>On 7 Jul 2002, Andrew C. Oliver wrote:
>>>
>>>      
>>>
>>>>Hi,
>>>>
>>>>Thanks for your reply.  This is very close to what I want.
>>>>So I'm almost there, but I have to have a root element on the
>>>>categories_combo.xml "page".  Its <xmlformcategories>.  I only
>>>>want whats in between the root element.  CInclude appears to not
>>>>support the xpointer as it was trying to treat it as part of the URL.
>>>>I'd hoped that the "element" attribute of the <cinclude:include> tag
>>>>would allow this, but it actually seems to be for doing the opposite.
>>>>I suppose I can apply an additional layer of transformation that takes
>>>>the output, includes everything but the <xformcategories> and then
>>>>includes its children, but that is very inefficient and kinda of a pain,
>>>>etc.
>>>>
>>>>Is there a more straightforward way to take only the children of the
>>>>xmformcategories, include them without including the xmlformcategories
>>>>tag?
>>>>
>>>>basically
>>>>
>>>><cinclude:include src="cocoon:/categories_combo.xml"
>>>>select="xformcategories/*"/>
>>>>
>>>>or something to that effect
>>>>        
>>>>
>>>And whats the result of
>>>
>>><xi:include
>>>href="cocoon:/categories_combo.xml#xpointer(xformcategories/*)"
>>>parse="xml"/>
>>>
>>>Perhaps you forget the 'parse' attribute?
>>>
>>>      
>>>
>>>>source of requestform.xml:
>>>>
>>>><?xml version="1.0"?>
>>>>
>>>>    <document xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002"
>>>>              xmlns:cinclude="http://apache.org/cocoon/include/1.0">
>>>>
>>>>      <xf:form id="request-form" view="requestform"
>>>>action="postrequest.html">
>>>>
>>>>        <error>
>>>>          <xf:violations class="error"/>
>>>>        </error>
>>>>
>>>>        <xf:selectMany ref="/category" selectUIType="listbox">
>>>>            <xf:caption>Category</xf:caption>
>>>>            <cinclude:include src="cocoon:/categories_combo.xml" />
>>>>            <xf:violations class="error"/>
>>>>        </xf:selectMany>
>>>>
>>>>        <xf:textbox ref="/title">
>>>>            <xf:caption>Title/Item Name (no HTML)</xf:caption>
>>>>            <xf:violations class="error"/>
>>>>        </xf:textbox>
>>>>
>>>>.... snip ....
>>>>
>>>>
>>>>        <xf:textbox ref="/password">
>>>>            <xf:caption>Password</xf:caption>
>>>>            <xf:violations class="error"/>
>>>>        </xf:textbox>
>>>>
>>>>        <xf:submit id="next" class="button">
>>>>          <xf:caption>Next</xf:caption>
>>>>        </xf:submit>
>>>>
>>>>      </xf:form>
>>>>
>>>>    </document>
>>>>
>>>>
>>>>output from categories_combo.xml:
>>>>
>>>><xformcategories xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002">
>>>><xf:item>
>>>>
>>>><xf:caption>Original Art</xf:caption>
>>>><xf:value>16</xf:value>
>>>></xf:item>
>>>><xf:item>
>>>><xf:caption>Antiques</xf:caption>
>>>><xf:value>0</xf:value>
>>>></xf:item>
>>>><xf:item>
>>>><xf:caption>Books</xf:caption>
>>>><xf:value>1</xf:value>
>>>></xf:item>
>>>>
>>>><xf:item>
>>>><xf:caption>Cars</xf:caption>
>>>><xf:value>2</xf:value>
>>>></xf:item>
>>>><xf:item>
>>>><xf:caption>Collectibles</xf:caption>
>>>><xf:value>3</xf:value>
>>>></xf:item>
>>>><xf:item>
>>>><xf:caption>Comics</xf:caption>
>>>><xf:value>4</xf:value>
>>>>
>>>></xf:item>
>>>><xf:item>
>>>><xf:caption>Computers</xf:caption>
>>>><xf:value>5</xf:value>
>>>></xf:item>
>>>><xf:item>
>>>><xf:caption>Crafts</xf:caption>
>>>><xf:value>6</xf:value>
>>>></xf:item>
>>>><xf:item>
>>>><xf:caption>Electronics</xf:caption>
>>>><xf:value>7</xf:value>
>>>>
>>>></xf:item>
>>>><xf:item>
>>>><xf:caption>Gifts</xf:caption>
>>>><xf:value>8</xf:value>
>>>></xf:item>
>>>><xf:item>
>>>><xf:caption>Loans</xf:caption>
>>>><xf:value>9</xf:value>
>>>></xf:item>
>>>><xf:item>
>>>><xf:caption>Music</xf:caption>
>>>><xf:value>10</xf:value>
>>>>
>>>></xf:item>
>>>><xf:item>
>>>><xf:caption>Office Supplies</xf:caption>
>>>><xf:value>11</xf:value>
>>>></xf:item>
>>>><xf:item>
>>>><xf:caption>Other</xf:caption>
>>>><xf:value>12</xf:value>
>>>></xf:item>
>>>><xf:item>
>>>><xf:caption>Toys</xf:caption>
>>>><xf:value>13</xf:value>
>>>>
>>>></xf:item>
>>>><xf:item>
>>>><xf:caption>Travel</xf:caption>
>>>><xf:value>14</xf:value>
>>>></xf:item>
>>>><xf:item>
>>>><xf:caption>Videos</xf:caption>
>>>><xf:value>15</xf:value>
>>>></xf:item>
>>>></xformcategories>
>>>>
>>>>
>>>>-Andy
>>>>
>>>>
>>>>On Sun, 2002-07-07 at 14:59, Stephan Michels wrote:
>>>>        
>>>>
>>>>>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" <ac...@apache.org>
>>>>>>To: "cocoon users" <co...@xml.apache.org>
>>>>>>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:     <co...@xml.apache.org>
>>>>>For additional commands, e-mail:   <co...@xml.apache.org>
>>>>>
>>>>>          
>>>>>
>>>>--
>>>>http://www.superlinksoftware.com - software solutions for business
>>>>http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
>>>>Java
>>>>http://krysalis.sourceforge.net/centipede - the best build/project
>>>>structure
>>>>		    a guy/gal could have! - Make Ant simple on complex Projects!
>>>>The avalanche has already started. It is too late for the pebbles to
>>>>vote.
>>>>-Ambassador Kosh
>>>>
>>>>
>>>>---------------------------------------------------------------------
>>>>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:     <co...@xml.apache.org>
>>>>For additional commands, e-mail:   <co...@xml.apache.org>
>>>>
>>>>        
>>>>
>>>---------------------------------------------------------------------
>>>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:     <co...@xml.apache.org>
>>>For additional commands, e-mail:   <co...@xml.apache.org>
>>>
>>>      
>>>
>>--
>>http://www.superlinksoftware.com - software solutions for business
>>http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
>>Java
>>http://krysalis.sourceforge.net/centipede - the best build/project
>>structure
>>		    a guy/gal could have! - Make Ant simple on complex Projects!
>>The avalanche has already started. It is too late for the pebbles to
>>vote.
>>-Ambassador Kosh
>>
>>
>>---------------------------------------------------------------------
>>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:     <co...@xml.apache.org>
>>For additional commands, e-mail:   <co...@xml.apache.org>
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>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:     <co...@xml.apache.org>
>For additional commands, e-mail:   <co...@xml.apache.org>
>
>
>  
>




---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: XInclude/CInclude Issue (Re: including dynamic data with XMLForm)

Posted by Stephan Michels <st...@apache.org>.
On 7 Jul 2002, Andrew C. Oliver wrote:

> <xi:include
> href="cocoon:/categories_combo.xml#xpointer(xformcategories/*)"
> parse="xml"/>
>
> does this for me:
>
> org.apache.cocoon.ResourceNotFoundException: Resource not found.:
> org.apache.excalibur.source.SourceNotFoundException: Resource not found
> file:/opt/tomcat/webapps/cocoon/samples/bringmethis/content/form/cocoon:/categories_combo.xml
>
> So it looks like I'm stuck with an additional transformation.  Which (as
> a situation) bites.
>

I think the problem is the 'base' attribute. If you don't specify the
'base' the XInclude transformer takes the location from the document,
which is, I think,
'file:/opt/tomcat/webapps/cocoon/samples/bringmethis/content/form/'

So, to prevent that, you could create an base attribute

<xi:include xml:base="cocoon:/"
href="categories_combo.xml#xpointer(xformcategories/*)"
parse="xml"/>

>
> On Sun, 2002-07-07 at 17:23, Stephan Michels wrote:
> >
> > On 7 Jul 2002, Andrew C. Oliver wrote:
> >
> > > Hi,
> > >
> > > Thanks for your reply.  This is very close to what I want.
> > > So I'm almost there, but I have to have a root element on the
> > > categories_combo.xml "page".  Its <xmlformcategories>.  I only
> > > want whats in between the root element.  CInclude appears to not
> > > support the xpointer as it was trying to treat it as part of the URL.
> > > I'd hoped that the "element" attribute of the <cinclude:include> tag
> > > would allow this, but it actually seems to be for doing the opposite.
> > > I suppose I can apply an additional layer of transformation that takes
> > > the output, includes everything but the <xformcategories> and then
> > > includes its children, but that is very inefficient and kinda of a pain,
> > > etc.
> > >
> > > Is there a more straightforward way to take only the children of the
> > > xmformcategories, include them without including the xmlformcategories
> > > tag?
> > >
> > > basically
> > >
> > > <cinclude:include src="cocoon:/categories_combo.xml"
> > > select="xformcategories/*"/>
> > >
> > > or something to that effect
> >
> > And whats the result of
> >
> > <xi:include
> > href="cocoon:/categories_combo.xml#xpointer(xformcategories/*)"
> > parse="xml"/>
> >
> > Perhaps you forget the 'parse' attribute?
> >
> > >
> > > source of requestform.xml:
> > >
> > > <?xml version="1.0"?>
> > >
> > >     <document xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002"
> > >               xmlns:cinclude="http://apache.org/cocoon/include/1.0">
> > >
> > >       <xf:form id="request-form" view="requestform"
> > > action="postrequest.html">
> > >
> > >         <error>
> > >           <xf:violations class="error"/>
> > >         </error>
> > >
> > >         <xf:selectMany ref="/category" selectUIType="listbox">
> > >             <xf:caption>Category</xf:caption>
> > >             <cinclude:include src="cocoon:/categories_combo.xml" />
> > >             <xf:violations class="error"/>
> > >         </xf:selectMany>
> > >
> > >         <xf:textbox ref="/title">
> > >             <xf:caption>Title/Item Name (no HTML)</xf:caption>
> > >             <xf:violations class="error"/>
> > >         </xf:textbox>
> > >
> > > .... snip ....
> > >
> > >
> > >         <xf:textbox ref="/password">
> > >             <xf:caption>Password</xf:caption>
> > >             <xf:violations class="error"/>
> > >         </xf:textbox>
> > >
> > >         <xf:submit id="next" class="button">
> > >           <xf:caption>Next</xf:caption>
> > >         </xf:submit>
> > >
> > >       </xf:form>
> > >
> > >     </document>
> > >
> > >
> > > output from categories_combo.xml:
> > >
> > > <xformcategories xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002">
> > > <xf:item>
> > >
> > > <xf:caption>Original Art</xf:caption>
> > > <xf:value>16</xf:value>
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Antiques</xf:caption>
> > > <xf:value>0</xf:value>
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Books</xf:caption>
> > > <xf:value>1</xf:value>
> > > </xf:item>
> > >
> > > <xf:item>
> > > <xf:caption>Cars</xf:caption>
> > > <xf:value>2</xf:value>
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Collectibles</xf:caption>
> > > <xf:value>3</xf:value>
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Comics</xf:caption>
> > > <xf:value>4</xf:value>
> > >
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Computers</xf:caption>
> > > <xf:value>5</xf:value>
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Crafts</xf:caption>
> > > <xf:value>6</xf:value>
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Electronics</xf:caption>
> > > <xf:value>7</xf:value>
> > >
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Gifts</xf:caption>
> > > <xf:value>8</xf:value>
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Loans</xf:caption>
> > > <xf:value>9</xf:value>
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Music</xf:caption>
> > > <xf:value>10</xf:value>
> > >
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Office Supplies</xf:caption>
> > > <xf:value>11</xf:value>
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Other</xf:caption>
> > > <xf:value>12</xf:value>
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Toys</xf:caption>
> > > <xf:value>13</xf:value>
> > >
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Travel</xf:caption>
> > > <xf:value>14</xf:value>
> > > </xf:item>
> > > <xf:item>
> > > <xf:caption>Videos</xf:caption>
> > > <xf:value>15</xf:value>
> > > </xf:item>
> > > </xformcategories>
> > >
> > >
> > > -Andy
> > >
> > >
> > > On Sun, 2002-07-07 at 14:59, Stephan Michels wrote:
> > > >
> > > > 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" <ac...@apache.org>
> > > > > To: "cocoon users" <co...@xml.apache.org>
> > > > > 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:     <co...@xml.apache.org>
> > > > For additional commands, e-mail:   <co...@xml.apache.org>
> > > >
> > > --
> > > http://www.superlinksoftware.com - software solutions for business
> > > http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
> > > Java
> > > http://krysalis.sourceforge.net/centipede - the best build/project
> > > structure
> > > 		    a guy/gal could have! - Make Ant simple on complex Projects!
> > > The avalanche has already started. It is too late for the pebbles to
> > > vote.
> > > -Ambassador Kosh
> > >
> > >
> > > ---------------------------------------------------------------------
> > > 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:     <co...@xml.apache.org>
> > > For additional commands, e-mail:   <co...@xml.apache.org>
> > >
> >
> >
> > ---------------------------------------------------------------------
> > 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:     <co...@xml.apache.org>
> > For additional commands, e-mail:   <co...@xml.apache.org>
> >
> --
> http://www.superlinksoftware.com - software solutions for business
> http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
> Java
> http://krysalis.sourceforge.net/centipede - the best build/project
> structure
> 		    a guy/gal could have! - Make Ant simple on complex Projects!
> The avalanche has already started. It is too late for the pebbles to
> vote.
> -Ambassador Kosh
>
>
> ---------------------------------------------------------------------
> 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:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
>


---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: XInclude/CInclude Issue (Re: including dynamic data with XMLForm)

Posted by "Andrew C. Oliver" <ac...@apache.org>.
<xi:include
href="cocoon:/categories_combo.xml#xpointer(xformcategories/*)"
parse="xml"/>

does this for me:

org.apache.cocoon.ResourceNotFoundException: Resource not found.:
org.apache.excalibur.source.SourceNotFoundException: Resource not found
file:/opt/tomcat/webapps/cocoon/samples/bringmethis/content/form/cocoon:/categories_combo.xml

So it looks like I'm stuck with an additional transformation.  Which (as
a situation) bites.

-Andy


On Sun, 2002-07-07 at 17:23, Stephan Michels wrote:
> 
> On 7 Jul 2002, Andrew C. Oliver wrote:
> 
> > Hi,
> >
> > Thanks for your reply.  This is very close to what I want.
> > So I'm almost there, but I have to have a root element on the
> > categories_combo.xml "page".  Its <xmlformcategories>.  I only
> > want whats in between the root element.  CInclude appears to not
> > support the xpointer as it was trying to treat it as part of the URL.
> > I'd hoped that the "element" attribute of the <cinclude:include> tag
> > would allow this, but it actually seems to be for doing the opposite.
> > I suppose I can apply an additional layer of transformation that takes
> > the output, includes everything but the <xformcategories> and then
> > includes its children, but that is very inefficient and kinda of a pain,
> > etc.
> >
> > Is there a more straightforward way to take only the children of the
> > xmformcategories, include them without including the xmlformcategories
> > tag?
> >
> > basically
> >
> > <cinclude:include src="cocoon:/categories_combo.xml"
> > select="xformcategories/*"/>
> >
> > or something to that effect
> 
> And whats the result of
> 
> <xi:include
> href="cocoon:/categories_combo.xml#xpointer(xformcategories/*)"
> parse="xml"/>
> 
> Perhaps you forget the 'parse' attribute?
> 
> >
> > source of requestform.xml:
> >
> > <?xml version="1.0"?>
> >
> >     <document xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002"
> >               xmlns:cinclude="http://apache.org/cocoon/include/1.0">
> >
> >       <xf:form id="request-form" view="requestform"
> > action="postrequest.html">
> >
> >         <error>
> >           <xf:violations class="error"/>
> >         </error>
> >
> >         <xf:selectMany ref="/category" selectUIType="listbox">
> >             <xf:caption>Category</xf:caption>
> >             <cinclude:include src="cocoon:/categories_combo.xml" />
> >             <xf:violations class="error"/>
> >         </xf:selectMany>
> >
> >         <xf:textbox ref="/title">
> >             <xf:caption>Title/Item Name (no HTML)</xf:caption>
> >             <xf:violations class="error"/>
> >         </xf:textbox>
> >
> > .... snip ....
> >
> >
> >         <xf:textbox ref="/password">
> >             <xf:caption>Password</xf:caption>
> >             <xf:violations class="error"/>
> >         </xf:textbox>
> >
> >         <xf:submit id="next" class="button">
> >           <xf:caption>Next</xf:caption>
> >         </xf:submit>
> >
> >       </xf:form>
> >
> >     </document>
> >
> >
> > output from categories_combo.xml:
> >
> > <xformcategories xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002">
> > <xf:item>
> >
> > <xf:caption>Original Art</xf:caption>
> > <xf:value>16</xf:value>
> > </xf:item>
> > <xf:item>
> > <xf:caption>Antiques</xf:caption>
> > <xf:value>0</xf:value>
> > </xf:item>
> > <xf:item>
> > <xf:caption>Books</xf:caption>
> > <xf:value>1</xf:value>
> > </xf:item>
> >
> > <xf:item>
> > <xf:caption>Cars</xf:caption>
> > <xf:value>2</xf:value>
> > </xf:item>
> > <xf:item>
> > <xf:caption>Collectibles</xf:caption>
> > <xf:value>3</xf:value>
> > </xf:item>
> > <xf:item>
> > <xf:caption>Comics</xf:caption>
> > <xf:value>4</xf:value>
> >
> > </xf:item>
> > <xf:item>
> > <xf:caption>Computers</xf:caption>
> > <xf:value>5</xf:value>
> > </xf:item>
> > <xf:item>
> > <xf:caption>Crafts</xf:caption>
> > <xf:value>6</xf:value>
> > </xf:item>
> > <xf:item>
> > <xf:caption>Electronics</xf:caption>
> > <xf:value>7</xf:value>
> >
> > </xf:item>
> > <xf:item>
> > <xf:caption>Gifts</xf:caption>
> > <xf:value>8</xf:value>
> > </xf:item>
> > <xf:item>
> > <xf:caption>Loans</xf:caption>
> > <xf:value>9</xf:value>
> > </xf:item>
> > <xf:item>
> > <xf:caption>Music</xf:caption>
> > <xf:value>10</xf:value>
> >
> > </xf:item>
> > <xf:item>
> > <xf:caption>Office Supplies</xf:caption>
> > <xf:value>11</xf:value>
> > </xf:item>
> > <xf:item>
> > <xf:caption>Other</xf:caption>
> > <xf:value>12</xf:value>
> > </xf:item>
> > <xf:item>
> > <xf:caption>Toys</xf:caption>
> > <xf:value>13</xf:value>
> >
> > </xf:item>
> > <xf:item>
> > <xf:caption>Travel</xf:caption>
> > <xf:value>14</xf:value>
> > </xf:item>
> > <xf:item>
> > <xf:caption>Videos</xf:caption>
> > <xf:value>15</xf:value>
> > </xf:item>
> > </xformcategories>
> >
> >
> > -Andy
> >
> >
> > On Sun, 2002-07-07 at 14:59, Stephan Michels wrote:
> > >
> > > 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" <ac...@apache.org>
> > > > To: "cocoon users" <co...@xml.apache.org>
> > > > 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:     <co...@xml.apache.org>
> > > For additional commands, e-mail:   <co...@xml.apache.org>
> > >
> > --
> > http://www.superlinksoftware.com - software solutions for business
> > http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
> > Java
> > http://krysalis.sourceforge.net/centipede - the best build/project
> > structure
> > 		    a guy/gal could have! - Make Ant simple on complex Projects!
> > The avalanche has already started. It is too late for the pebbles to
> > vote.
> > -Ambassador Kosh
> >
> >
> > ---------------------------------------------------------------------
> > 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:     <co...@xml.apache.org>
> > For additional commands, e-mail:   <co...@xml.apache.org>
> >
> 
> 
> ---------------------------------------------------------------------
> 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:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
> 
-- 
http://www.superlinksoftware.com - software solutions for business
http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
Java                            
http://krysalis.sourceforge.net/centipede - the best build/project
structure
		    a guy/gal could have! - Make Ant simple on complex Projects!
The avalanche has already started. It is too late for the pebbles to
vote.
-Ambassador Kosh


---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: XInclude/CInclude Issue (Re: including dynamic data with XMLForm)

Posted by Stephan Michels <st...@apache.org>.
On 7 Jul 2002, Andrew C. Oliver wrote:

> Hi,
>
> Thanks for your reply.  This is very close to what I want.
> So I'm almost there, but I have to have a root element on the
> categories_combo.xml "page".  Its <xmlformcategories>.  I only
> want whats in between the root element.  CInclude appears to not
> support the xpointer as it was trying to treat it as part of the URL.
> I'd hoped that the "element" attribute of the <cinclude:include> tag
> would allow this, but it actually seems to be for doing the opposite.
> I suppose I can apply an additional layer of transformation that takes
> the output, includes everything but the <xformcategories> and then
> includes its children, but that is very inefficient and kinda of a pain,
> etc.
>
> Is there a more straightforward way to take only the children of the
> xmformcategories, include them without including the xmlformcategories
> tag?
>
> basically
>
> <cinclude:include src="cocoon:/categories_combo.xml"
> select="xformcategories/*"/>
>
> or something to that effect

And whats the result of

<xi:include
href="cocoon:/categories_combo.xml#xpointer(xformcategories/*)"
parse="xml"/>

Perhaps you forget the 'parse' attribute?

>
> source of requestform.xml:
>
> <?xml version="1.0"?>
>
>     <document xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002"
>               xmlns:cinclude="http://apache.org/cocoon/include/1.0">
>
>       <xf:form id="request-form" view="requestform"
> action="postrequest.html">
>
>         <error>
>           <xf:violations class="error"/>
>         </error>
>
>         <xf:selectMany ref="/category" selectUIType="listbox">
>             <xf:caption>Category</xf:caption>
>             <cinclude:include src="cocoon:/categories_combo.xml" />
>             <xf:violations class="error"/>
>         </xf:selectMany>
>
>         <xf:textbox ref="/title">
>             <xf:caption>Title/Item Name (no HTML)</xf:caption>
>             <xf:violations class="error"/>
>         </xf:textbox>
>
> .... snip ....
>
>
>         <xf:textbox ref="/password">
>             <xf:caption>Password</xf:caption>
>             <xf:violations class="error"/>
>         </xf:textbox>
>
>         <xf:submit id="next" class="button">
>           <xf:caption>Next</xf:caption>
>         </xf:submit>
>
>       </xf:form>
>
>     </document>
>
>
> output from categories_combo.xml:
>
> <xformcategories xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002">
> <xf:item>
>
> <xf:caption>Original Art</xf:caption>
> <xf:value>16</xf:value>
> </xf:item>
> <xf:item>
> <xf:caption>Antiques</xf:caption>
> <xf:value>0</xf:value>
> </xf:item>
> <xf:item>
> <xf:caption>Books</xf:caption>
> <xf:value>1</xf:value>
> </xf:item>
>
> <xf:item>
> <xf:caption>Cars</xf:caption>
> <xf:value>2</xf:value>
> </xf:item>
> <xf:item>
> <xf:caption>Collectibles</xf:caption>
> <xf:value>3</xf:value>
> </xf:item>
> <xf:item>
> <xf:caption>Comics</xf:caption>
> <xf:value>4</xf:value>
>
> </xf:item>
> <xf:item>
> <xf:caption>Computers</xf:caption>
> <xf:value>5</xf:value>
> </xf:item>
> <xf:item>
> <xf:caption>Crafts</xf:caption>
> <xf:value>6</xf:value>
> </xf:item>
> <xf:item>
> <xf:caption>Electronics</xf:caption>
> <xf:value>7</xf:value>
>
> </xf:item>
> <xf:item>
> <xf:caption>Gifts</xf:caption>
> <xf:value>8</xf:value>
> </xf:item>
> <xf:item>
> <xf:caption>Loans</xf:caption>
> <xf:value>9</xf:value>
> </xf:item>
> <xf:item>
> <xf:caption>Music</xf:caption>
> <xf:value>10</xf:value>
>
> </xf:item>
> <xf:item>
> <xf:caption>Office Supplies</xf:caption>
> <xf:value>11</xf:value>
> </xf:item>
> <xf:item>
> <xf:caption>Other</xf:caption>
> <xf:value>12</xf:value>
> </xf:item>
> <xf:item>
> <xf:caption>Toys</xf:caption>
> <xf:value>13</xf:value>
>
> </xf:item>
> <xf:item>
> <xf:caption>Travel</xf:caption>
> <xf:value>14</xf:value>
> </xf:item>
> <xf:item>
> <xf:caption>Videos</xf:caption>
> <xf:value>15</xf:value>
> </xf:item>
> </xformcategories>
>
>
> -Andy
>
>
> On Sun, 2002-07-07 at 14:59, Stephan Michels wrote:
> >
> > 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" <ac...@apache.org>
> > > To: "cocoon users" <co...@xml.apache.org>
> > > 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:     <co...@xml.apache.org>
> > For additional commands, e-mail:   <co...@xml.apache.org>
> >
> --
> http://www.superlinksoftware.com - software solutions for business
> http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
> Java
> http://krysalis.sourceforge.net/centipede - the best build/project
> structure
> 		    a guy/gal could have! - Make Ant simple on complex Projects!
> The avalanche has already started. It is too late for the pebbles to
> vote.
> -Ambassador Kosh
>
>
> ---------------------------------------------------------------------
> 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:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
>


---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: XInclude/CInclude Issue (Re: including dynamic data with XMLForm)

Posted by "Andrew C. Oliver" <ac...@apache.org>.
Hi,

Thanks for your reply.  This is very close to what I want.
So I'm almost there, but I have to have a root element on the 
categories_combo.xml "page".  Its <xmlformcategories>.  I only
want whats in between the root element.  CInclude appears to not
support the xpointer as it was trying to treat it as part of the URL.
I'd hoped that the "element" attribute of the <cinclude:include> tag
would allow this, but it actually seems to be for doing the opposite.  
I suppose I can apply an additional layer of transformation that takes
the output, includes everything but the <xformcategories> and then 
includes its children, but that is very inefficient and kinda of a pain,
etc.  

Is there a more straightforward way to take only the children of the
xmformcategories, include them without including the xmlformcategories
tag?

basically

<cinclude:include src="cocoon:/categories_combo.xml"
select="xformcategories/*"/>

or something to that effect


source of requestform.xml:

<?xml version="1.0"?>

    <document xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002"
              xmlns:cinclude="http://apache.org/cocoon/include/1.0">

      <xf:form id="request-form" view="requestform"
action="postrequest.html">

        <error>
          <xf:violations class="error"/>
        </error>

        <xf:selectMany ref="/category" selectUIType="listbox">
            <xf:caption>Category</xf:caption>
            <cinclude:include src="cocoon:/categories_combo.xml" />
            <xf:violations class="error"/>
        </xf:selectMany>

        <xf:textbox ref="/title">
            <xf:caption>Title/Item Name (no HTML)</xf:caption>
            <xf:violations class="error"/>
        </xf:textbox>

.... snip ....


        <xf:textbox ref="/password">
            <xf:caption>Password</xf:caption>
            <xf:violations class="error"/>
        </xf:textbox>

        <xf:submit id="next" class="button">
          <xf:caption>Next</xf:caption>
        </xf:submit>

      </xf:form>
      
    </document>
                    

output from categories_combo.xml:

<xformcategories xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002">
<xf:item>

<xf:caption>Original Art</xf:caption>
<xf:value>16</xf:value>
</xf:item>
<xf:item>
<xf:caption>Antiques</xf:caption>
<xf:value>0</xf:value>
</xf:item>
<xf:item>
<xf:caption>Books</xf:caption>
<xf:value>1</xf:value>
</xf:item>

<xf:item>
<xf:caption>Cars</xf:caption>
<xf:value>2</xf:value>
</xf:item>
<xf:item>
<xf:caption>Collectibles</xf:caption>
<xf:value>3</xf:value>
</xf:item>
<xf:item>
<xf:caption>Comics</xf:caption>
<xf:value>4</xf:value>

</xf:item>
<xf:item>
<xf:caption>Computers</xf:caption>
<xf:value>5</xf:value>
</xf:item>
<xf:item>
<xf:caption>Crafts</xf:caption>
<xf:value>6</xf:value>
</xf:item>
<xf:item>
<xf:caption>Electronics</xf:caption>
<xf:value>7</xf:value>

</xf:item>
<xf:item>
<xf:caption>Gifts</xf:caption>
<xf:value>8</xf:value>
</xf:item>
<xf:item>
<xf:caption>Loans</xf:caption>
<xf:value>9</xf:value>
</xf:item>
<xf:item>
<xf:caption>Music</xf:caption>
<xf:value>10</xf:value>

</xf:item>
<xf:item>
<xf:caption>Office Supplies</xf:caption>
<xf:value>11</xf:value>
</xf:item>
<xf:item>
<xf:caption>Other</xf:caption>
<xf:value>12</xf:value>
</xf:item>
<xf:item>
<xf:caption>Toys</xf:caption>
<xf:value>13</xf:value>

</xf:item>
<xf:item>
<xf:caption>Travel</xf:caption>
<xf:value>14</xf:value>
</xf:item>
<xf:item>
<xf:caption>Videos</xf:caption>
<xf:value>15</xf:value>
</xf:item>
</xformcategories>


-Andy


On Sun, 2002-07-07 at 14:59, Stephan Michels wrote:
> 
> 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" <ac...@apache.org>
> > To: "cocoon users" <co...@xml.apache.org>
> > 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:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
> 
-- 
http://www.superlinksoftware.com - software solutions for business
http://jakarta.apache.org/poi - Excel/Word/OLE 2 Compound Document in
Java                            
http://krysalis.sourceforge.net/centipede - the best build/project
structure
		    a guy/gal could have! - Make Ant simple on complex Projects!
The avalanche has already started. It is too late for the pebbles to
vote.
-Ambassador Kosh


---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: XInclude/CInclude Issue (Re: including dynamic data with XMLForm)

Posted by Stephan Michels <st...@apache.org>.
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" <ac...@apache.org>
> To: "cocoon users" <co...@xml.apache.org>
> 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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>