xxforms:repeat-current() problem

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

xxforms:repeat-current() problem

hcr

Hi,
   I want to use xxforms:repeat outsize repeat? How can I do it?
   For example:
<xforms:instance>
   <form xmlns="">
      <person selected="true" name="person 1" age=""/>
      <person selected="true" name="person 2" age=""/>
      <person selected="false" name="person 3" age=""/>
      <person selected="false" name="person 4" age=""/>
      <person selected="true" name="person 5" age=""/>
   </form>
<xforms:instance>
 
<xforms:repeat nodeset="/person[@select='true']" id="repeat">
    <xforms:output ref="@name"/>
</xforms:repeat>
 
<xforms:group ref="xxforms:repeat-current('repeat')">
    <xforms:input ref="@name"/>
    <xforms:input ref="@age"/>
</xforms:group>



网易邮箱,中国第一大电子邮件服务商


--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: xxforms:repeat-current() problem

Erik Bruchez
Administrator
You can try something like:

<xforms:group ref="/form/person[@select='true'][index('repeat')]">
   ...
</xforms:group>

Note that this may or may not work properly depending on where you  
place the group, because what you have here is a dependency of a UI  
control (the group) on another UI control (the repeat) and XForms does  
not properly specifies how this should work. In Orbeon Forms, it will  
likely work more reliably if the group is after the repeat.

-Erik

On Mar 9, 2009, at 4:16 AM, hechengrong wrote:

>
> Hi,
>    I want to use xxforms:repeat outsize repeat? How can I do it?
>    For example:
> <xforms:instance>
>    <form xmlns="">
>       <person selected="true" name="person 1" age=""/>
>       <person selected="true" name="person 2" age=""/>
>       <person selected="false" name="person 3" age=""/>
>       <person selected="false" name="person 4" age=""/>
>       <person selected="true" name="person 5" age=""/>
>    </form>
> <xforms:instance>
>
> <xforms:repeat nodeset="/person[@select='true']" id="repeat">
>     <xforms:output ref="@name"/>
> </xforms:repeat>
>
> <xforms:group ref="xxforms:repeat-current('repeat')">
>     <xforms:input ref="@name"/>
>     <xforms:input ref="@age"/>
> </xforms:group>
>
>
> 网易邮箱,中国第一大电子邮件服务商
> --
> 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
> OW2 mailing lists service home page: http://www.ow2.org/wws
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
hcr
Reply | Threaded
Open this post in threaded view
|

Re: Re: xxforms:repeat-current() problem

hcr
Yes, It is ok. But in some case, It is error, for example:
    <xhtml:head>
        <xhtml:title>Index</xhtml:title>
        <xforms:model >
            <xforms:instance id="instance">
                <form xmlns="">
                 <items>
                  <item name="Mr.Li" age="20">
                   <item name="Mr.Li-1" age="21"/>
                  </item>
                  <item name="Mr.Ar" age="30">
                   <item name="Mr.Ar-1" age="31"/>
                  </item>
                  <item name="Mr.Cd" age="40">
                   <item name="Mr.Cd" age="41"/>
                  </item>
                  <item name="Mr.Fd" age="50">
                   <item name="Mr.Fd" age="51"/>
                  </item>
                 </items>
                 <index/>
                 <value/>
                </form>
            </xforms:instance>
        </xforms:model>
    </xhtml:head>
    <xhtml:body>
     <xhtml:h2>repeat</xhtml:h2>
     <xhtml:table>
      <xforms:repeat nodeset="instance('instance')/items//item[@age>20]" id="repeat">
       <xhtml:tr>
        <xhtml:td>
         <xforms:input ref="@name"/>
        </xhtml:td>
        <xhtml:td>
         <xforms:input ref="@age"/>
        </xhtml:td>
       </xhtml:tr>
      </xforms:repeat> 
     </xhtml:table>
     
     
     <xhtml:h2>current selected</xhtml:h2>
     <xhtml:table>
      <xhtml:tr>
       <xforms:group ref="instance('instance')/items//item[index('repeat')]">
        <xhtml:td>
         <xforms:input ref="@name"/>
        </xhtml:td>
        <xhtml:td>
         <xforms:input ref="@age"/>
        </xhtml:td>        
       </xforms:group>
      </xhtml:tr>
     </xhtml:table>
    </xhtml:body>
