Forum Stats

  • 3,814,617 Users
  • 2,258,892 Discussions
  • 7,892,783 Comments

Discussions

Oracle OSB 12C XSD 1.1

Jack Issac
Jack Issac Member Posts: 78 Blue Ribbon
edited Dec 12, 2019 3:14AM in SOA Suite Discusssions

Hi everynone,

We are making assertion in XSD with version 1.1 When we check this schema in Oxygen Application and validation rule is working on it.

<xs:complexType name="BusinessInteractionType">
          <xs:sequence>
              <xs:element name="ID" minOccurs="0">
                  <xs:complexType>
                      <xs:simpleContent>
                          <xs:extension base="xs:string">
                              <xs:assert test="$value > 500"/>
                          </xs:extension>
                      </xs:simpleContent>
                  </xs:complexType>
              </xs:element>

</xs:complexType>

But with OSB 12C schema is not validating with OSB and it is giving following error messages

Expected elements '[email protected]://www.w3.org/2001/XMLSchema [email protected]://www.w3.org/2001/XMLSchema [email protected]://www.w3.org/2001/XMLSchema [email protected]://www.w3.org/2001/XMLSchema' instead of '[email protected]://www.w3.org/2001/XMLSchema' here in element [email protected]http://www.w3.org/2001/XMLSchema

So, is XSD version 1.1 supported in OSB 12C or how we can handle this exception in OSB 12C?

Thanks,

Jack.

Tagged:
Martien van den Akker

Best Answer

  • Martien van den Akker
    Martien van den Akker Member Posts: 2,776 Bronze Crown
    edited Dec 11, 2019 6:44AM Answer ✓

    Hi Jack,

    As far as I know, this is not supported by OSB and/or SOA Suite. I'd validate these kinds of rules using XSLT. Create an XSD that can contain a list of messages and create an XSLT or XQuery that transforms from your xsd to the error-messages.xsd. Use if's and/or chooses to do the validations. If there are no messages then the xml is valid.

    Kind regards,
    Martien

    Jack Issac

Answers