XSLTnewbie Posted October 16, 2013 Share Posted October 16, 2013 (edited) I have multiple nodes that have exact same structure: <debitcard> <debitcard type="gold"> <name>name1</name> <isPhotoExist>Yes</isPhotoExist> </debitcard> <debitcard type="silver"> <name>name2</name> <isPhotoExist>No</isPhotoExist> </debitcard></debitcard><creditcards> <creditcard type="gold"> <name>name2</name> <isPhotoExist>Yes</isPhotoExist> </creditcard> <creditcard type="platinum"> <name>name3</name> <isPhotoExist>No</isPhotoExist> </creditcard></creditcards> I'll just two of them here. I need to process these nodes exactly the same way, but the problem arises when there are selections that requires "creditcard" or "passcard" as part of the expression (e.g creditcard[type=platinum]). Is there any way so I can process these nodes with just one generic template instead of multiple template approach I'm using right now? thanks Edited October 16, 2013 by XSLTnewbie Link to comment Share on other sites More sharing options...
birbal Posted October 21, 2013 Share Posted October 21, 2013 post your xslt code which is not working. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now