(talking to myself again, but here's an update on the xslt transformations)
The following are now available:
Code: Select all
xsltLoadStylesheet( pXmlTreeID ) -- returns Stylesheet ID
xsltLoadStylesheetFromFile( pFilePath ) -- returns Stylesheet ID
xsltFreeStylesheet pStyleSheet -- cleans up memory after a Load function
xsltApplyStylesheet( pXmlTreeID, pStyleSheetID ) -- returns transformed document
xsltApplyStylesheetFile( pXmlTreeID, pFilePath ) -- returns transformed document
so to apply an xslt transformation in a file to an xml data set in a field, you could say
Code: Select all
put revXMLCreateTree(field "xmlData", false, true, false) into tDocID
put xsltApplyStylesheetFile( tDocID, pFilePath) into tTransformedData
or to apply an xslt transformation in a field to an xml data set in another field, you could say
Code: Select all
put revXMLCreateTree(field "xmlData", false, true, false) into tDocID
put revXMLCreateTree(field "xsltInfo", false, true, false) into tXsltID
put xsltLoadStylesheet( tXsltID ) into tStylesheetID
put xsltApplyStylesheet( tDocID, tStylesheetID) into tTransformedData
xsltFreeStylesheet tStylesheetID