To run the example:
You need to have installed:
Microsoft Internet Explorer 5.0 (and later)
Microsoft XML Parser 3.0 (msxml3sp1.exe)
Sybase PowerBuilder 8.0
installed.
1. Extract the files to eg. c:\examples\pb8\xml
2. Open the workspace pb_xml.pbw
3. Open the window w_pbxml_sheet1 and in the commandbuttons
cb_5 and cb_6 change the filename variables ls_filename, ls_xslfilename to reflect the different directory used above
Here is what happens when running the sample:
When you open the sheet, XML Parser:
XML Parser
Button: What's happening
Load File: Here you can just load a XML file and see it parsed in the Treeview.
pb_list_style: The file emplyees.xml will be parsed and transformed using pb_list_style.xsl , the resulting html is displayed in the mle
pb_cat_style: The file emplyees.xml will be parsed and transformed using pb_catalog_style.xsl , the resulting html is displayed in the mle
Browser
Button: What's happening
Open HTML..: Here you can load a html file and see it displayed in the web browser ocx.
Employee DW
Button: What's happening
Save as XML..: Here you can save the emplyoyee DW as a XML file
局外狗
- 粉丝: 78
- 资源: 1万+