基于自动生成技术的杉达学院wap网站的设计与实现

上传人:E**** 文档编号:114482975 上传时间:2019-11-11 格式:PDF 页数:72 大小:6.74MB
返回 下载 相关 举报
基于自动生成技术的杉达学院wap网站的设计与实现_第1页
第1页 / 共72页
基于自动生成技术的杉达学院wap网站的设计与实现_第2页
第2页 / 共72页
基于自动生成技术的杉达学院wap网站的设计与实现_第3页
第3页 / 共72页
基于自动生成技术的杉达学院wap网站的设计与实现_第4页
第4页 / 共72页
基于自动生成技术的杉达学院wap网站的设计与实现_第5页
第5页 / 共72页
点击查看更多>>
资源描述

《基于自动生成技术的杉达学院wap网站的设计与实现》由会员分享,可在线阅读,更多相关《基于自动生成技术的杉达学院wap网站的设计与实现(72页珍藏版)》请在金锄头文库上搜索。

1、上海交通大学 硕士学位论文 基于自动生成技术的杉达学院WAP网站的设计与实现 姓名:张仁良 申请学位级别:硕士 专业:软件工程 指导教师:唐新怀;徐子闻 20090601 基于自动生成技术的杉达学院WAP网站的设计与实现 1 基于自动生成技术的杉达学院基于自动生成技术的杉达学院 WAP 网站的设计与实现网站的设计与实现 摘摘 要要 WAP(无线通信协议)是一个全球性的开放的无线应用协议,它的提出和发展正是 基于在移动中接入 Internet 的需求。现有的移动设备能通过 GPRS(通用分组无线业务) 服务连接到 Internet,并使用 WAP 浏览器访问 WAP 网站。开发 WAP 网站页面

2、的描述 语言是 WML(无线标记语言)或 xHTML MP(移动扩展 HTML 语言),后者是符合 WAP 2.0 标准并接近于 HTML 的语言。国内外现已经有不少网站支持 WAP 访问,不少 学者已对 HTML 向 WML 或符合 WAP 2.0 标准的 xHTML 的转换做了一些研究。 随着移动通信技术的迅速发展,使用移动设备上网将成为一种趋势。本研究内容主 要围绕着如何在现有的 HTML 网站基础上,扩展出它的 WAP 版网站,使浏览者可以在 移动设备上通过 WAP 浏览器访问原有网站上的信息内容。 文中归纳了几种常见的 WML 或 WAP 2.0 的转码技术: 依照原有的 HTML

3、网站重新建设 WAP 网站; 利用转码技术即 时生成原有 HTML 页面的 WAP 页面;使用第三方服务做即时转码。 本文对现有的一些解决方案做了分析, 在研究了 WAP 页面的组成后, 提出了 WAP 网站自动生成的流程: (1)读取原网站中 HTML 格式的信息内容; (2)将其转换成 XML; (3) 对XML的所有结点以及结点中的属性进行遍历, 删除 WAP 不支持的xHTML 标签及属性; (4)检测结点中是否有图片文件,自动生成缩略图并替换相应的图片地址; (5)最终将生成完成的 WAP 页面静态化。 按照杉达学院数字化校园的建设目标,了解了学校新闻公告门户网站 WAP 版的建 设

4、需求,并对现有的后台内容管理系统做了分析,以及在此基础上设计并扩展出了内容 管理系统的 Web 服务,将全校的新闻公告内容数据访问接口统一。随后,按照所提出 的 WAP 网站自动生成的流程,首先制作了 WAP 版网站的页面模板,获取内容管理系 统中的 HTML 内容数据并将其转换成 XML,对转换结果进行解析并对内容中的图片生 基于自动生成技术的杉达学院WAP网站的设计与实现 2 成缩略图以及替换图片地址,生成的内容与模板结合后为 WAP 页面静态化。 对自动生成的杉达学院 WAP 版网站,在多种平台和多种 WAP 浏览器中进行兼容 性测试,测试了多个页面,并给出了测试结果。 关键词:关键词:

5、 WAP,xHTML,自动生成,XML 基于自动生成技术的杉达学院WAP网站的设计与实现 3 The Design and Implementation of Sandau WAP ased on Autogeneration Technology ABSTRACT WAP (Wireless Application Protocol) is a global and open wireless application protocol. It is brought up and developed under the need of accessing the internet on mob

