On 7/10/2012 1:36 PM, TexMix wrote:
> So I am trying to test a node value contained in the soap driver output
> document either in a style sheet or in policy and send an email based on
> that value. Drilling down to the right node to match on has proven to
> be a challenge because the names of a few parent nodes vary
> (Inconsistent parent nodes name in example below: ValueOneResponse &
> ValueOneResult) depending on the input document.
> So This is what the output document looks like:
> <output>
> <soap:Envelope
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <soap:Body>
> <ValueOneResponse xmlns="urn:northgrum.com/cpa/provisioning/">
> <ValueOneResult>
> <Number>*1000*</Number>
> <Description>One Thousand and three</Description>
> </ValueOneResult>
> </ValueOneResponse>
> </soap:Body>
> </soap:Envelope>
> </output>
> I would like to send an email based on the <Number> node value listed
> above. Any suggestions on how to do this would be great!

//ValueOneResult/Number/text() to select the value?

// searches down from the specified context (unspecified is current
context) and then just enough specificity to make sure you are getting
the right node.