You just need to define a default namespace in XSLT. If you also define one with a prefix so that you can easily select elements from the input XML:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://workflow.converga.com.au/compass" xmlns:compass="http://workflow.converga.com.au/compass"> <xsl:template match="compass:pExport"> <pExport>...</pExport> ...
The above template will match your XML input element - and the generated literal will be in the default namespace (which is the same namespace).
Of course, you should know that in XML the prefix does not matter - two elements are identical if they have the same namespace and local name, even if both prefixes are defined for this namespace.
<element xmlns="http://test.com"></element> <ns01:element xmlns:ns01="http://test.com"></ns01:element>
The two elements above are the same because they have the same full name.
samjudson
source share