|
next
|
 Subject: Looping question Author: (Deleted User) Date: 15 Apr 2008 05:38 AM
|
Hi Jon,
I don't have the full schema, so I will try to guess some of the parts.
- keeping the right mouse button pressed, drag a link from TestIn to TestOut, and pick "Create Repeatable Link"
- right click on the subType attribute in the output tree, choose "Set Text Value" and enter 'TestOut'
- enter the fixed values also for subClass, name, and type (for UserData)
- right click on the middle pane, pick XSLT Functions, then local-name()
- drag a link from controlNumber to the input port of local-name, and a link from the output port to the 'title' attribute of UserValue (as an alternative, you could also use the Set Text Value command also here)
- drag a link from controlNumber to the 'value' attribute of UserValue
- right click on the 'form' element in the target schema tree and pick "Duplicate node", and repeat the same operations using the "internalID" source element.
- repeat the same process for the remaining input elements.
In order to compute the 'id' attributes, I think you could specify for each attribute a Set Text Value option of "{count(preceding-sibling::*)*16+x}" where "x" is 1 for the 'id' attribute of the first 'form' element, 2 for the 'id' of UserData, 3 for the 'id' attribute of the second 'form' (the first one you duplicated) and so on.
Hope this helps,
Alberto
|
|
|
|