Restricting the indentation in xslt transformation!
Posted: Thu Mar 10, 2016 8:29 am
Hi team,
I am working on transforming xml elements using xslt. I am using " xalan:indent-amount="2" " in the xsl output declaration to indent my output xml. This indents all my output elements when converted. But, I would like to restrict this. Like, I do not want the indentation to work for one specifice template or element, but for remaining it should work.
How it is possible? I have searched for the solution, but could not get any match for my requirement.
Please help.
Regards,
Shabeer
I am working on transforming xml elements using xslt. I am using " xalan:indent-amount="2" " in the xsl output declaration to indent my output xml. This indents all my output elements when converted. But, I would like to restrict this. Like, I do not want the indentation to work for one specifice template or element, but for remaining it should work.
How it is possible? I have searched for the solution, but could not get any match for my requirement.
Please help.
Regards,
Shabeer