splitting into variables using xslt

Brettleh

New Member
My input xml can have \[code\]tagrepeat\[/code\] element multiple times. I want to split this input xml, using xslt 1.0, have xslt variables to hold the individual xmls(after spliting)input xml\[code\]<a xmlns:f="sample"> <Header></Header> <Body> <f:tagrepeat> <b d="2"></b> </f:tagrepeat> <f:tagrepeat> <b d="2"></b> </f:tagrepeat> </Body></a>\[/code\]So my variable \[code\]split1\[/code\], in the xslt should have\[code\]<a xmlns:f="sample"> <Header></Header> <Body> <f:tagrepeat> <b d="2"></b> </f:tagrepeat> </Body></a>\[/code\]as there are two repetitions in this case variable split2 should have\[code\]<a xmlns:f="sample"> <Header></Header> <Body> <f:tagrepeat> <b d="2"></b> </f:tagrepeat> </Body></a>\[/code\]
 
Back
Top