Hello everyone and thanks in advance for any help .
We developed appeon application that generates xml for filing tax forms. Thay displays nicely using the new and latest webrowser2.
We discoverd a sytly sheet that can be used with our xml but I'm not sure how to open the or view the xml and apply the sytle sheet (xsl) using the browser or some other method. Is this possible and if so can I get any clues on how to do it.
Thank You,
Richard Carrier
Good question. Such simple functionality and no built-in class in PowerBuilder?
I used C# in SnapDevelop and included the DLL solution in the application.
public class ABCUtility
{
public static int CreateHTMLFile(string as_pathtoXMLFile, string as_pathtoXSLTFile, string as_pathtoHTMLFile)
{
//TO DO use try
int li_ret = 0;
// Load the style sheet.
XslCompiledTransform xslt = new XslCompiledTransform();
xslt.Load(as_pathtoXSLTFile);
// Execute the transform and output the results to a file.
xslt.Transform(as_pathtoXMLFile, as_pathtoHTMLFile);
return li_ret;
}
}