Click here to Skip to main content
15,890,690 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I have following data. I want to bind this data twice(same node twice) using Xslt. Can anyone suggest a way?


<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>


Tove Jani Reminder Don't forget me this weekend!<b></b>

Tove Jani Reminder Don't forget me this weekend!
Posted
Comments
Richard C Bishop 16-May-13 15:53pm    
That data is directly from W3Schools.com. Did they not teach you to bind it?

I'm not sure what you mean by "bind" in this context, but to do xslt processing on a node twice, you need to setup a rule in the xslt that matches the node, and duplicate the processing within the xslt node. I don't believe there is a way to get an xslt rule to fire twice on the same data.
 
Share this answer
 
Write the same snippet of XSLT twice.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900