</xhtml:html>
 


在2009-03-17,"Erik Bruchez" <[hidden email]> 写道:
>You can try something like:
>
><xforms:group ref="/form/person[@select='true'][index('repeat')]">
>   ...
></xforms:group>
>
>Note that this may or may not work properly depending on where you  
>place the group, because what you have here is a dependency of a UI  
>control (the group) on another UI control (the repeat) and XForms does  
>not properly specifies how this should work. In Orbeon Forms, it will  
>likely work more reliably if the group is after the repeat.
>
>-Erik
>
>On Mar 9, 2009, at 4:16 AM, hechengrong wrote:
>
>>
>> Hi,
>>    I want to use xxforms:repeat outsize repeat? How can I do it?
>>    For example:
>> <xforms:instance>
>>    <form xmlns="">
>>       <person selected="true" name="person 1" age=""/>
>>       <person selected="true" name="person 2" age=""/>
>>       <person selected="false" name="person 3" age=""/>
>>       <person selected="false" name="person 4" age=""/>
>>       <person selected="true" name="person 5" age=""/>
>>    </form>
>> <xforms:instance>
>>
>> <xforms:repeat nodeset="/person[@select='true']" id="repeat">
>>     <xforms:output ref="@name"/>
>> </xforms:repeat>
>>
>> <xforms:group ref="xxforms:repeat-current('repeat')">
>>     <xforms:input ref="@name"/>
>>     <xforms:input ref="@age"/>
>> </xforms:group>
>>
>>
>> 网易邮箱,中国第一大电子邮件服务商
>> --
>> 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
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>--
>Orbeon Forms - Web Forms for the Enterprise Done the Right Way
>http://www.orbeon.com/
>



网易邮箱,中国第一大电子邮件服务商


--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: xxforms:repeat-current() problem

Ryan Puddephatt-3
In reply to this post by hcr
You need to put the same constraints on your group as you do on ur repeat, so add @age>20 before the index predicate

Ryan
-----------------------------------------------
Ryan Puddephatt
Connectivity Developer
Fidessa LatentZero
1 Old Jewry
London EC2R 8DN
Office: +44 (0) 20 7105 1000
Direct: +44 (0) 20 7105 1821
Blackberry: +44 (0) 79 8539 2458
Fax: +44 (0) 20 7105 1818
Email: [hidden email]
Web: http://www.latentzero.com


----- Original Message -----
From: hechengrong <[hidden email]>
To: [hidden email] <[hidden email]>
Sent: Mon Mar 23 02:24:23 2009
Subject: [ops-users] Re: Re: xxforms:repeat-current() problem

Yes, It is ok. But in some case, It is error, for example:
<xhtml:html xmlns:xforms="http://www.w3.org/2002/xforms"
    xmlns:f="http://orbeon.org/oxf/xml/formatting"
    xmlns:xhtml="http://www.w3.org/1999/xhtml"
    xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
    xmlns:xi="http://www.w3.org/2001/XInclude"
    xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:widget="http://orbeon.org/oxf/xml/widget"
    xmlns:ev="http://www.w3.org/2001/xml-events"
    xmlns:xdt="http://www.w3.org/2005/xpath-datatypes">
    <xhtml:head>
        <xhtml:title>Index</xhtml:title>
        <xforms:model >
            <xforms:instance id="instance">
                <form xmlns="">
                 <items>
                  <item name="Mr.Li" age="20">
                   <item name="Mr.Li-1" age="21"/>
                  </item>
                  <item name="Mr.Ar" age="30">
                   <item name="Mr.Ar-1" age="31"/>
                  </item>
                  <item name="Mr.Cd" age="40">
                   <item name="Mr.Cd" age="41"/>
                  </item>
                  <item name="Mr.Fd" age="50">
                   <item name="Mr.Fd" age="51"/>
                  </item>
                 </items>
                 <index/>
                 <value/>
                </form>
            </xforms:instance>
        </xforms:model>
    </xhtml:head>
    <xhtml:body>
     <xhtml:h2>repeat</xhtml:h2>
     <xhtml:table>
      <xforms:repeat nodeset="instance('instance')/items//item[@age>20]" id="repeat">
       <xhtml:tr>
        <xhtml:td>
         <xforms:input ref="@name"/>
        </xhtml:td>
        <xhtml:td>
         <xforms:input ref="@age"/>
        </xhtml:td>
       </xhtml:tr>
      </xforms:repeat>
     </xhtml:table>
     
     
     <xhtml:h2>current selected</xhtml:h2>
     <xhtml:table>
      <xhtml:tr>
       <xforms:group ref="instance('instance')/items//item[index('repeat')]">
        <xhtml:td>
         <xforms:input ref="@name"/>
        </xhtml:td>
        <xhtml:td>
         <xforms:input ref="@age"/>
        </xhtml:td>        
       </xforms:group>
      </xhtml:tr>
     </xhtml:table>
    </xhtml:body>
