Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Can't create nested stimulus groups with range replicators

#70

The attached experiment attempts to create a single, outer stimulus group that contains 10 inner stimulus groups, each of which contains 10 stimuli. It does so using the following nesting scheme:

Outer group
    Outer range replicator
        Inner group
            Inner range replicator
                Stimulus

The experiment fails to load, producing the following error message:

ERROR: An ambiguously named object was detected during parsing (connection phase).
Please ensure that all object names are unique.
Details: tag_name = <bg_${outer}_1>, reference_id = <id55510191>, instance_id = <0>

You can see why this is happening by running the experiment through MWParserTransformation.xsl and looking at the resulting connection XML:

<mw_connect parent="Outer group" parent_scope="" reference_id="id35803884">
  <mw_range_replicator reference_id="id35803888" variable="outer" from="1" to="10" step="1">
    <child tag="Inner group ${outer}" reference_id="id35803899"/>
  </mw_range_replicator>
</mw_connect>
<mw_connect parent="Inner group ${outer}" parent_scope="" reference_id="id35803899">
  <mw_range_replicator reference_id="id35803903" variable="inner" from="1" to="10" step="1">
    <child tag="bg_${outer}_${inner}" reference_id="id35803915"/>
  </mw_range_replicator>
</mw_connect>

Note that the XML connecting each stimulus to its stimulus group contains references to the outer range rep's loop variable ("outer"), but it isn't wrapped in the outer replicator.

It looks like MWParserTransformation.xsl handles nested replicators correctly only when the inner replicator is a direct child of the outer one.

Reported by Christopher Stawarz · February 11th, 2011 @ 11:23 AM

State: hold
Milestone: none
Assigned to: nobody

Activity

  1. Christopher Stawarz
  2. Christopher Stawarz
    Christopher Stawarz
    • State changed from new to open

    April 8th, 2011 @ 10:49 AM

  3. Christopher Stawarz
    Christopher Stawarz
    • State changed from open to hold

    At this point, fixing the replicators seems like a lost cause. Better to spend the effort on an MWEL-level replacement.

    May 16th, 2022 @ 11:44 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.