一种将XML文档转换为HTML格式文档的算法  被引量:1

An Algorithm to Transform XML Document into HTML Format Document

在线阅读下载全文

作  者:彭婉仪 吴家菊[1] 纪斌[1] PENG Wan-yi;WU Jia-ju;JI Bin(Institute of Computer Application,China Academy of Engineering Physics,Mianyang 621900,China)

机构地区:[1]中国工程物理研究院计算机应用研究所,四川绵阳621900

出  处:《电脑与信息技术》2018年第4期24-27,共4页Computer and Information Technology

摘  要:文章研究了XML文档转换为富文本格式的方法,提出了一种基于XSL将XML文档转换HTML格式文档的算法。首先,新建一个与XML文档同名的HTML格式文档;其次定义转换算法,实现XML文档到HTML格式文档的转换;最后,调用系统默认浏览器以查看转换得到的HTML文档。该算法可以基于XSL将XML文档转换为HTML格式文档,以查看和验证XML文档的富文本显示格式是否符合阅读要求。This paper studies methods to transform XML documents into rich-text format,and proposes a XSL based algorithm to transform XML documents into HTML format documents based.Firstly,a new HTML format document with the same name as the XML document is created.Secondly,transformation algorithm is defined,which is used to transform the XML document to the HTML format document.Finally,system default browser is called to view the HTML document obtained from the transformation.Based on XSL,the algorithm can transform XML documents into HTML format document,which can be used to view and verify whether the rich-text display format of the XML document meets the reading requirements.

关 键 词:算法 转换 XSL XML HTML 富文本 

分 类 号:TP391[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象