These are some examples of the STTP (SGML Tree Transformation Process). Later examples use procedures defined in earlier examples.
This example performs the identity transformation. The STTP specification is here.
This example performs a trsnformation which reverses the order of the children of each element. The STTP specification is here.
This example adds a ITEM element containing each DT, DD element pair occurring in a DL element. An example input instance is here. The output DTD is here. The STTP specification is here.
This example fills a number attribute with an appropriate number. An example input instance is here. The STTP specification is here.
This example is a solution to a problem presented at SGML 93 by David Sklar. A statement of the problem is here. The STTP specification is here.
This example shows how you can use the STTP to do validate IDREFs. An input DTD fragment is here. The STTP specification is here.
This example generates a separate output document for each section. An example input instance is here. The STTP specification is here.
This example show a solution to a problem that arises in converting the ISO 12083 Book DTD to the ICADD DTD. An example input document is here. An example output document is here. The STTP specification is here. Background information on this problem is available here
This example is a slightly more complicated version of an example presented at SGML 93 by AIS/BL. The problem is to flatten the structure of a document. An example input document is here. An example output document is here. The STTP specification is here. The STTP specification for the reverse process is here.
This example constructs a number of geometrically marked up output tables from content-based input (a database of train fares). An example input document is here. An example output document is here. The STTP specification is here.
James Clark