Information Systems Frontiers

, Volume 17, Issue 4, pp 917–946

Model-driven approach to modeling and validating integrity constraints for XML with OCL and Schematron


DOI: 10.1007/s10796-013-9471-4

Cite this article as:
Malý, J. & Nečaský, M. Inf Syst Front (2015) 17: 917. doi:10.1007/s10796-013-9471-4


The idea behind Model Driven Development (MDD) (Miller and Mukerji 2003) is to model the software system on several layers of abstraction. A designer starts from the very abstract specification (independent of the platform and language used) and progresses to more concrete models (using platform-specific constructs) and finally to code. Ideally, each step of the transformation of the model from the more abstract to the less abstract is achieved by a declarative transformation obtained (semi-)automatically. In our previous work, we have developed an approach for designing XML schemas based on MDD. We showed that a set of XML schemas representing different views of the same problem domain can be first modeled in a platform-independent level with a uniform conceptual schema expressed as a UML class diagram. Then each XML schema can be modeled as a view on this uniform UML class diagram. In this paper, we further extend our approach to modeling XML schemas using UML class diagrams with modeling integrity constraints using Object Constraint Language (OCL). We show that an integrity constraint expressed at the platform-independent level as an OCL expression can be translated to an expression at the XML schema level which can be used to validate XML documents. In particular, we propose a method which translates an OCL expression at the platform-independent level to a Schematron expression. Schematron is a language which enables to express integrity constraints at the XML schema level. We show that our approach saves time and prevents from errors made by designers when expressing Schematron constraints manually.


Integrity constraints OCL UML XML Schematron Conceptual modeling 

Copyright information

© Springer Science+Business Media New York 2013

Authors and Affiliations

  1. 1.XML and Web Engineering Research Group, Faculty of Mathematics and PhysicsCharles University in PraguePragueCzech Republic

Personalised recommendations