cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marco Rolappe" <m_rola...@web.de>
Subject AW: Dynamically build xmlforms
Date Tue, 10 Jun 2003 10:02:05 GMT
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: cocoon-users-return-51802-m_rolappe=web.de@xml.apache.org
> [mailto:cocoon-users-return-51802-m_rolappe=web.de@xml.apache.org]Im
> Auftrag von morten svanæs
> Gesendet: Dienstag, 10. Juni 2003 20:21
> An: cocoon-users@xml.apache.org
> 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" <m_rolappe@web.de>
> To: <cocoon-users@xml.apache.org>
> 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: cocoon-users-return-51797-m_rolappe=web.de@xml.apache.org
> > [mailto:cocoon-users-return-51797-m_rolappe=web.de@xml.apache.org]Im
> Auftrag
> > von morten svanæs
> > Gesendet: Dienstag, 10. Juni 2003 17:58
> > An: cocoon-users@xml.apache.org
> > 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: cocoon-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>


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


Mime
View raw message