Using XPATH I am doing a trim for all the attrs.In the same time I want
to get the last() value for each multi-valued attributes. Need help
using the XPATH.
For trim using standard thing:-
<actions>
<do-for-each>
<arg-node-set>
<token-xpath expression=".//add-attr/@attr-name"/>
</arg-node-set>
<arg-actions>
<do-reformat-op-attr name="$current-node$">
<arg-value type="string">
<token-xpath expression="es:TRIM($current-value)"/>
</arg-value>
</do-reformat-op-attr>
</arg-actions>
</do-for-each>
</actions>


Using the following I am able to get last() values of all
attributes,but not able to reformat the operation
attr. .//modify-attr/value[last()]/text()

The input doc is as below:-

<input>
<add class-name="User" dest-dn="identities\****" event-id="****"
src-dn="00012501" timestamp="20101207">
<association>00012501</association>
......
<add-attr attr-name="costCenter">
<value type="string">00000100</value>
<value type="string">00000101</value>
</add-attr>
<add-attr attr-name="employeeStatus">
<value type="string">active</value>
<value type="string">inactive</value>
</add-attr>
<add-attr attr-name="Telephone Number">
<value type="string">03334551992</value>
<value type="string">123456789</value>

</add-attr>
<add-attr attr-name="Title">
<value type="string">00025097</value>
<value type="string">9989899</value>
</add-attr>
<add-attr attr-name="workforceID">
<value type="string">00012501</value>
</add-attr>
</add>
</input>


And I need only the last values of the multivalued attrs after using
the trim function


--
bappa_kumar
------------------------------------------------------------------------
bappa_kumar's Profile: http://forums.novell.com/member.php?userid=37057
View this thread: http://forums.novell.com/showthread.php?t=427612