Original title:
Interaktivní vizualizace RELAX NG schémat
Translated title:
Interactive Visualisation of RELAX NG Schemas
Authors:
Sýkora, Lukáš ; Kosek, Jiří (advisor) ; Ralbovský, Martin (referee) Document type: Bachelor's theses
Year:
2007
Language:
cze Publisher:
Vysoká škola ekonomická v Praze Abstract:
[cze][eng] Cílem práce je vytvořit nástroj pro vizualizaci RELAX NG schémat. RELAX NG schémata definují podobu dokumentů XML. Určují jaké elementy a atributy je možné v dokumentu používat a jak je lze vzájemně kombinovat. Vizualizace schémat má smysl pro jednodušší orientaci v struktuře RELAX NG vzorů. To se hodí vývojářům schémat i uživatelům, kteří podle schémat budou psát XML dokument. RELAX NG schéma je možné zaznamenat pomocí XML, což umožňuje jeho vizuální reprezentaci pomocí stromové struktury. Model stromu bude navíc interaktivní, což uživateli umožní zobrazovat jen větve stromu, které ho zajímají. K dosažení cíle bude použito několik technologií. Zaprvé bude zapotřebí řádně analyzovat konstrukce jazyka RELAX NG pro možnost jejich budoucí vizualizace. Další technologií bude formát SVG pro popis vektorové grafiky, jehož zápis se provádí rovněž pomocí XML. Interaktivita modelu popsaného pomocí SVG bude umožněna ECMAScriptem. Převod z RELAX NG do SVG grafiky bude prováděn pomocí XSLT transformace. Přínosem práce bude samotná vizualizace, která uživatelům i vývojářům usnadní orientaci v schématu. K vizualizaci vlastního RELAX NG budou potřebovat pouze XSLT procesor a soubor s XSLT transformací, který bude výsledkem této práce. Práce je rozdělena do třech tématických celků. V první části se zabývám analýzou konstrukcí jazyka RELAX NG a možnostmi jejich vizualizace. Zejména se zajímám o současné možnosti grafické interpretace schémat. Druhá část se zabývá návrhem grafických značek pro jednotlivé uzly grafického modelu a také možnostmi jejich interakcí. Třetí část se věnuje prototypové implementaci převodu RELAX NG do SVG grafiky.The aim of this thesis is to create a tool for visualisation of RELAX NG schemas. RELAX NG schemas define a form of XML documents. They determine what elements and attributes can be used in the document and how they can be combined. Visualisation of schemas enables easier orientation in the structure of RELAX NG patterns. This can be useful for both developers of schemas and users who use schemas for creation of XML documents. RELAX NG schema can be written using XML, which enables its visual representation by means of tree structure. Moreover, the model of the tree is interactive which enables users to display only the branches they are interested in. The aim will be reached in several steps. At first, it is necessary to analyze properly the structures of RELAX NG language with respect to their future visualisation. Next step is SVG format for description of vector graphics. SVG format can be written using XML as well. Interactivity of the model described by SVG is enabled by ECMAScript. The conversion from RELAX NG to SVG graphics will be done by means of XSLT transformation. The main contribution of this thesis will be the visualisation which facilitates the orientation in the schema for both users and developers. Only XSLT processor and a file with XSLT transformation will be needed for the visualisation of RELAX NG. The file with XSLT transformation will be the output of this thesis. The thesis is divided into three main parts. The first part is focused on the analysis of the structures of RELAX NG language and the possibilities of their visualisation. Particular attention will be given to the current possibilities of graphic interpretation of schemas. The second part is devoted to the design of graphic symbols for individual nodes of the graphic model and the possibilities of their interaction. The third part deals with the prototype implementation of transformation of RELAX NG to SVG graphics.
Keywords:
RELAX NG; SVG; XML; RELAX NG; SVG; XML
Institution: University of Economics, Prague
(web)
Document availability information: Available in the digital repository of the University of Economics, Prague. Original record: http://www.vse.cz/vskp/eid/11115