Usage of X-lexicon in the X-definition (input data in French version).
X-definition
<xd:def xmlns:xd = "http://www.xdef.org/xdef/4.2" xd:name = "Test" xd:root = "Book" > <Book ISBN="int(10000000, 999999999);" year = "gYear();" title = "string();" > <Author xd:script="occurs *"> string(); </Author> </Book> <xd:lexicon language='eng' default='yes'> /* All items in the model of Book are in English version. */ </xd:lexicon> <xd:lexicon language='deu'> /* German version */ Test#Book = Buch Test#Book/@year = Jahr Test#Book/@title = Titel Test#Book/Author = Autor </xd:lexicon> <xd:lexicon language='fra'> /* French version */ Test#Book = Livre Test#Book/@year = année Test#Book/@title = titre Test#Book/Author = Auteur </xd:lexicon> </xd:def>
Input data (the French version)
<Livre ISBN = "123456789" année = "1992" titre = "Snow Crash" > <Auteur>Neal Stephenson</Auteur> </Livre>
You can edit both
X-definition
and/or
Input data
Try translation. Specify the output language ("eng", or "deu"):