Hi all,
I don't know how to write code doing something like that : <xforms:repeat> <xhtml:dd id="????"> <xforms:repeat> .... </xfomrs:repeat> <xhtml:dd> </xforms:repeat> I cannot use any XPath function with the id attribute. I try with xforms:output but the it gives me <xhtml:dd id="1" /> and I don't want a closing tag. Any hints ? -- 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 |
Hi, your problem is getting the index of row in the repeat tag?
marc ha scritto: > Hi all, > > I don't know how to write code doing something like that : > > <xforms:repeat> > <xhtml:dd id="????"> > <xforms:repeat> > .... > </xfomrs:repeat> > <xhtml:dd> > </xforms:repeat> > > I cannot use any XPath function with the id attribute. > I try with xforms:output but the it gives me <xhtml:dd id="1" /> and I > don't want a closing tag. > > Any hints ? > > -- > 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 > -- Ing. Leonardo Reale QUIX S.r.l. Strada Statale 413, 160/162 41019 - Soliera (MO) Loc.Appalto - ITALY Tel. 0039 059 565388 Fax. 0039 059 565322 [hidden email] [hidden email] -- 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 |
Hi Leonardo,
My problem is not to get the index but is to put the index for the id attribute in my scenario. -- Marc Leonardo Reale a écrit : > Hi, your problem is getting the index of row in the repeat tag? > > marc ha scritto: > >> Hi all, >> >> I don't know how to write code doing something like that : >> >> <xforms:repeat> >> <xhtml:dd id="????"> >> <xforms:repeat> >> .... >> </xfomrs:repeat> >> <xhtml:dd> >> </xforms:repeat> >> >> I cannot use any XPath function with the id attribute. >> I try with xforms:output but the it gives me <xhtml:dd id="1" /> and >> I don't want a closing tag. >> >> Any hints ? >> -- 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 |
In reply to this post by marc-62
Hi Marc,
This is more of a guess than a hint, no tests yet, but apparently the output control in XForms 1.1, if it's instance node is a URI, then that uri is dereferenced. So, it may be possible to produce the output using an XML service. That way, you would have access to the full XPath, including generate-id(.), e.g. Of course, you could not insert any XForms markup, only xhtml. http://www.w3.org/TR/2006/WD-xforms11-20061212/#ui-output I'm not even sure what that looks like, maybe: <xforms:instance id="a-uri"> <uri>/services/my-service</uri> </xforms:instance> <xforms:bind nodeset="instance('a-uri')" type="xs:anyURI"/> <xforms:output value="instance('a-uri')" /> Regards, Hank Hank Ratzesberger Institute for Crustal Studies University of California, Santa Barbara ----- Original Message ----- From: "marc" <[hidden email]> To: "OPS User List" <[hidden email]> Sent: Monday, January 08, 2007 8:12 AM Subject: [ops-users] dynamic id > Hi all, > > I don't know how to write code doing something like that : > > <xforms:repeat> > <xhtml:dd id="????"> > <xforms:repeat> > .... > </xfomrs:repeat> > <xhtml:dd> > </xforms:repeat> > > I cannot use any XPath function with the id attribute. > I try with xforms:output but the it gives me <xhtml:dd id="1" /> and I > don't want a closing tag. > > Any hints ? > > -- > 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 |
Administrator
|
In reply to this post by marc-62
marc wrote:
> Hi all, > > I don't know how to write code doing something like that : > > <xforms:repeat> > <xhtml:dd id="????"> > <xforms:repeat> > .... > </xfomrs:repeat> > <xhtml:dd> > </xforms:repeat> > > I cannot use any XPath function with the id attribute. > I try with xforms:output but the it gives me <xhtml:dd id="1" /> and I > don't want a closing tag. > > Any hints ? having a unique id on a non-XForms element within xforms:repeat so that you have unique ids in the resulting HTML? This would be possible if we supported AVTs in host language attributes, and/or (and maybe better in this case) if the XForms engine automatically rewrote ids within repeats. At the moment, I can't see a workaround. -Erik -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Erik Bruchez a écrit :
>> >> <xforms:repeat> >> <xhtml:dd id="????"> >> <xforms:repeat> >> .... >> </xfomrs:repeat> >> <xhtml:dd> >> </xforms:repeat> > > > First, what is the problem you are trying to solve? I assume it is > having a unique id on a non-XForms element within xforms:repeat so > that you have unique ids in the resulting HTML? > > This would be possible if we supported AVTs in host language > attributes, and/or (and maybe better in this case) if the XForms > engine automatically rewrote ids within repeats. > > At the moment, I can't see a workaround. > I know that you have planned to support AVT. Is it for the 3.5 release ? Thanks, Erik -- 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 |
Administrator
|
marc wrote:
> Erik Bruchez a écrit : > >>> >>> <xforms:repeat> >>> <xhtml:dd id="????"> >>> <xforms:repeat> >>> .... >>> </xfomrs:repeat> >>> <xhtml:dd> >>> </xforms:repeat> >> >> >> First, what is the problem you are trying to solve? I assume it is >> having a unique id on a non-XForms element within xforms:repeat so >> that you have unique ids in the resulting HTML? >> > Yes, that's my problem. And I want this id to be generate by an > expression... like: my-control.1, my-control.2, etc.? >> This would be possible if we supported AVTs in host language >> attributes, and/or (and maybe better in this case) if the XForms >> engine automatically rewrote ids within repeats. >> >> At the moment, I can't see a workaround. >> > I know that you have planned to support AVT. Is it for the 3.5 release ? Most likely this will be post-3.5. -Erik -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Erik Bruchez a écrit :
> marc wrote: > >> Erik Bruchez a écrit : >> >>>> >>>> <xforms:repeat> >>>> <xhtml:dd id="????"> >>>> <xforms:repeat> >>>> .... >>>> </xfomrs:repeat> >>>> <xhtml:dd> >>>> </xforms:repeat> >>> >>> >>> >>> First, what is the problem you are trying to solve? I assume it is >>> having a unique id on a non-XForms element within xforms:repeat so >>> that you have unique ids in the resulting HTML? >>> >> Yes, that's my problem. And I want this id to be generate by an >> expression... > > > Wouldn't the regular scheme use for XForms controls work? I.e. > something like: > > my-control.1, my-control.2, etc.? > >>> This would be possible if we supported AVTs in host language >>> attributes, and/or (and maybe better in this case) if the XForms >>> engine automatically rewrote ids within repeats. >>> >>> At the moment, I can't see a workaround. >>> >> I know that you have planned to support AVT. Is it for the 3.5 release ? > > > Most likely this will be post-3.5. Ok. > > -Erik -- 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 |
Free forum by Nabble | Edit this page |