[ops-user] problem of designing

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[ops-user] problem of designing

marc.natale
Hi,
I have some doubts concerning the possibilities to develop what I want, so if somebody can tell me if it is possible to do it...
 
Basically, let's consider only two tags:
<parent> and <child>
A parent tag can contain another parent or a child.
A child tag contains none tag.
 
what I use is the user to create dynamically his tree:
He starts from a single node: <parent>
with two triggers, he can add a parent or a child under the first parent... and so on.
 
So the user builds the xml file by inserting (and deleting...) the nodes he wants.
 it's a kind of repeat problem, except that I'm afraid I'm to meet binding problems...
 
Regards,
Marc
 
 


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: [ops-user] problem of designing

Erik Bruchez
Administrator
Marc,

I believe that with XForms 1.0, this is not possible. XForms 1.1, which
is only a draft, proposes a new "duplicate" action which should allow
such tree construction. But "duplicate" is not supported in OPS right now.

In the meanwhile, you could build the tree server-side, using a
submission with instance="replace": send the instance along with some
information about what node to add, and receive the updated instance,
built on the server with XSLT, for example.

-Erik

Marc Natale wrote:

> Hi,
> I have some doubts concerning the possibilities to develop what I want,
> so if somebody can tell me if it is possible to do it...
>  
> Basically, let's consider only two tags:
> <parent> and <child>
> A parent tag can contain another parent *or* a child.
> A child tag contains none tag.
>  
> what I use is the user to create dynamically his tree:
> He starts from a single node: <parent>
> with two triggers, he can add a parent or a child under the first
> parent... and so on.
>  
> So the user builds the xml file by inserting (and deleting...) the nodes
> he wants.
>  it's a kind of repeat problem, except that I'm afraid I'm to meet
> binding problems...
>  
> Regards,
> Marc


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: [ops-user] problem of designing

marc.natale
Hi Erik,
thanks for your answer.
 
I've been working on your idea of using xslt.
what I want to do is building an xml file, from data of a first xml file.
So I build the second file using xslt.
 
In this file, I want to do:
if "parent" has only "parent" nodes, then input <tag1> and loop.
if "parent" contains only "child" nodes, then input <tag2> and input data from the 1st xml file.
 
So my problems:
I do not figure out how to make the test on the name of the tag itself...
I do not know how to specify the loop in the xslt language...
 
 


 
On 26/08/05, Erik Bruchez <[hidden email]> wrote:
Marc,

I believe that with XForms 1.0, this is not possible. XForms 1.1, which
is only a draft, proposes a new "duplicate" action which should allow
such tree construction. But "duplicate" is not supported in OPS right now.

In the meanwhile, you could build the tree server-side, using a
submission with instance="replace": send the instance along with some
information about what node to add, and receive the updated instance,
built on the server with XSLT, for example.

-Erik

Marc Natale wrote:

> Hi,
> I have some doubts concerning the possibilities to develop what I want,
> so if somebody can tell me if it is possible to do it...
>
> Basically, let's consider only two tags:
> <parent> and <child>
> A parent tag can contain another parent *or* a child.
> A child tag contains none tag.
>
> what I use is the user to create dynamically his tree:
> He starts from a single node: <parent>
> with two triggers, he can add a parent or a child under the first
> parent... and so on.
>
> So the user builds the xml file by inserting (and deleting...) the nodes
> he wants.
>  it's a kind of repeat problem, except that I'm afraid I'm to meet
> binding problems...
>
> Regards,
> Marc




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto: [hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws





--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: [ops-user] problem of designing

marc.natale
I have solved the problem... Thanks anyway


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws