Kontinuität - And transforming XML into a UI.
::: {.separator style=”clear: both; text-align: center;”}
{width=”400”
height=”300”}
:::
\ Das frohe neue Jahr hat fahrt aufgenommen - es beginnt fröhlich stürmisch mit frischem Wind.\ \ During the holidays I had some time and looked into xsl transforms again.\ This time I needed a nice way to build a simple UI for a specific XML document.\ My initial intention was to use a visitor pattern to transform the XML document into a corresponding Gtk UI, but then my eyes catched GtkBuilder.\ GtkBuilder builds a UI from an XML definition.\ And there it is, an ideal case for xslt: XSL ransform allow you to transform an XML document into some other plain-text document, this includes into other XML or - quite common - XHTML documents.\ \ The simple document looked something like this:\
Hello World.
This is something like xml-to-gtk
\ Using this xsl stylesheet and a bit of glue, resulted in a UI looking like this:\ \
::: {.separator style=”clear: both; text-align: center;”}
:::
\ Not pretty - but - hey - there are also other techniques that take some markup to built UIs, just think of clutter …\ \
::: {#footer} [ January 4th, 2012 7:49pm ]{#timestamp} [clutter]{.tag} [xslt]{.tag} [new year]{.tag} [xsl]{.tag} [xml]{.tag} [vala]{.tag} [fedora]{.tag} [gtk]{.tag} [markup]{.tag} :::