Hi,

I'm working on an XLST input transformation for an add response coming
over a SOAP driver. I had to add a new new namespace declaration for the
stylesheet because of XPath sensitivity (as per the guidance in this
post:
http://forums.novell.com/novell-prod...ap-driver.html)

However, the namespace is being appended as an attribute to my
elements. For example, here is my source doc:

<createUserResponse
xmlns="http://wsintf.facade.ezscreening.ihss.curam">
<createUserReturn>
<details>
<success>true</success>
<userID>AABBCC10</userID>
<src-dn>\External\ExtUsers12\AABBCC10</src-dn>
<src-entry-id>12345</src-entry-id>
<event-id>099077418979812</event-id>
</details>
</createUserReturn>
</createUserResponse>

Here is my namespace defintion:

<xsl:stylesheet exclude-result-prefixes="query cmd dncv soap-env spml"
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:soap-env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:spml="urnasis:names:tc:SPML:1:0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:as="http://wsintf.facade.ezscreening.ihss.curam">

Here is my xslt code (for this transform only):

<xsl:template match="as:createUserResponse">
<xsl:message>Input: Convert SPML to XDS</xsl:message>
<xsl:variable name="userID"
select="string(as:createUserReturn/as:details/as:userID)"/>
<xsl:variable name="dn"
select="string(as:createUserReturn/as:details/as:src-dn)"/>
<xsl:variable name="entryID"
select="string(as:createUserReturn/as:details/as:src-entry-id)"/>
<xsl:variable name="eventID"
select="string(as:createUserReturn/as:details/as:event-id)"/>
<status>
<xsl:attribute name="event-id">
<xsl:value-of select="$eventID"/>
</xsl:attribute>
<xsl:attribute name="level">success</xsl:attribute>
</status>
<add-association>
<xsl:attribute name="dest-dn"><xsl:value-of
select="$dn"/></xsl:attribute>
<xsl:attribute name="dest-entry-id">
<xsl:value-of select="$entryID"/>
</xsl:attribute>
<xsl:attribute name="event-id">
<xsl:value-of select="$eventID"/>
</xsl:attribute>
<xsl:value-of select="$userID"/>
</add-association>
</xsl:template>

But here is my result:

<output>
<status event-id="099077418979812" level="success"
xmlns:as="http://wsintf.facade.ezscreening.ihss.curam"/>
<add-association dest-dn="\External\ExtUsers12\AABBCC10"
dest-entry-id="12345" event-id="099077418979812"
xmlns:as="http://wsintf.facade.ezscreening.ihss.curam">AABBCC10</add-association>
</output>

I do not want the namespace included in the result elements. How do i
remove it?

Thanks,
-Mike


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