Following the D74 presentation from LivelinkUp2000, I've write the following simple XSL test:
function void XLST_test() XSLProcessor xsl = XSLProcessor.New() xsl.SetInput( 'D:\opentext900\temp\node.xml' ) xsl.SetOutput( 'D:\opentext900\temp\test.html', XSLProcessor.HTML ) xsl.SetStylesheet( 'D:\opentext900\temp\website.xsl' ) Assoc retval = xsl.Transform() if ( retval.OK ) echo( 'Successful transformation' ) else echo( 'retval.Error' ) endend
Aftet running it over the samples files (see ZIP attachement), the function output "Successful transformation" and a file "test.html" is created(again, see ZIP attachment). But it is NOT an HTML file!It seems an XSL file with an HTML header. See the following code fragment:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">...
What's wrong? The XML to HTML transformation has never occurred. This kind of behaviour is also present when you try to transform a node using XMLExport with the "on server" transformation enabled (&transform). See D74 ppt for more details.
Enrico Papalini