yes, just create pipelines that generate xml like what you currently have in
static files.

something like this:

<map:pipeline>
        <map:match pattern="my-xmlform.xml">
                <map:generate type="serverpages" src="my-xmlform.xsp"/>

                <!-- transformations -->
                ...

                <map:serialize type="xml"/>
        </map:match>
</map:pipeline>

<map:pipeline>
        <map:match pattern="my-xmlform.html">
                <map:generate src="cocoon:/my-xmlform.xml"/>

                <map:transform type="xmlform"/>

                <!-- other transformations -->
                ...

                <map:serialize type="html"/>
        </map:match>
</map:pipeline>


or the simple variant:

<map:pipeline>
        <map:match pattern="my-xmlform.html">
                <map:generate type="serverpages" src="my-xmlform.xsp"/>

                <!-- transformations -->
                ...

                <map:transform type="xmlform"/>

                <!-- other transformations -->
                ...

                <map:serialize type="html"/>
        </map:match>
</map:pipeline>


> -----Urspr�ngliche Nachricht-----
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Auftrag von morten svan�s
> Gesendet: Dienstag, 10. Juni 2003 20:21
> An: [EMAIL PROTECTED]
> Betreff: Re: Dynamically build xmlforms
>
>
> Hei Marco,
> maybe I'm just making it more difficult than it is.
> I guess I could make some xsp scripts that writes
> the forms on the fly. Is that what you meant ?
>
> Morten Svanaes
>
>
> ----- Original Message -----
> From: "Marco Rolappe" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 10, 2003 2:13 AM
> Subject: AW: Dynamically build xmlforms
>
>
> > hej morten,
> >
> > I don't see a reason why you shouldn't be able to dynamically generate
> your
> > xmlforms. write corresponding pipelines for the xmlform descriptions,
> apply
> > the xmlform transformations and you should be set.
> >
> >
> > -----Urspr�ngliche Nachricht-----
> > Von: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]
> Auftrag
> > von morten svan�s
> > Gesendet: Dienstag, 10. Juni 2003 17:58
> > An: [EMAIL PROTECTED]
> > Betreff: Dynamically build xmlforms
> >
> >
> > Hi,
> > I'm trying to find out how to build form elements dynamically with the
> > xmlform system.
> > I have a xforms file describing the the form , but I have an order form
> that
> > may contain
> > over 100 lines ( 100 textboxes ) so I wan't they to be builded
> on demand.
> Is
> > there some
> > way to maniupulate a xmlform or must it be defined in a file ?
> >
> >
> > Morten Svanaes
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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

Reply via email to