You are seeing a modest SGML document (HTML, actually) from MT's
own site which has been converted by the showcase/s2x
pipeline into XML (XHTML actually). You can replace
'http://www.markup.co.uk:8888/your.sgml' in the URL you're fetching
with the full URL (http: or https:) for any conformant SGML page you
want to convert and try again. If the result is XHTML, you may want
to add &mediaType=text/html to the URL to encourage
your browser to render the result properly.
This pipeline takes advantage of the fact that although MT Pipeline is fundamentally about XML-to-XML processing, a pipeline can begin with an arbitrary preliminary conversion program, whose XML output begins the pipeline proper.
The SGML original of this document looks approximately like this:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>SGML to XML conversion
<body style="background. . .">
<div style="width: 75%">
<p>You are seeing a modest SGML document (HTML, actually) from MT's
own site which . . .
<p>The SGML original of this document looks approximately like this:
<pre><code>...</code></pre>
<p>Besides converting SGML to XML, this pipeline
has another useful feature -- it passes through
references to undefined entities, such as ©,
so they appear as entity references in the output.
</body>
</html>
Besides converting SGML to XML, this pipeline has another useful feature -- it passes through references to undefined entities, such as ©, so they appear as entity references in the output.
The pipeline which delivers this functionality is very simple, but you can see the pipeline description which was compiled to produce this pipeline for the server to run if you're interested.
The SGML to XML conversion is done with a slightly modified version
of James Clark's sx program, from the OpenJade project. If
the result is not what you want, particularly in the area of Unicode
support, you probably need to include your own SGML declaration at the
front of your SGML.