//AMIS Technology Blog » schematron

Posts tagged schematron

Vacatures bij AMIS services

Business Validation in Oracle SOA Suite 11g using Schematron

4

In a previous post I’ve explained the Schematron standard, how it works and how to use it. In the Oracle SOA Suite you can ‘Validate Semantic’ on the input (request) of a routing rule in a Mediator component by selecting a Schematron file. This is the Schemtron xml file in which you define your validation rules. The SOA Suite takes care of applying them on the request by executing the double transformation. However, to be able to get the Schematron file working you need to declare the namespaces of the input message and rewrite a report rule to an assert rule. In this post I will show you how to do this with the same business rules (so the same Schematron rules and Schematron file) as the last example in a previous blog explaining Schematron. (more…)

SIG Event

Extending XML Document Validation with Schematron

4

The use of XML documents is common practice nowadays and so is XML schema (XSD) to validate XML documents. XML validation is often needed to ensure structure, content and relations are correct and valid. However validation only using a schema (XSD) only covers a small part: it can describe the basic XML structure (valid elements and order) and some basic content validation of a XML node. Schematron can be used to cover the remaining part of XML validation, like:

  • Advanced structure validation e.g. element A should have either attribute X or attribute Y, but not both and always one of them
  • Structure depending on content e.g. when attribute A of element B has value ‘x’ , then it should have child element C
  • Content validation on multiple nodes e.g. sum of all percentage elements should be 100
  • Relations between elements e.g. For each employee element with a manager attribute there should be another employee element with an id attribute having the same value (meaning manager of employee should exist)

(more…)

Go to Top