</xhtml:html>
 



在2009-03-17,"Erik Bruchez" <[hidden email]> 写道:

>You can try something like:
>
><xforms:group ref="/form/person[@select='true'][index('repeat')]">
>   ...
></xforms:group>
>
>Note that this may or may not work properly depending on where you  
>place the group, because what you have here is a dependency of a UI  
>control (the group) on another UI control (the repeat) and XForms does  
>not properly specifies how this should work. In Orbeon Forms, it will  
>likely work more reliably if the group is after the repeat.
>
>-Erik
>
>On Mar 9, 2009, at 4:16 AM, hechengrong wrote:
>
>>
>> Hi,
>>    I want to use xxforms:repeat outsize repeat? How can I do it?
>>    For example:
>> <xforms:instance>
>>    <form xmlns="">
>>       <person selected="true" name="person 1" age=""/>
>>       <person selected="true" name="person 2" age=""/>
>>       <person selected="false" name="person 3" age=""/>
>>       <person selected="false" name="person 4" age=""/>
>>       <person selected="true" name="person 5" age=""/>
>>    </form>
>> <xforms:instance>
>>
>> <xforms:repeat nodeset="/person[@select='true']" id="repeat">
>>     <xforms:output ref="@name"/>
>> </xforms:repeat>
>>
>> <xforms:group ref="xxforms:repeat-current('repeat')">
>>     <xforms:input ref="@name"/>
>>     <xforms:input ref="@age"/>
>> </xforms:group>
>>
>>
>> 网易邮箱,中国第一大电子邮件服务商
>> --
>> 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
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>--
>Orbeon Forms - Web Forms for the Enterprise Done the Right Way
>http://www.orbeon.com/
>


________________________________

网易邮箱,中国第一大电子邮件服务商 <http://www.yeah.net>  
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________


_______________________________________________________________________
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

_____________________________________________________________________
This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com


--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
hcr
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: xxforms:repeat-current() problem

hcr
Yes, I use "instance('instance')/items//item[@age>20][index('repeat')]", but it is not ok!


