In my SOAP driver I am sending a SOAP request and getting back a result
set.

The problem is that my code, <xsl:value-of
select="$result//value[@display=$displayValue]/@ID"/> does not return
any value. In the simulator in Designer, if I remove the namespace from
the query result, I get the expected value, e.g. if $displayValue = DBA,
then //value[@display='DBA']/@ID returns 441.

Why does the namespace in the output affect my xpath statement?

Is there a way to get the ID attribute with the namespace in the
output?


<xsl:template name="getReferenceData">
<xslaram name=referenceDataType"/>
<xslaram name="displayValue"/>
<xsl:variable name="query">
<soap-env:Envelope
xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
<soap-env:Body>
<retrieveReferenceDataRequest
xmlns="urn:cerner:xmlns:security-provisioning:refData"
requestID="test"
targetID="xxx">
<refData>
<dataType>
<xsl:value-of select="$referenceDataType"/>
</dataType>
</refData>
</retrieveReferenceDataRequest>
</soap-env:Body>
</soap-env:Envelope>
</xsl:variable>
<!-- do the queryr -->
<xsl:variable name="result"
select="query:query($destQueryProcessor,$query)"/>
<xsl:value-of select="$result//value[@display=$displayValue]/@ID"/>


The query result set:
<nds dtdversion="2.0">
<source>
<product build="20090519_235451" instance="Cerner Provisioning"
version="3.5.4">Identity Manager Driver for SOAP</product>
<contact>Novell, Inc.</contact>
</source>
<output>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<retrieveReferenceDataResponse requestID="test" status="success"
xmlns="urn:cerner:xmlns:security-provisioning:refData">
<refData>
<dataType>POSITION</dataType>
<value ID="441" display="DBA"/>
<value ID="454" display="Pathologist"/>
<value ID="456" display="Nurse"/>
</refData>
</retrieveReferenceDataResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
</output>
</nds>


--
hansonde
------------------------------------------------------------------------
hansonde's Profile: http://forums.novell.com/member.php?userid=353
View this thread: http://forums.novell.com/showthread.php?t=421364