How to force an empty namespace in a XML file using XSLT transformation -


i have xslt transformation converts xml, , need have following empty namespace in 1 tag:

<rps xmlns=""> 

the header of xml file is:

<?xml version="1.0" encoding="utf-8"?> <rps>...</rps> 

the header of xslt is:

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/xsl/transform" xmlns:g="http://www.g2ka.com.br" xmlns:g2ka="com.g2ka.nfse.offline.util.offlineutils" xmlns:util="com.g2ka.nfse.util.util" exclude-result-prefixes="g g2ka util"> <xsl:output method="xml" version="1.0" encoding="iso-8859-1" standalone="yes" indent="yes"/> 

what can force xmlns="" in rps tag? help.

this cannot done in xslt. empty namespace declaration on root element entirely redundant , removed (unless you're using libxslt processor).


Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -