in reply to XSLT to TT

While I think it is technically possible, using the style sheet to create a TT file really isn't practical. You would be better off creating a TT and writing a script that would read the XML, applying it to the TT file. Using the XSLT sheet to create a TT file would be difficult to implement and prone to maintenance nightmares IMHO ;-)

Is there a particular reason why you want to use XSLT to create a TT file?

Jason L. Froebe

Team Sybase member

No one has seen what you have seen, and until that happens, we're all going to think that you're nuts. - Jack O'Neil, Stargate SG-1

Replies are listed 'Best First'.
Re^2: XSLT to TT
by artist (Parson) on Dec 07, 2006 at 20:39 UTC
    I didn't say that I want to use XSLT to create a TT file. I have existing XSL file and I like to convert it to a TT file. I like to work with TT rather than XSL file in the long term. So I am looking for some sort of help to make TT file from XSL file.
    --Artist

      Sorry. I misread your original post. Since XSLT can be rather complex, my recommendation would be to do it by hand.

      Don't rely on a script that performs XSLT -> TT as they are radically different. Creating a generic script that would take an arbitrary XSLT style sheet and produce a TT template file that produces the same arbitrary output, would be very involved. Creating a script for specific XSLT style sheets that produce very similar output may be worth it if you have dozens or hundreds of style sheets to convert to TT.

      Jason L. Froebe

      Team Sybase member

      No one has seen what you have seen, and until that happens, we're all going to think that you're nuts. - Jack O'Neil, Stargate SG-1