Skip to Content
0
Former Member
May 10, 2011 at 12:24 AM

XSLT question

25 Views

Hi all,

Need help on reading attribute value of XML field in XSLT mapping .

Part of source code, where we want to read attribute actionCode value i.e., "Accepted".

<ResponseCriteria actionCode="Accepted">
							<ChangeStatus>
								<Code>Position Opening was created</Code>
								<ReasonCode/>
								<Reason>PositionID assiggned - 10939</Reason>
								<Description/>
							</ChangeStatus>
						</ResponseCriteria>

We are able to reach till the location with below code in XSLT,

<xsl:value-of select="//*[local-name()='ResponseCriteria']"/>

This code is giving us values of Code & Reason fields.

How to get the values of attribute actionCode?? any ideas........