XSLT transformation and Spring Boot: how to preserve namespace prefix in XML document after XSLT transormation
Similar question has already been asked here Namespace prefix disappeared after xslt transformation but I didn't find any solution regrettably. I'm new to XSLT and my goal is to pretty-print existing badly formatted XML document. The formatting is working fine but the the problem is that namespace prefix isn't preserved in the resulting XML after XSLT transformation. So the input is the following: Initial XML document: <root xmlns:h="http://www.w3.org/TR/html4/"> <h:table> <h:tr> <h:td>Apples</h:td> <h:td>Bananas</h:td> </h:tr> </h:table> <user> <name>Some name</name> <phone>Some phone</phone>
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.