xsl-list
[Top] [All Lists]

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

2018-10-23 11:25:23
On Tue, Oct 23, 2018 at 04:18:49PM -0000, David Carlisle 
d(_dot_)p(_dot_)carlisle(_at_)gmail(_dot_)com scripsit:
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:
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.
[snip]
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.

Or you can build a transform that produces a text file as its final
output if the SGML wants to be something other than the XML values of
well-formed.

This is fiddly and annoying and may involve the EXPATH libraries, but it
is possible.

-- Graydon
--~----------------------------------------------------------------
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>