5 Replies Latest reply: Jul 25, 2011 11:40 AM by Mikereiche-Oracle RSS

    Weird behavior using "Open schema type..."

    Lbatista-Oracle
      I'd like to check if I'm doing something wrong or it's a bug.

      Steps to reproduce:
      1- Create a ODSI project;
      2- Create a folder and name it "schemas";
      3- Create a "test.xsd" schema into "schemas" using this code:
      <?xml version="1.0" encoding="UTF-8"?>
      <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
                xmlns="http://schemata.petrobras.biz/corp/core-types/1.0"
                elementFormDefault="qualified"
                xmlns:xml="http://www.w3.org/XML/1998/namespace"
                attributeFormDefault="unqualified">
      <xs:import namespace="http://www.w3.org/XML/1998/namespace"/>
      <xs:complexType name="TextLineType">
      <xs:simpleContent>
      <xs:extension base="xs:normalizedString">
      <xs:attribute ref="xml:id"/>
      <xs:attribute ref="xml:lang"/>
      <xs:attribute ref="xml:space"/>
      </xs:extension>
      </xs:simpleContent>
      </xs:complexType>
      </xs:schema>
      4- Save your project;
      5- Right click "schemas" folder and select "Open Schema Type...";
      6- There's no matching types!
      7- If you remove all three attributes from extension tag you will have the matching type.

      Am I doing something wrong with those attributes?