• HOME
  • DATEX II
    • Background
    • Organisation
    • Standardisation
  • News
  • Download
    • Archive
      • 2.0 Release Candidates
        • 2.0 RC1
        • 2.0 RC2
      • 1.0
    • Brochure
    • Info
  • Deployments
    • Datex nodes directory
    • DII extension directory
  • Forum
  • Issues
    • Info
  • User Forum
    • Berlin 2010
    • Stockholm 2012
  • Contacts
    • Links
    • Mail
Search

User login
  • Create new account
  • Request new password

DATEX II newsletter

Stay informed on our latest news!

Previous issues

You have come to the right place for information on DATEX. The standard for the exchange of traffic related data.

This website is gradually growing, visit often to benefit from updates as soon as possible.


Home | Forums | DATEX II | Exchange
  • Login or register to post comments
2 replies [Last post]
Mon, 07/12/2009 - 12:53
christophe.aubin
Offline
Last seen: 2 years 3 weeks ago
Joined: 16/11/2009

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 ?

Top
  • Login or register to post comments
Wed, 16/12/2009 - 16:43
#1
jaderberg
Offline
Last seen: 1 day 2 hours ago
Joined: 08/06/2009
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?

Top
  • Login or register to post comments
Wed, 03/02/2010 - 10:31
#2
jaderberg
Offline
Last seen: 1 day 2 hours ago
Joined: 08/06/2009
Solved

The problem was related to namespace definitions in the XSLT.

Top
  • Login or register to post comments

All the DATEX activities are supported by the EasyWay Project and co-funded by the European Commission      

Privacy - Policy

Hosted by Autostrade per l'Italia.