How to Remove Namespace from XML using XSLT

In this tutorial we will see how to remove namespace from XML using XSLT. As the title suggests we will use here XSLT to remove namespace from XML. Removing namespaces from an XML document is not recommended and is in essence comparable to removing namespaces from a programming framework or library. It may risk name clashes and lose the ability to differentiate between distinct elements. But if you need to absolutely remove for some reason then consider to remove namespace from XML using XSLT.

You would also like to read similar tutorial Transforming XML to HTML using XSLT

Continue reading “How to Remove Namespace from XML using XSLT”

Transforming XML to HTML using XSLT

Here we will see the example on transforming XML to HTML using XSLT. We can also use Java code to transform XML to HTML but that would require a many LoC to finish the job but using XSLT it is quite easy to transform. XSLT stands for XSL Transformations. The Extensible Stylesheet Language (XSL) is a family of recommendations and styling language for defining XML document transformation and presentation. It consists of three parts:

XSL Transformations (XSLT) : a language for transforming XML;
The XML Path Language (XPath) : an expression language used by XSLT (and many other languages) to access or refer to parts of an XML document;
XSL Formatting Objects (XSL-FO) : an XML vocabulary for specifying formatting semantics.

Continue reading “Transforming XML to HTML using XSLT”