How to use the node set expres like child,following,sibling in XSLT
878078Oct 6 2011 — edited Feb 26 2020Hi All,
I am having the following XSD structure i need to process the data depending on the record type selection of old&new account in transformation.
<DDAchnages>
<Old record>
<rec_type>
<data>
</Old record>
<New record>
<rec_type>
<data>
</New record>
</DDAchnages>
i tried to use the following code in XSLT but its not working.
<xsl:for-each select="/tns:DAChanges/child::*">
<xsl:if test="tns:recType='6' and following-sibling::*[1]/tns:recType='7' "> then
<xsl:variable name="NewAccount" select="following-sibling::*[1]"/>
Please help me out in this regard
Regards,
Anu.