Create xmlns attribute in the XML using XSLT Transformation
I am trying to add the xmlns attribute to the resulting XML with a value passed by parameter during XSLT transformation using JDK Transformer (Oracle XML v2 Parser or JAXP) but it always defaults to http://www.w3.org/2000/xmlns/ My source XML <test/> My XSLT <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://example.com"> <xsl:param name="myNameSpace" select="'http://neilghosh.com'"/> <xsl:template match="/"> <process> <xsl:attribute name="xmlns:neil"> <xsl:value-of select="$myNameSpace"/> </xsl:attribute> <