W3C home > Mailing lists > Public > www-forms@w3.org > April 2011

Re: XForm template to import

From: Erik Bruchez <ebruchez@orbeon.com>
Date: Wed, 20 Apr 2011 08:47:09 -0700
Message-ID: <BANLkTinfqT6+Vy5MZdPiOQquNR6LcxoA3A@mail.gmail.com>
To: daniele ippoliti <dany6883@gmail.com>
Cc: www-forms@w3.org
Daniele,

There are a couple of approaches to this, both external to XForms itself.

You could use an include mechanism to insert the XForms markup on each
page. This could be done with XSLT, or a platform-specific template
language like JSP.

Some implementations like Orbeon Forms have a component system (in
this case based on XBL), which allows you to make reusable components.
With something like this you could then write:

<my:menu param1="" param2=""/>

The component approach is more general and has the benefit that you
can use a component multiple times within a page, within repeats, etc.

-Erik

On Wed, Mar 30, 2011 at 5:42 AM, daniele ippoliti <dany6883@gmail.com> wrote:
> Hello to everyone,
>
> I'm new on the mailing list and also in the XForm stuff. I would like to
> create with xform some template, for example a menu that I'll use in every
> page, or, maybe, a simple component that I can reuse in other pages just
> using an import and passing some parameters to customize it.
>
> How can I menage it?
> thank you for your kind reply
>
>
Received on Wednesday, 20 April 2011 15:47:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:22:22 GMT