i have requirement select same element came 2nd time in same parent element using xslt.
i displaying xml..
<parent> <a>0001</a> <b>05</b> <c>20160825</c> <d>9463</d> <e>anders skov petersen</e> <f></f> <g></g> <h></h> <i></i> <a>0002</a> <b>05</b> <c>20160825</c> <d>9463</d> <e>anders skov petersen</e> <f></f> <g></g> <h></h> <i></i> </parent>
in xml , , b, c , other elements came twice . if have fetch value of element came 2nd time in xslt any1 please tell me how this?
you can access second following xpath-expression
/parent/a[2]
this short form of
/parent/a[position()=2]
Comments
Post a Comment