Hi- I am working on an XSLT subscriber channel output transformation for
a modify action. All attributes whose values are being removed and not
replaced with a new value must be received by my target system endpoint
in a comma delimited string.

For example, if the original XDS message reads:
<input>
<modify class-name="User"
qualified-src-dn="o=External\ou=ExtUsers12\cn=AABBCC12"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsin="http://wsintf.facade.ezscreening.ihss.curam"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<association>AABBCC12</association>
<modify-attr attr-name="firstName">
<remove-value>
<value type="string">Kyle</value>
</remove-value>
</modify-attr>
<modify-attr attr-name="lastName">
<remove-value>
<value type="string">Verhagen</value>
</remove-value>
<add-value>
<value type="string">Johnson</value>
</add-value>
</modify-attr>
<modify-attr attr-name="initials">
<remove-value>
<value type="string">J</value>
</remove-value>
</modify-attr>
</modify>
</input>

The XSLT tranformation must produce:
<input>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsin="http://wsintf.facade.ezscreening.ihss.curam"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header/>
<soapenv:Body>
<wsin:modifyUser
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<userID>AABBCC12</userID>
<lastName>Johnson</lastName>
<removeValues>firstName,initials</removeValues>
</wsin:modifyUser>
</soapenv:Body>
</soapenv:Envelope>
</input>

The way I wanted to do this was to have a string variable that i would
keep appending attributes to if they did not have an <add-value> element
and then output that string in <removeValues> at the end of the
transformation. However, variable values are not able to be modified
once set in XSLT, so this option seems impossible.

Is there any workaround in XSLT so I can do this or would it be better
to try doing this using a policy?


--
michael_ballanco
------------------------------------------------------------------------
michael_ballanco's Profile: http://forums.novell.com/member.php?userid=49206
View this thread: http://forums.novell.com/showthread.php?t=383755