Datex II and XSLT
Hi,
I'm trying to use XSLT to transform DII V1.0 file on DII V2.0 file (changing tags for example). But I encounter a problem.
I think that the description of xmlns blocks me.
I develop.
In the original file (V1.0) we have :
<d2LogicalModel modelBaseVersion="1.0" xmlns="http://datex2.eu/schema/1_0/1_0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://datex2.eu/schema/1_0/1_0 http://datex2.eu/schema/1_0/1_0/DATEXIISchema_1_0_1_0.xsd">
This is a part of my XLST :
<xsl:template match="sourceInformation">
<source>
<xsl:apply-templates select="@* | node()"/>
</source>
</xsl:template>
When a delete xmlns="http://datex2.eu/schema/1_0/1_0", my transformation works, and only in this case.
I went through the documentation, and I've found this adress : http://datex2.eu/schema/2_0RC1/2_0
But it must be wrong.
-----
Does someone has an idea ?
Comments on namespace
Hi,
Regarding the namespace it's for
DATEX II 1.0 http://datex2.eu/schema/1_0/1_0
DATEX II 2.0 RC 1 http://datex2.eu/schema/2_0RC1/2_0
Can you send me a example file(s) so I can see what you try to do?
Solved
The problem was related to namespace definitions in the XSLT.