Mr. Tomaszek
April 20th, 2005, 01:53 AM
Hi - this is my another problem wyth xslt transformation
I'm using XSLT below
<xsl:output method="xml" version="1.0" encoding="utf-8" omit-xml-declaration="no"/>
<xsl:template match="/">
<xsl:element name="ofe:ofe" namespace="urn:ofe">
<xsl:attribute name="wersja">
<xsl:text>1.0</xsl:text>
</xsl:attribute>
</xsl:element>
and I'm getting result:
<?xml version="1.0"?>
<ofe:ofe wersja="1.0" xmlns:ofe="urn:ofe"/>
which it's ok but order of parameters is not correct
it should be
<?xml version="1.0"?>
<ofe:ofe xmlns:ofe="urn:ofe" wersja="1.0" />
Please help - what I have to do to change it?
Big thanx in advance.
I'm using XSLT below
<xsl:output method="xml" version="1.0" encoding="utf-8" omit-xml-declaration="no"/>
<xsl:template match="/">
<xsl:element name="ofe:ofe" namespace="urn:ofe">
<xsl:attribute name="wersja">
<xsl:text>1.0</xsl:text>
</xsl:attribute>
</xsl:element>
and I'm getting result:
<?xml version="1.0"?>
<ofe:ofe wersja="1.0" xmlns:ofe="urn:ofe"/>
which it's ok but order of parameters is not correct
it should be
<?xml version="1.0"?>
<ofe:ofe xmlns:ofe="urn:ofe" wersja="1.0" />
Please help - what I have to do to change it?
Big thanx in advance.