The Constitution of Hungary
June 9th, 2006
A new feature of MetaLex 1.3 is the addition of a Hungarian substitutionGroup schema. See the schema/hu and transform/hu subdirectories in the MetaLex zip file. A fragment of the constitution of Hungary, in Hungarian and English, with localized Hungarian XML elements, is available as an example of localizing the MetaLex schema.
Note the solution we chose for the non-standard ordering of category and index (I. fejezet). A very neat trick is is to transform the Hungarian locale-specific elements to standard MetaLex, and then to tranform them into Dutch locale-specific elements with the pipeline hu/nl:
The pipeline hu/nl only works for this example because the original example file in the zip file is in Hungarian XML, and the required transformations for both Hungarian and Dutch are found by Cocoon. This use of the substitutionGroup feature is for instance useful if a Dutch software developer or editor works with a corpus of XML files with Hungarian content, or vice versa. All language versions are obviously based on the same XML schema, but it takes some time before you start to recognize element tag names in a language that is completely unfamilar to you.
Entry Filed under: Examples
Leave a Comment
You must be logged in to post a comment.
Trackback this post | Subscribe to the comments via RSS Feed