在2009-03-23,"Ryan Puddephatt" <[hidden email]> 写道:
>You need to put the same constraints on your group as you do on ur repeat, so add @age>20 before the index predicate
>
>Ryan
>-----------------------------------------------
>Ryan Puddephatt
>Connectivity Developer
>Fidessa LatentZero
>1 Old Jewry
>London EC2R 8DN
>Office: +44 (0) 20 7105 1000
>Direct: +44 (0) 20 7105 1821
>Blackberry: +44 (0) 79 8539 2458
>Fax: +44 (0) 20 7105 1818
>Email: [hidden email]
>Web: http://www.latentzero.com
>
>
>----- Original Message -----
>From: hechengrong <[hidden email]>
>To: [hidden email] <[hidden email]>
>Sent: Mon Mar 23 02:24:23 2009
>Subject: [ops-users] Re: Re: xxforms:repeat-current() problem
>
>Yes, It is ok. But in some case, It is error, for example:
><xhtml:html xmlns:xforms="http://www.w3.org/2002/xforms"
>    xmlns:f="http://orbeon.org/oxf/xml/formatting" 
>    xmlns:xhtml="http://www.w3.org/1999/xhtml"
>    xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
>    xmlns:xi="http://www.w3.org/2001/XInclude"
>    xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
>    xmlns:xs="http://www.w3.org/2001/XMLSchema"
>    xmlns:widget="http://orbeon.org/oxf/xml/widget"
>    xmlns:ev="http://www.w3.org/2001/xml-events"
>    xmlns:xdt="http://www.w3.org/2005/xpath-datatypes">
>    <xhtml:head>
>        <xhtml:title>Index</xhtml:title>
>        <xforms:model >
>            <xforms:instance id="instance">
>                <form xmlns="">
>                 <items>
>                  <item name="Mr.Li" age="20">
>                   <item name="Mr.Li-1" age="21"/>
>                  </item>
>                  <item name="Mr.Ar" age="30">
>                   <item name="Mr.Ar-1" age="31"/>
>                  </item>
>                  <item name="Mr.Cd" age="40">
>                   <item name="Mr.Cd" age="41"/>
>                  </item>
>                  <item name="Mr.Fd" age="50">
>                   <item name="Mr.Fd" age="51"/>
>                  </item>
>                 </items>
>                 <index/>
>                 <value/>
>                </form>
>            </xforms:instance>
>        </xforms:model>
>    </xhtml:head>
>    <xhtml:body>
>     <xhtml:h2>repeat</xhtml:h2>
>     <xhtml:table>
>      <xforms:repeat nodeset="instance('instance')/items//item[@age>20]" id="repeat">
>       <xhtml:tr>
>        <xhtml:td>
>         <xforms:input ref="@name"/>
>        </xhtml:td>
>        <xhtml:td>
>         <xforms:input ref="@age"/>
>        </xhtml:td>
>       </xhtml:tr>
>      </xforms:repeat> 
>     </xhtml:table>
>     
>     
>     <xhtml:h2>current selected</xhtml:h2>
>     <xhtml:table>
>      <xhtml:tr>
>       <xforms:group ref="instance('instance')/items//item[index('repeat')]">
>        <xhtml:td>
>         <xforms:input ref="@name"/>
>        </xhtml:td>
>        <xhtml:td>
>         <xforms:input ref="@age"/>
>        </xhtml:td>        
>       </xforms:group>
>      </xhtml:tr>
>     </xhtml:table>
>    </xhtml:body>
></xhtml:html>
> 
>
>
>
>在2009-03-17,"Erik Bruchez" <[hidden email]> 写道:
>>You can try something like:
>>
>><xforms:group ref="/form/person[@select='true'][index('repeat')]">
>>   ...
>></xforms:group>
>>
>>Note that this may or may not work properly depending on where you  
>>place the group, because what you have here is a dependency of a UI  
>>control (the group) on another UI control (the repeat) and XForms does  
>>not properly specifies how this should work. In Orbeon Forms, it will  
>>likely work more reliably if the group is after the repeat.
>>
>>-Erik
>>
>>On Mar 9, 2009, at 4:16 AM, hechengrong wrote:
>>
>>>
>>> Hi,
>>>    I want to use xxforms:repeat outsize repeat? How can I do it?
>>>    For example:
>>> <xforms:instance>
>>>    <form xmlns="">
>>>       <person selected="true" name="person 1" age=""/>
>>>       <person selected="true" name="person 2" age=""/>
>>>       <person selected="false" name="person 3" age=""/>
>>>       <person selected="false" name="person 4" age=""/>
>>>       <person selected="true" name="person 5" age=""/>
>>>    </form>
>>> <xforms:instance>
>>>
>>> <xforms:repeat nodeset="/person[@select='true']" id="repeat">
>>>     <xforms:output ref="@name"/>
>>> </xforms:repeat>
>>>
>>> <xforms:group ref="xxforms:repeat-current('repeat')">
>>>     <xforms:input ref="@name"/>
>>>     <xforms:input ref="@age"/>
>>> </xforms:group>
>>>
>>>
>>> 网易邮箱,中国第一大电子邮件服务商
>>> --
>>> 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
>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>>--
>>Orbeon Forms - Web Forms for the Enterprise Done the Right Way
>>http://www.orbeon.com/
>>
>
>
>
>________________________________
>
>网易邮箱,中国第一大电子邮件服务商 <http://www.yeah.net>  
>______________________________________________________________________
>This email has been scanned by the MessageLabs Email Security System.
>For more information please visit http://www.messagelabs.com/email 
>______________________________________________________________________
>
>
>_______________________________________________________________________
>The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
>
>_____________________________________________________________________
>This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com



