My CategoryType.xml document contains following xml elements in large number (around 7 thousand).
Please also note that ATRIBUTE_NAME and ATTIBUTE_CODE combination is unique here.
<type>
<Category ATRIBUTE_NAME="CDITP" ATTIBUTE_CODE="3">
<referenceCode>1000</referenceCode>
<referenceName>TelephoneNumber</referenceName>
</Category>
<Category ATRIBUTE_NAME="CDMTHDTP" ATTIBUTE_CODE="9">
<referenceCode>1009</referenceCode>
<referenceName>Contact Details</referenceName>
</Category>
-
-
-
</type>
Now, I want to develop a function using XSLT which will take input as ATRIBUTE_NAME and ATTIBUTE_CODE and returns back referenceCode, referenceName
Why I need function because I need to do huge number of transformations in my transformation xslt and hence function would come as handy.
I've searched the internet and could not found the satisying answers.
Please help.