Jump to content

processing different node the same way


XSLTnewbie

Recommended Posts

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 by XSLTnewbie
Link to comment
Share on other sites

post your xslt code which is not working.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...