网易邮箱,中国第一大电子邮件服务商


--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: Re: Re: xxforms:repeat-current() problem

Alessandro Vernet
Administrator
2009/3/23 hechengrong <[hidden email]>:
> Yes, I use "instance('instance')/items//item[@age>20][index('repeat')]", but
> it is not ok!

I think it will help if you post here a sandbox example as described
in http://www.orbeon.com/ops/doc/home-faq#reporting-issues.  We can
then run it, and change it to do what you are saying it should do.

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet


--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Re: Re: Re: Re: xxforms:repeat-current() problem

Ryan Puddephatt-3
In reply to this post by hcr

Whats wrong with the result?

 

-----------------------------------------------

Ryan Puddephatt

Connectivity Developer

Fidessa LatentZero

1 Old Jewry

London EC2R 8DN

Office: +44 (0) 20 7105 1000

Direct: +44 (0) 20 7105 1821

Blackberry: +44 (0) 79 8539 2458

Fax: +44 (0) 20 7105 1818

Email: [hidden email]

Web: http://www.latentzero.com

 

From: hechengrong [mailto:[hidden email]]
Sent: 24 March 2009 00:46
To: [hidden email]
Subject: [ops-users] Re: Re: Re: Re: xxforms:repeat-current() problem

 

Yes, I use "instance('instance')/items//item[@age>20][index('repeat')]", but it is not ok!

 

