When you preview an XML document it is treated as text and rendered thus which is perfectly reasonable.
What I would like to do is to apply an xslt transform to the XML document and then display that transformed output in the previewer.
Having read around the subject that all seems relatively straightforward by using a multi stage custom transformation which could execute command line options to apply the xslt, and convert the resulting HTML (or XSL-FO) to PDF and then take that output and convert to SWF for display.
My question surrounds the need to vary the xslt dependent upon the node content-type or preferably an aspect of the node which contains the xslt to use.
All the examples of custom transformations I have seen only use ${source} and ${target} plus other variables defined in .properties files. I can find no documentation or examples that show what other information about the node being transformed may be available via ${variable-name} within the ?????-transformation-context.xml document of a custom transformation.
Can anyone point me in the right direction on this?
Thanks in advance for all you help.
Bob Johnson