xsl-list
[Top] [All Lists]

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

2018-10-23 11:18:46
On Tue, 23 Oct 2018 at 16:33, Rick Quatro rick(_at_)rickquatro(_dot_)com
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> 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
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>