I'm a newbie in creating xslt-policies. I have written a simple policy
that calculates and set the Login exp time. I have an attribute (type
time) that I use as a parameter in the calc, this attribute is added with
86400 seconds (24 h). See below for a sample of the code:
-
<xsl:template name="create-ExpTimeModify">
<modify-attr attr-name="PaExpirationTime">
<add-value>
<value type="time">
<xsl:value-of select="modify-attr[@attr-name='EndDate'] + 86400"/>
</value>
</add-value>
</modify-attr>

</xsl:template>
-

My problem is that the input doc have two diffrent attribute with the same
name if a new enddate value is entered (or changed) in the application (in
a modify set). I would like to use the new value (add) and not the remove
value in the add. However if I call the 'value-of
select="modify-attr[@attr-name='EndDate']' I get the wrong attribute
value.


---
<modify-attr attr-name="EndDate">
<remove-value>
<value timestamp="1197471309#2" type="time">1198537200</value>
</remove-value>
</modify-attr>
<modify-attr attr-name="EndDate">
<add-value>
<value type="time">1198969200</value>
</add-value>
</modify-attr>

---

How do I access the right value, or is there any suggestion how to solve
this problem?