a scripted attribute definition example from the wiki

Peter Schober peter.schober at univie.ac.at
Thu Jul 28 11:07:10 EDT 2016


* Ortner Nikolaus <N.Ortner at fh-kaernten.at> [2016-07-28 16:34]:
> Well - you get a similar error when using nested attribute
> definitions and a sourceAttributeID used twice (e.g. when
> referencing a mapped attribute, attributeID unspecified, and you are
> not creative enough to generate another name for the unnamed):

Not sure I understand (or whether this will fix things) but:

>     <resolver:AttributeDefinition xsi:type="ad:Simple" id="personaluniquecode" sourceAttributeID="perskz">
>         <resolver:Dependency ref="perskzMapping" />
>         <resolver:AttributeEncoder 
> ...
>     </resolver:AttributeDefinition>
>     
> <resolver:AttributeDefinition xsi:type="ad:Mapped" dependencyOnly="true" id="perskzMapping" sourceAttributeID="perskz">
>        <resolver:Dependency ref="databaseresolver" />
>        <ad:ValueMap>
>             <ad:ReturnValue>urn:schac:personalUniqueCode:int:studentID:AT:$1</ad:ReturnValue>
>             <ad:SourceValue>^([0-9]{10})$</ad:SourceValue>
>        </ad:ValueMap>
>     </resolver:AttributeDefinition>

Shouldn't it be sourceAttributeID="perskzMapping" in the first
(id="personaluniquecode") definition?
-peter


More information about the users mailing list