Re: [xsl] Is XSLT the right tool for XML to SGML conversions

Subject: Re: [xsl] Is XSLT the right tool for XML to SGML conversions
From: "David Carlisle d.p.carlisle@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 23 Oct 2018 16:18:41 -0000
On Tue, 23 Oct 2018 at 16:33, Rick Quatro rick@xxxxxxxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> Hi All,
>
>
>
> I am at the preliminary stage of looking at a project. The input will be
authored in XML, but the output will be SGML. Is XSLT (version 2.0) a
reasonable language for doing this? Any pointers to examples, best practices,
etc., would be appreciated. Thank you very much.
>
>
>
> Rick

Not really answerable in that generality, xslt doesn't have a built in
sgml serialisation so you would presumably use the XML (or HTML) ones:
both of those _are_ SGML, so then it just depends how close your
target SGML format is to either of those.

Can your desired SGML be written to be well formed XML?  if so that's
the easiest case, XSLT can output it, otherwise you may need to output
an XML approximation to the desired format and then fix it up with
perl or some such.

David


David

Current Thread