6、ile. Nowadays the mobile equipment can access the internet via GPRS (General Packet Radio Service) and can browse the WAP site via WAP browser. The script for developing WAP site page is WML (Wireless Markup Language) or xHTML MP (Extensible HyperText Markup Language Mobile Profile), and the latter

7、is conformed to WAP 2.0 standard and closer to HTML script. Lots of web sites, home and abroad, are now available via WAP. Scholars have done some research on how to transfer HTML into WML or xHTML according to WAP 2.0 standard. With the rapid development of mobile communication technology, going in

8、ternet by the mobile equipment will be a trend. This research is mainly focus on how to extend the current website based on HTML and create its copy site based on WAP, which makes it possible for the user to achieve the same content from the WAP site by the WAP browser on his mobile equipment. This

9、paper concludes some general WML or WAP 2.0 transcoding technologies: Build one new WAP site according to the current HTML site; Transcoding the current HTML into the WAP form immediately when the paged is visited; Use transcoding service from the third party. This research has done the analysis to

10、the current solutions and brought up the autogeneration process of WAP site after the study of the composition of WAP page. The autogeneration process is: (1) Read the content information in form of HTML from the original site, (2) Transfer the HTML content information into XML, (3) ergod every one

11、of the attributes of all XML nodes, delete the xHTML tags and attributes not supported by WAP, (4) check all nodes to find out whether there exists pictures or not, autogenerate the thumbnails and exchange the picture addresses, 基于自动生成技术的杉达学院WAP网站的设计与实现 4 (5) autogenerate the result WAP page and mak

12、e it a static WAP page. According to the construction goal of the digital Sanda University, after the requirement of University News Portal WAP site is understood and the current content management system on the back stage is analyzed, the extensive web service of the content management system is de

13、signed so as to integrate all the content data access interfaces of all the news portals in the university. In terms of the autogeneration process of WAP site, WAP page templates are designed first, the HTML contents are derived and transferred into XML, the results are analyzed, the thumbnails are

14、created and pictures addresses are replaced, finally the combination of WAP template and WAP content are made into static WAP pages. The compatibility test of different pages of the autogenerated WAP site of Sanda University is on various WAP browsers under multi-platform and the test results are gi

15、ven. Keywords WAP,xHTML,Autogenerate,XML 基于自动生成技术的杉达学院WAP网站的设计与实现 1 1 绪绪 论论 移动设备如今已经不是什么新鲜玩意儿了,功能越来越强,速度越来越快,体积越来越小,价 格越来越便宜的移动设备不断地在更新。而且,它们已经不局限于 SMS(Short Message Service,短 信)、MMS(Multimedia Messaging Service,多媒体短信,或称为彩信),更可以打开 GRPS(General Packet Radio Service,通用分组无线业务)使用手机上网。过去的几年中,这些设备上的带宽显著提

16、高,而且会随着科学技术的发展进一步地提高。越来越多的人会使用手机上网。 然而普通的移动设备的屏幕尺寸远小于普通电脑显示屏的尺寸,移动设备上所安装的软件也与 普通电脑上的大相径庭。这种硬件上和软件上的双重差异,导致了在移动设备上无法正常浏览那些 能在电脑中正常打开的网站。所以,网站开发人员不得不在开发过程中,针对移动设备做许多考虑, 甚至重新进行开发。 2008 年 1 月, 中国网站的数量已达 150 万, 而适合于移动设备访问的 WAP (Wireless Application Protocol,无线通信协议)网站数量仅仅 8 万个1。随着移动通信基础设施的进一步完善,通信速度 的进一步提高。会有更多的 WAP 网站建立,它们或可以是根据需要重新建立的,或可以是在当前 的网站上做相应的处理,使其也能为移动设备访问。普通的网站若能够在移动设备上正常打开,那 么浏览者可以随时打开移动设备上浏览器同样获取网站上发布的信息。 1.1 研究背景研究背景 1) 移动设备普及率高 移动电话,通常称为手机、手提电话、手电,早期又有大哥大的俗称,是可以在较广范围内使 用的便携式电话终端

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 办公文档 > 其它办公文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号