Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-488

Global element of simple type problem


    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: C++-SCA-Next
    • Fix Version/s: C++-SCA-Next
    • Component/s: C++ SDO
    • Labels:
    • Environment:
      Windows XP


      When I read XML (via the XML DAS) that validates against an XSD with a GED
      with a complex type and then write it out again (via the XML DAS) the output
      matches the input, for example,

      IN XSD:
      <schema xmlns="..."
      <complexType name="ComplexTypeContentType">
      <element name="SimpleTypeWithName" type="string"/>
      <element name="RootElement7" type="tns:ComplexTypeContentType"/>

      IN XML:
      <tns:RootElement7 xmlns:tns="...">

      OUT XML:
      <RootElement7 xmlns="...">

      So all is well. When I repeat this execise with a GED with a simple type
      rather than a complex type then the output doesn't match the input.

      IN XSD:
      <schema xmlns="...">
      <simpleType name="SimpleTypeWithNameType">
      <restriction base="string"/>
      <element name="RootElement6" type="tns:SimpleTypeWithNameType"/>

      IN XML:
      <tns:RootElement6 xmlns:tns="... ">

      OUT XML:
      <RootElement6 xmlns="...">

      SDO has problems problems working out how to hold onto the value of the simple type at the top level of the data object tree because, with a
      simple type, there is no data object to holds the property that is the simple type.

      GEDs of simple type don't occur that often in the real world but it is a likely candidate for the first simple test of a new user. Hence it gives
      a bad impression if it doesn;t work as expected.


        1. 488.xml
          0.1 kB
          Yang ZHONG
        2. fidelity.xsd
          3 kB
          Yang ZHONG



            • Assignee:
              simonslaws Simon Laws
            • Votes:
              0 Vote for this issue
              0 Start watching this issue


              • Created: