Pb_xml

所属分类:数据库编程
开发工具:PowerBuilder
文件大小:75KB
下载次数:61
上传日期:2009-08-03 08:23:33
上 传 者新意
说明:  PB操作xml 你必须安装: 微软的Internet Explorer 5.0 (及更高版本) Microsoft XML分析器3.0 ( msxml3sp1.exe ) Sybase的PowerBuilder的8.0 安装。 1 。档案解压缩到如。 ç : \实例\ pb8 \的XML 2 。打开工作pb_xml.pbw 3 。打开窗户w_pbxml_sheet1和commandbuttons cb_5和cb_6改变文件名变量ls_filename , ls_xslfilename ,以反映不同的目录上面使用 以下是运行时会发生什么变化的范例: 当您打开工作表, XML解析器: XML解析器 加载文件:在这里,您可以只加载一个XML文件,并看到它解析在TreeView 。 pb_list_style :档案emplyees.xml将解析和转化利用pb_list_style.xsl ,由此产生的HTML中显示规则 pb_cat_style :档案emplyees.xml将解析和转化利用pb_catalog_style.xsl ,由此产生的HTML中显示规则 浏览器 打开HTML .. :在这里,您可以加载一个HTML文件,并看到它显示在Web浏览器控件。 雇员示例 巴顿:这是怎么回事 另存为XML .. :在这里,您可以保存emplyoyee数据仓库作为一个XML文件
(o 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 ha)

文件列表:
pb_xml.pbw (155, 2001-08-30)
sybase.gif (2222, 2001-08-28)
1751.jpg (2243, 2001-08-28)
Employees.xml (10798, 2001-09-04)
pb_catalog_style.xsl (1262, 2001-09-04)
pb_list_style.xsl (1169, 2001-09-04)
pbxml.pbl (302080, 2001-09-04)
pbxml.pbt (101, 2001-08-27)
result.html (6313, 2001-09-04)
result_cat.html (29352, 2001-09-04)
1013.jpg (2272, 2001-08-28)

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

近期下载者

相关文件


收藏者