STM
Simple Tree Manipulation
Index > Books > Declarative Development Guide > Technology Tour > Runtimes > STM

Rate this page:
Really useful
Satisfactory
Not helpful
Confusing
Incorrect
Unsure
Extra comments:


Simple Tree Manipulation

STM is a new transform language developed by 1060 Research. STM was developed because it was apparent that XML applications make frequent use of simple XML tree operations. It was found that XSLT is often inappropriate as a light-weight model for rapidly transforming document tree structures.

STM uses an XPath location model to rapidly apply operations to multiple targets in the processed document. It can be used to append, replace, extract, delete, query by regular expression, set values and attributes, generate branches and apply and remove namespaces on the target document. For these types of operation STM is easier to write and maintain and more efficient than XSLT.

Here is an example that extract's Act 1 Scene 1 from Shakespeare's King Lear and applies a namespace to the extracted document fragment.

Here is another example. In this case we are extracting all the speeches by GLOUCESTER.

A tutorial and reference to STM is available here.

© 2003,2004, 1060 Research Limited. 1060 registered trademark, NetKernel trademark of 1060 Research Limited.