Discussions
Categories
- 17.9K All Categories
- 3.4K Industry Applications
- 3.3K Intelligent Advisor
- 63 Insurance
- 535.7K On-Premises Infrastructure
- 138.1K Analytics Software
- 38.6K Application Development Software
- 5.6K Cloud Platform
- 109.3K Database Software
- 17.5K Enterprise Manager
- 8.8K Hardware
- 71K Infrastructure Software
- 105.2K Integration
- 41.5K Security Software
Oracle OSB 12C XSD 1.1

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.
Best 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
Answers
-
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 -
Hi Martien,
First of all, thanks for your help. I understood what you mean with xsl / xquery. I will make validation rules with likewise what you said.
Have a nice day,
Jack.
-
Hi Jack,
I suddenly remembered that SOA Suite does support Schematron: https://technology.amis.nl/2012/01/05/business-validation-in-oracle-soa-suite-11g-using-schematron/
Since 11g already. Haven't used it myself yet. But I understood that you could do about the same as what you suggest with XSD1.1.
Kind regards,
Martien -
Hi Martien,
yeah, I have information about that; but I can't see any example for OSB. OSB has "validate" component and it is not enough for what I need.
I guess, I can't use shematron in OSB; for now I will develop xsl rules. Thanks for your advice.
But if you have more efficient solution, I want listen your advice.
Thanks,
Jack.