Philip,
The error is not very clear but what it means is that you have a
duplicate variable declaration. You cannot override variable this way,
unfortunately, anymore than you can do it in Java or other languages.
Now I haven't tried this, but what if you were putting an xforms:group
around each variable, like:
<xforms:group>
<xxforms:variable name="citeinforepeat">1</xxforms:variable>
<xi:include href="/apps/xforms-stacy/citeinfo.xhtml" />
</xforms:group>
-Erik
On Jun 8, 2009, at 9:12 AM, Philip.Cantin wrote:
>
> Hi All,
>
> I am trying to create unique ids for an XHTML document that I am
> importing
> using an <xi:include> tag.
>
> My approach initially was to use an xxforms:variable for each id in
> the
> imported document, and then set it to a different value in-between the
> xi:includes.
>
> However, for some reason my variable is not recognized....instead, I
> get a
> "Duplicate id for XForms element: $citeinforepeat" error.
>
>
> Is there something I'm not taking into consideration? And if my
> approach
> isn't a good one, what is the best way to accomplish this? The files
> I am
> using are attached below.
>
> Thanks in advance!!
>
>
> ---Philip
>
>
>
http://www.nabble.com/file/p23927142/test_uniqueids.xhtml> test_uniqueids.xhtml
>
>
http://www.nabble.com/file/p23927142/citeinfo.xhtml citeinfo.xhtml
> --
> View this message in context:
http://www.nabble.com/generating-unique-ids-for-XForms-elements-using-xxforms%3Avariable-and-xi%3Ainclude-tp23927142p23927142.html> Sent from the ObjectWeb OPS - Users mailing list archive at
> Nabble.com.
>
>
> --
> You receive this message as a subscriber of the ops-users@ow2.org
> mailing list.
> To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
> For general help: mailto:sympa@ow2.org?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 ops-users@ow2.org mailing list.
To unsubscribe: mailto:ops-users-unsubscribe@ow2.org
For general help: mailto:sympa@ow2.org?subject=help
OW2 mailing lists service home page:
http://www.ow2.org/wws