Hope this is not a dumb question:
Can you and/or how do you populate xml element attributes with Orbeon XForms? Usually you have an input like: <xforms:input ref="DocID"> <xforms:label class="doc-label">Doc1</xforms:label> </xforms:input> that asks for the element content to be filled in to end up with<DocID>Doc1</DocID>. How would you fill in a necessary attribute to end up with: <DocID type="internal">Doc1</DocID> ? Thanks Randy -- 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 |
ref is
xpath, so theoretically ref="DocID/@type"
-- 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 |
In reply to this post by Randy Smith-9
Hi Randy,
To reference an attribute in XPath, you use "@". For your example it would be "DocID/@type". Regards, German On Tue, Aug 11, 2009 at 1:00 PM, Randy Smith <[hidden email]> wrote:
-- 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 |
Thanks SO much!!
Ger G wrote: Hi Randy, -- 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 |
In reply to this post by Steve Bayliss
Thanks Steve!!
Steve Bayliss wrote:
-- 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 |
Free forum by Nabble | Edit this page |