I need to create a xml file with xslt. I need that the first element contains two attribute as followed:
<Nomination_Doc release="1"
xmlns="sas:nominate:1">
I tried the following code:
<xsl:element name="Nomination_Doc">
<xsl:attribute name="release">1</xsl:attribute>
<xsl:attribute name="xmlns">sas:nominate:1</xsl:attribute>
but it gives me:
<Nomination_Doc release="1">
and the attribute xmlns is missing. i did a little research and found out that xmlns is like a reserved word, which is used only to declare a namespace SOURCE. What is the solution in this case?
question from:https://stackoverflow.com/questions/66065807/add-xmlns-as-an-attribute-to-an-element-in-xslt