Skoči na glavni sadržaj

Izvorni znanstveni članak

https://doi.org/10.2498/cit.2002.01.02

Transforming XML Documents using fxt

Helmut Seidl
Alexandru Berlea


Puni tekst: engleski pdf 224 Kb

str. 19-35

preuzimanja: 617

citiraj


Sažetak

As XML spreads to various application domains, transformation tasks on XML documents are accomplished by an ever increasing number of non-programmers. In this respect, rather than providing just a collection of basic operations via a library in a special purpose language, it is useful to provide a more intuitive, rule-based approach to XML transformation. The rule-based approach requires pattern-matching for identifying parts of the document to be processed. As XML document processing is basically a subarea of tree processing for which the functional programming style is very natural, we choose SML as implementation language. The functional style implies a processing model in which navigation is possible only to subtrees of a tree. This restriction can be compensated by using a tree pattern-matcher able to relate to ancestors, successors, as well as to siblings of a match. On top of the powerful fxgrep XML pattern-matcher, we build fxt, a transformation tool for XML documents. The functional processing model that fxt uses, allows an implementation more efficient than implementations permitted by the processing model of the popular XSLT, where navigation in the input tree can proceed in arbitrary directions. Usual transformations are specified in fxt in an intuitive, declarative way. More elaborate transformations can be flexibly achieved by the hooks provided to the full functionality of the SML programming language, as well as by the fxt’s variable mechanism.

Ključne riječi

Hrčak ID:

44794

URI

https://hrcak.srce.hr/44794

Datum izdavanja:

30.3.2002.

Posjeta: 1.365 *