webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

xml:lang

  • 1.  xml:lang

    Posted Tue March 05, 2002 02:25 PM

    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.]


    #API-Management
    #Tamino
    #webMethods


  • 2.  RE: xml:lang

    Posted Tue March 05, 2002 02:49 PM

    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.]


    #Tamino
    #API-Management
    #webMethods


  • 3.  RE: xml:lang

    Posted Wed July 10, 2002 11:31 AM

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


    #Tamino
    #webMethods
    #API-Management


  • 4.  RE: xml:lang

    Posted Thu July 11, 2002 12:48 PM

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

    Michael


    #API-Management
    #Tamino
    #webMethods


  • 5.  RE: xml:lang

    Posted Thu July 11, 2002 05:46 PM

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

    Jerome


    #webMethods
    #Tamino
    #API-Management


  • 6.  RE: xml:lang

    Posted Thu July 11, 2002 06:33 PM

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

    Michael

    Software AG Germany, Darmstadt


    #Tamino
    #webMethods
    #API-Management


  • 7.  RE: xml:lang

    Posted Fri July 12, 2002 12:36 PM

    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)


    #Tamino
    #webMethods
    #API-Management


  • 8.  RE: xml:lang

    Posted Mon July 15, 2002 10:20 AM

    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


    #Tamino
    #webMethods
    #API-Management


  • 9.  RE: xml:lang

    Posted Tue July 16, 2002 01:44 PM

    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)


    #API-Management
    #Tamino
    #webMethods


  • 10.  RE: xml:lang

    Posted Thu March 20, 2003 12:33 PM

    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.


    #API-Management
    #webMethods
    #Tamino


  • 11.  RE: xml:lang

    Posted Thu March 20, 2003 12:34 PM

    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.


    #webMethods
    #API-Management
    #Tamino