Converting a Stack to many formats starting from XML
ken at kencorey.com
Fri Jun 8 03:44:31 EDT 2012
On 03/06/2012 18:47, Alejandro Tejada wrote:
> There are many scripts to convert stacks to XML, but...
> How many developers have taken the path of converting
> this stack from XML to other formats?
> Searching the web, I found many free and paid converters from XML
> to almost every file format available, for example:
> Free XML to SWF
> Paid XML to PDF, XPS, POSTSCRIPT, TIFF, Silverlight, Word, PowerPoint
> So, my question could be stated in this form:
> Have you written a specific Stack to XML script to
> convert a stack to another file format?
XML is just a fancy, human-readable, way to format data.
A stack is more than just data, it encapsulates behaviours too. (Yes,
you /could/ embed behaviour as data, but you'd need to translate it back
again at a later date to be behaviour again.
For PDF, POSTSCRIPT, TIFF, and all the other static formats, you can get
most of that right this second by taking a snapshot of your interface
and embed the image in the format of your choice. (read about "export
snapshot" in the dictionary).
Converting a stack to XML loses the behaviours.
As far as translation to other environments where there's enough
language support you've got to come up with a business case.
I don't get out of bed in the morning without a business case. To make
it interesting, it must:
1) address a market that's not being addressed
2) or allow programming in 10% or less of the time it takes now
Learning to program in other environments is bound to be faster than
writing something that understands how to write code for other
environments...so I imagine you're going to have a hard sell here.
More information about the Use-livecode