Hi,

Written XSLT like below:

used :/p in place of in order to post this.


<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet xmlns:ws="urn:com.workday/workersync" exclude-result-prefixes="query cmd dncv" version="1.0" xmlns:cmd="http://www.novell.com/nxsl/java/com.novell.nds.dirxml.driver.XdsCommandProcessor" xmlns:/dncv="http://www.novell.com/nxsl/java/com.novell.nds.dirxml.driver.DNConverter" xmlns:query="http://www.novell.com/nxsl/java/com.novell.nds.dirxml.driver.XdsQueryProcessor" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- parameters passed in from the DirXML engine -->

<xslaram name="destQueryProcessor"/> -->
<xslaram name="srcCommandProcessor"/>
<xslaram name="destCommandProcessor"/>
<!-- identity transformation template -->
<!-- in the absence of any other templates this will cause -->
<!-- the stylesheet to copy the input through unchanged to the output -->
<xsl:template match="node()|@*">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>

</xsl:copy>
</xsl:template>
<!-- add your custom templates here -->
<xsl:template match="ws:Worker">
<add class-name="User" src-dn="'~source.DN~'">

<add-attr attr-name="CN">
<!-- generate the value element using string syntax
note that attributes that require a structured or octet syntax
may require special handling here -->
<value type="string" >
<xsl:value-of select="ws:Additional_Information/ws:UserId" />
</value>
</add-attr>

</add>
</xsl:template>

</xsl:stylesheet>

Getting output with below error.

<input>
<ws:Worker_Sync xmlns:ws="urn:com.workday/workersync" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ws:Header>
<ws:Version>25.0</ws:Version>
<ws:Prior_Entry_Time>2016-10-01T15:29:00.000-07:00</ws:Prior_Entry_Time>
<ws:Current_Entry_Time>2016-10-28T08:51:56.565-07:00</ws:Current_Entry_Time>
<ws:Prior_Effective_Time>2016-10-01T00:00:00.000-07:00</ws:Prior_Effective_Time>
<ws:Current_Effective_Time>2016-10-28T00:00:00.000-07:00</ws:Current_Effective_Time>
<ws:Full_File>false</ws:Full_File>
<ws:/Document_Retention_Policy>30</ws:/Document_Retention_Policy>
<ws:Worker_Count>1</ws:Worker_Count>
</ws:Header>
<add class-name="User" src-dn="'\abc\USER\ASOC'">
<add-attr attr-name="CN">
<value type="string">SD015001</value>
</add-attr>

DirXML Log Event -------------------
Driver:
Channel: Publisher
Status: Error
Message: Code(-9038) Element <ws:Worker_Sync> found under <input> is not allowed.


<output>
<status event-id="0" level="error">Code(-9038) Element &lt;ws:Worker_Sync> found under &lt;input> is not allowed.<application>DirXML</application>
<module>Workday Rest Driver</module>
<object-dn></object-dn>
<component>Publisher</component>
</status>
</output>

As the error says this <ws:> tags are not allowed. How can I remove this tag or is there any workaround?