xml:lang

Hi,

I have been looking at X-Application. A lot of my schemas for which I want to create X-applications contain xml:lang attributes, which are currently not supported by Tamino. I assume that if I modify my schemas and update all my stored documents to use another attribute with the same function, I can get X-application to work?

Is support for xml:lang planned? Is there any reason why xml:lang is not supported? Has it got anything to do with namespaces?

[This message was edited by Christian Freytag on 20 Mar 2003 at 12:05.]

Basically, the current version of X-Application
supports the “DTD features” of XML schema - without mixed content/any.

We plan to implement most of the missing XML
schema features.
There is no precise schedule yet, but since I
have seen quite a few request for xml:lang,
this feature might be supported with higher priority than others.

Michael

Software AG Germany, Darmstadt

[This message was edited by Harald Wolf on 05 Mar 2002 at 15:02.]

Do you know anything new about xml:lang support within X-Application ?

Things haven’t change since my initial post.
Sorry, but I’m not allowed to make any promises.

Michael

ok I did some changes in X-Application to support xml:lang attributes. Maybe this could help people.

Jerome

I’m sure this would help people. What did you have to change?

Michael

Software AG Germany, Darmstadt

In fact there were 3 problems :

-Business documents attributes doesn’t support namespaces and JDOM handles xml:lang attributes with namespace. So I had to modifiy this JDOM attributes just before building a Business document. (lang attribute with xml namespace becomes xml:lang attribute)

-The Xpath interpreter checks for namespaces too. So I made it ignore the xml namespace and handle the xml:lang attribute with the full “xml:lang” name.

-The last problem was about application generator. The Tamino schema contains attributes references to xml:lang attribute but this attribute isn’t defined in the schema. So I simply replaced all attributes references with attributes definitions.

This seems to work pretty well. Using the xml:lang and xml:space attributes without the xml namespace is correct as explained in the JDOM FAQ.
(http://www.jdom.org/docs/faq.html, look for xml:lang in the page)

Wow, I’m impressed.

Namespace support has high priority for use. From what you write, xml:lang support is quite easy to do, once we support namespaces.

Michael

Software AG Germany, Darmstadt

I think so but I can live with xml:lang attributes without namespace. Because the prefix must always be “xml” (This attribute was born before the w3c namespace specification)

Hello,

the xml:lang feature is supported with X-Application version 4.1.1. Another request related to this topic is

http://tamino.forums.softwareag.com/viewtopic.php?p=13768

Please, take notice of the hint Harald Lemmin gives for schemas that are using referneces to elements of xml namespace.
The import clause he proposed is

<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="../ino:collection/xml_lang_space" />



Bye,
Christian.

Hello,

the xml:lang feature is supported with X-Application version 4.1.1. Another request related to this topic is

Schema w/ import gives error 500

Please, take notice of the hint Harald Lemmin gives for schemas that are using referneces to elements of xml namespace.
The import clause he proposed is

<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="../ino:collection/xml_lang_space" />



Bye,
Christian.