The health sector uses clinical guidelines as instruments for helping decision making. We are interested in the development of a ubiquitous decision support system (UDSS) for clinical guidelines in order to help the medical staff in their decisions and in order to record a trace of the application of the guidelines. For the development of such a system in a Model–Driven Development (MDD) setting, we propose the use of class diagrams of the Unified Modeling Language (UML) with stereotypes and eXtensible Markup Language (XML) schemas. When both languages, UML and XML, have to share a common modelling space, the necessity of transforming UML models into XML schemas arises. However, to our knowledge, previous transformation proposals do not consider the case in which some profiles have been applied to the UML model. For this reason, in this paper we propose a set of rules for translating stereotyped UML class diagrams into XML schemas, storing a trace of the application of the guideli...