Hello, I'm new to XSLT transformation, and I can't find an answer to this.
My XLST file contains the following:
My result XML should look like this:
<ELEM xmlns:xsi=" VERSION="1.0">
<ITEM></ITEM>
</ELEM>
My problem is that I can't get the xmlns:xsi= part to show up. The XSL looks like this:
<ELEM VERSION="1.0">
<ITEM></ITEM>
</ELEM>
Any help will be appreciated.
Thanks!
My XLST file contains the following:
Code:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="[URL unfurl="true"]http://www.w3.org/1999/XSL/Transform">[/URL]
<xsl:output method="xml" encoding="utf-8" omit-xml-declaration="yes" indent="no" />
<xsl:decimal-format name="europeancommadecimal" decimal-separator=',' grouping-separator='.' />
<xsl:decimal-format name="europeancommaspace" decimal-separator=',' grouping-separator=' ' />
<xsl:template match="/some_data">
<ELEM xmlns:xsi="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema-instance">[/URL]
<xsl:attribute name="VERSION">1.0</xsl:attribute>
<ITEM>
<xsl:apply-templates select="items"/>
</ITEM>
</ELEM>
</xsl:template>
My result XML should look like this:
<ELEM xmlns:xsi=" VERSION="1.0">
<ITEM></ITEM>
</ELEM>
My problem is that I can't get the xmlns:xsi= part to show up. The XSL looks like this:
<ELEM VERSION="1.0">
<ITEM></ITEM>
</ELEM>
Any help will be appreciated.
Thanks!