2009-03-23"Ryan Puddephatt" <[hidden email]> 写道:
>You need to put the same constraints on your group as you do on ur repeat, so add @age>20 before the index predicate
> 
>Ryan
>-----------------------------------------------
>Ryan Puddephatt
>Connectivity Developer
>Fidessa LatentZero
>1 Old Jewry
>London EC2R 8DN
>Office: +44 (0) 20 7105 1000
>Direct: +44 (0) 20 7105 1821
>Blackberry: +44 (0) 79 8539 2458
>Fax: +44 (0) 20 7105 1818
>Email: [hidden email]
>Web: http://www.latentzero.com
> 
> 
>----- Original Message -----
>From: hechengrong <[hidden email]>
>To: [hidden email] <[hidden email]>
>Sent: Mon Mar 23 02:24:23 2009
>Subject: [ops-users] Re: Re: xxforms:repeat-current() problem
> 
>Yes, It is ok. But in some case, It is error, for example:
><xhtml:html xmlns:xforms="http://www.w3.org/2002/xforms"
>    xmlns:f="http://orbeon.org/oxf/xml/formatting" 
>    xmlns:xhtml="http://www.w3.org/1999/xhtml"
>    xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
>    xmlns:xi="http://www.w3.org/2001/XInclude"
>    xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
>    xmlns:xs="http://www.w3.org/2001/XMLSchema"
>    xmlns:widget="http://orbeon.org/oxf/xml/widget"
>    xmlns:ev="http://www.w3.org/2001/xml-events"
>    xmlns:xdt="http://www.w3.org/2005/xpath-datatypes">
>    <xhtml:head>
>        <xhtml:title>Index</xhtml:title>
>        <xforms:model >
>            <xforms:instance id="instance">
>                <form xmlns="">
>                 <items>
>                  <item name="Mr.Li" age="20">
>                   <item name="Mr.Li-1" age="21"/>
>                  </item>
>                  <item name="Mr.Ar" age="30">
>                   <item name="Mr.Ar-1" age="31"/>
>                  </item>
>                  <item name="Mr.Cd" age="40">
>                   <item name="Mr.Cd" age="41"/>
>                  </item>
>                  <item name="Mr.Fd" age="50">
>                   <item name="Mr.Fd" age="51"/>
>                  </item>
>                 </items>
>                 <index/>
>                 <value/>
>                </form>
>            </xforms:instance>
>        </xforms:model>
>    </xhtml:head>
>    <xhtml:body>
>     <xhtml:h2>repeat</xhtml:h2>
>     <xhtml:table>
>      <xforms:repeat nodeset="instance('instance')/items//item[@age>20]" id="repeat">
>       <xhtml:tr>
>        <xhtml:td>
>         <xforms:input ref="@name"/>
>        </xhtml:td>
>        <xhtml:td>
>         <xforms:input ref="@age"/>
>        </xhtml:td>
>       </xhtml:tr>
>      </xforms:repeat> 
>     </xhtml:table>
>     
>     
>     <xhtml:h2>current selected</xhtml:h2>
>     <xhtml:table>
>      <xhtml:tr>
>       <xforms:group ref="instance('instance')/items//item[index('repeat')]">
>        <xhtml:td>
>         <xforms:input ref="@name"/>
>        </xhtml:td>
>        <xhtml:td>
>         <xforms:input ref="@age"/>
>        </xhtml:td>        
>       </xforms:group>
>      </xhtml:tr>
>     </xhtml:table>
>    </xhtml:body>
></xhtml:html>
> 
> 
> 
> 
>2009-03-17"Erik Bruchez" <[hidden email]> 写道:
>>You can try something like:
>> 
>><xforms:group ref="/form/person[@select='true'][index('repeat')]">
>>   ...
>></xforms:group>
>> 
>>Note that this may or may not work properly depending on where you  
>>place the group, because what you have here is a dependency of a UI  
>>control (the group) on another UI control (the repeat) and XForms does  
>>not properly specifies how this should work. In Orbeon Forms, it will  
>>likely work more reliably if the group is after the repeat.
>> 
>>-Erik
>> 
>>On Mar 9, 2009, at 4:16 AM, hechengrong wrote:
>> 
>>> 
>>> Hi,
>>>    I want to use xxforms:repeat outsize repeat? How can I do it?
>>>    For example:
>>> <xforms:instance>
>>>    <form xmlns="">
>>>       <person selected="true" name="person 1" age=""/>
>>>       <person selected="true" name="person 2" age=""/>
>>>       <person selected="false" name="person 3" age=""/>
>>>       <person selected="false" name="person 4" age=""/>
>>>       <person selected="true" name="person 5" age=""/>
>>>    </form>
>>> <xforms:instance>
>>> 
>>> <xforms:repeat nodeset="/person[@select='true']" id="repeat">
>>>     <xforms:output ref="@name"/>
>>> </xforms:repeat>
>>> 
>>> <xforms:group ref="xxforms:repeat-current('repeat')">
>>>     <xforms:input ref="@name"/>
>>>     <xforms:input ref="@age"/>
>>> </xforms:group>
>>> 
>>> 
>>> 网易邮箱,中国第一大电子邮件服务商
>>> --
>>> 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
>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>> 
>>--
>>Orbeon Forms - Web Forms for the Enterprise Done the Right Way
>>http://www.orbeon.com/
>> 
> 
> 
> 
>________________________________
> 
>网易邮箱,中国第一大电子邮件服务商 <http://www.yeah.net>  
>______________________________________________________________________
>This email has been scanned by the MessageLabs Email Security System.
>For more information please visit http://www.messagelabs.com/email 
>______________________________________________________________________
> 
> 
>_______________________________________________________________________
>The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
> 
>_____________________________________________________________________
>This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com

 


网易邮箱,中国第一大电子邮件服务商
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________


_______________________________________________________________________
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

_____________________________________________________________________
This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com


--
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
OW2 mailing lists service home page: http://www.ow2.org/wws