Subject: Re: [xsl] Is XSLT the right tool for XML to SGML conversions From: "Graydon graydon@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Tue, 23 Oct 2018 16:25:18 -0000 |
On Tue, Oct 23, 2018 at 04:18:49PM -0000, David Carlisle d.p.carlisle@xxxxxxxxx scripsit: > On Tue, 23 Oct 2018 at 16:33, Rick Quatro rick@xxxxxxxxxxxxxx > <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Is XSLT the right tool fo, David Carlisle d.p.c | Thread | Re: [xsl] Is XSLT the right tool fo, Michael Kay mike@xxx |
Re: [xsl] Is XSLT the right tool fo, David Carlisle d.p.c | Date | Re: [xsl] Is XSLT the right tool fo, Michael Kay mike@xxx |
Month |