Renaming XML tags if no attributes
Posted: Wed Aug 12, 2009 8:21 am
Hi.
Does any one know if there is a way to rename an opening and its corresponding closing tag if it has no attributes, in XSLT.
For example –
<SampleTag>
<Innertag/>
</SampleTag>
I need to rename <SampleTag> to <OuterTag> and </OuterTag> as <SampleTag> does not have attributes.
Any help would be greatly appreciated.
Regards,
Jan
Does any one know if there is a way to rename an opening and its corresponding closing tag if it has no attributes, in XSLT.
For example –
<SampleTag>
<Innertag/>
</SampleTag>
I need to rename <SampleTag> to <OuterTag> and </OuterTag> as <SampleTag> does not have attributes.
Any help would be greatly appreciated.
Regards,
Jan