end parent tag in mixed content

Harrygraphics

New Member
I am trying figure out in XSL how to end element <bold> it the parent of element EDIT Also, content of element <paragraph> takes the style name child ("bold") but not of <link> element

Input XML\[code\]<paragraph> This is some text that has no style </paragraph> <paragraph> This is some text that is <bold>correct way</bold> <link>need to be linked </link> to a document </paragraph> <paragraph> This is some text that is <bold>incorrect <link>need to be linked </link> way </bold> to a document </paragraph>\[/code\]
Output Xml should be\[code\]<paragraph> This is some text that has no style </paragraph> <paragraph> <style name="bold">This is some text that is <bold>correct way</bold>&lt/style> <link>need to be linked </link><style name="bold"> to a document&lt/style> </paragraph> <paragraph> <style name="bold">This is some text that is <bold>incorrect</bold>&lt/style> <link>need to be linked </link><style name="bold"> <bold> way </bold> to a document&lt/style> </paragraph>\[/code\]Any Help is greatly appreciated.
 
Back
Top