Hi,

I am looking to generate the following output for an SPML service
through the IDM SOAP Driver.

<addRequest xmlns="urnasis:names:tc:SPML:2:0"
xmlns:schd="urn:stats:xmlns:security-provisioning"
xmlns:reltn="urn:stats:xmlns:security-provisioning:relationship"
xmlns:spmlref="urnasis:names:tc:SPML:2:0:reference"
requestID="AddEverything"
targetID = "targetID_12345 "
returnData="identifier">

The SPML service cares about the ordering of the attributes as well.

I used the following stylesheet to generate the above request

<xsl:element name="addRequest">
<xsl:attribute
name="xmlns">urnasis:names:tc:SPML:2:0</xsl:attribute>
<xsl:attribute
name="xmlns:schd">urn:stats:xmlns:security-provisioning</xsl:attribute>
<xsl:attribute
name="xmlns:schdrltn">urn:stats:xmlns:security-provisioning:relationship</xsl:attribute>
<xsl:attribute
name="xmlns:spmlref">urnasis:names:tc:SPML:2:0:reference</xsl:attribute>
<xsl:attribute name="targetID">
<xsl:value-of select="$ProvTargetID"/>
</xsl:attribute>
<xsl:attribute name="returnData">identifier</xsl:attribute>

The above stylesheet is resulting in the following output: (Seems like
I have two issues here, (a) the xmlns is being prefixed with an "_" and
(b) the xmlns that is not prefixed is being pushed to the end of the
attribute list.)

<addRequest _xmlns:schd="urn:stats:xmlns:security-provisioning"

_xmlns:schdrltn="urn:stats:xmlns:security-provisioning:relationship"
_xmlns:spmlref="urnasis:names:tc:SPML:2:0:reference"
returnData="identifier"
targetID="targetID_12345"
xmlns="urnasis:names:tc:SPML:2:0">

Any thoughts on what I should be changing in the stylesheet to get the
desired output? Any help is appreciated. Thanks.


--
knagaraj
------------------------------------------------------------------------
knagaraj's Profile: http://forums.novell.com/member.php?userid=44692
View this thread: http://forums.novell.com/showthread.php?t=388545