首页 | 本学科首页   官方微博 | 高级检索  
相似文献
 共查询到17条相似文献,搜索用时 93 毫秒
1.
XSLT提供了一种将XML文档转换为HTML的强有力的工具.然而,当这种转换需要涉及更多逻辑的时候,就会显现出它的不足之处.文中讲述了如何使用Java扩展XSLT,从而更好地发挥两种语言的特色.最后给出一实例来具体展示如何将XML节点传送到Java类并返回到样式表以进一步处理.  相似文献   

2.
一个XSLT处理器的设计   总被引:1,自引:0,他引:1  
XSLT样式表语言是用来定义如何在XML文档之间进行格式转换的语言,首先介绍了XSLT,接着是一个基于Java的用于XML信息处理(特别是XSLT处理)的应用程序编程接口JAXP,最后阐述作者实现的一个XSLT处理器的设计,并给出了与其他XSLT处理器的比较。  相似文献   

3.
饶文碧  张丽  易健康  甘泉 《计算机工程与设计》2006,27(16):3007-3009,3014
针对普适计算环境下由于设备形态的多样性而提出的用户界面转化问题,提出了基于Java和XML的一种解决方案.首先提出了整个系统的概念模型,然后对主要部分给出了具体的分析和实现,包括:用XML描述图形界面、编写XSLT(可扩展样式表语言转换)样式表、读取XML和XSLT样式表、编写Java servlet.最后,对将来需要解决的问题进行了探讨和展望.  相似文献   

4.
Struts分析及其应用研究   总被引:13,自引:0,他引:13       下载免费PDF全文
介绍了Java Web编程模式以及XML和XSLT的优点,分析了Struts的架构及其优缺点。介绍了如何使用Servlet来处理XML的XSLT转换,阐述了如何将Struts +XML +XSLT结合起来取代JSP,以及这种模式的优点。  相似文献   

5.
黄国超  王衍波  黄开国 《微机发展》2011,(10):246-249,F0003
XML文档具有存储与显示分离的特性,利用XSLT可以将同一篇XML文档显示出不同的内容,这样就可以实现隐藏信息的目的。通过研究XML的样式表转换,提出了基于XSLT的内容抽取、内容比较、样式表合并的三种XML文档信息隐藏方法,每种隐藏方法利用了样式表元素的不同性质,并通过实例对进行具体介绍和分析。上述三种隐藏方法主要针对文档的显示特性,不对文档存储的格式和内容做任何改动。实验结果表明,利用样式表转换的方法在XML文档中隐藏信息具有实现简单、安全性高的特点。  相似文献   

6.
基于XML的Web考试系统的数据传输设计   总被引:2,自引:0,他引:2  
刘畅 《微型电脑应用》2004,20(10):32-34
分析了Web考试系统的特点,指出生成动态Web页面的复杂性。给出用Java Servlet和XML技术实现Web考试系统的数据传输方案,即利用元数据将试卷库的数据自动映射成XML文档,在JSP中用XSLT处理器按试卷样式表将XML文档自动转换成HTML页面,Java Servlet根据组卷参数自动获取考生答题页面上的表单域的值。  相似文献   

7.
基于DTD的XML与SQL查询转换算法   总被引:1,自引:0,他引:1       下载免费PDF全文
卜莉  李军怀  张璟 《计算机工程》2007,33(16):41-43
针对如何将XML查询转换成SQL查询提出了一个XSLT查询到SQL查询的转换框架和算法,研究了文档类型定义(DTD)和关系模式的相互映射方法及基于XML DTD且不使用任何中间语言将XSLT查询转换为SQL查询的具体过程和算法:从XSLT代码中抽取指令集合,合并、简化并分割其中的XPath,最后抽取出SQL语句的各个组成部分。该算法具有较高的通用性。  相似文献   

8.
周强  李宇  许雁冬 《微机发展》2010,(1):43-45,49
跨库检索系统的SRU接口返回的检索结果是XML文件流。IE浏览器可以解析该文件流,根据XSLT文件,自动转换为XHTML文件流,显示检索结果。但是,Firefox,Google Chrome浏览器却无法解析这个XML文件流,它们显示的是非标准格式的文本文字,用户无法查看检索结果。为了使这些浏览器能正常显示检索结果,采用dom4j的应用开发接口,应用XSLT文件,把XML文件流转换为XHTML文件流,从而使检索结果能在Firefox,Google Chrome浏览器上正常显示。  相似文献   

9.
跨库检索系统的SRU接口返回的检索结果是XML文件流。IE浏览器可以解析该文件流,根据XSLT文件,自动转换为XHTML文件流,显示检索结果。但是,Firefox,Google Chrome浏览器却无法解析这个XML文件流,它们显示的是非标准格式的文本文字,用户无法查看检索结果。为了使这些浏览器能正常显示检索结果,采用dom4j的应用开发接口,应用XSLT文件,把XML文件流转换为XHTML文件流,从而使检索结果能在Firefox,Google Chrome浏览器上正常显示。  相似文献   

10.
XML是一种显示数据的标记语言,它能使数据通过网络无障碍地进行传输,并显示在用户的浏览器上.XML实现了数据与表示的分离,需要通过样式表来显示XML数据.介绍XSLT的特性及功能,通过示例,介绍通过XSLT如何将一个XML文档转换为HTML文档的方法.并说明该方法的用途.  相似文献   

11.
The capabilities of XSLT processing are widely used to transform XML documents into target XML documents. These target XML documents conform to output schemas of the used XSLT stylesheet. Output schemas of XSLT stylesheets can be used for a static analysis of the used XSLT stylesheet, to automatically detect the XSLT stylesheet of target XML documents or to reason on the output schema without access to the target XML documents. In this paper, we develop an approach to automatically determining the output schema of an XSLT stylesheet. We also describe several application scenarios of output schemas. The experimental evaluation shows that our prototype can determine the output schemas of nearly all typical XSLT stylesheets and the improvements in preciseness in several application scenarios when using output schemas in comparison to when not using output schemas.  相似文献   

12.
We have to deal with different data formats whenever data formats evolve or data must be integrated from heterogeneous systems. These data when implemented in XML for data exchange cannot be shared freely among applications without data transformation. A common approach to solve this problem is to convert the entire XML data from their source format to the applications’ target formats using the transformations rules specified in XSLT stylesheets. However, in many cases, not all XML data are required to be transformed except for a smaller part described by a user’s query (application). In this paper, we present an approach that optimizes the execution time of an XSLT stylesheet for answering a given XPath query by modifying the XSLT stylesheet in such a way that it would (a) capture only the parts in the XML data that are relevant to the query and (b) process only those XSLT instructions that are relevant to the query. We prove the correctness of our optimization approach, analyze its complexity and present experimental results. The experimental results show that our approach performs the best in terms of execution time, especially when many cost-intensive XSLT instructions can be excluded in the XSLT stylesheet.  相似文献   

13.
XML is a markup language used to describe data or documents. The main goal of XML is to facilitate the sharing of data across diverse information systems, especially via the Internet. XML Stylesheet Transformations (XSLT) is a standard approach to describing how to transform an XML document into another data format. The ever‐increasing number of Web technologies being used in our everyday lives commonly employs XSLT to support data exchange among heterogeneous environments, and the associated increasing burdens on XSLT processors have increased the demand for high‐performance XSLT processors. In this paper, we present an XSLT compiler, named Zebu, which can transform an XSLT stylesheet into the corresponding C program. The compiled program can be used to transform documents without the processing of XSLT stylesheets. The results of experimental testing using standard benchmarks show that the proposed XSLT compiler performs well in processing XML transformations. Copyright © 2011 John Wiley & Sons, Ltd.  相似文献   

14.
XML元素级加密是指对XML文档中的某一特定部分进行加密。在讨论基于XSLT的元素级加密技术的基础之上,提出了使用扩展函数来实现XML元素级加密 /解密的功能,并通过具体的例子来说明其可行性。相对于其他元素级加密技术,该方法最大的优点就是避免了部署与维护的麻烦,它把所有的安全操作都限制在了样式表内,而不涉及XSLT处理器,具有高可用性。  相似文献   

15.
While most users currently access Web applications from Web browser interfaces, pervasive computing is emerging and offering new ways of accessing Internet applications from any device at any location, by utilizing various modes of interfaces to interact with their end users. The PC and its back-end servers remain important in a pervasive system, and the technology could involve new ways of interfacing with a PC and/or various types of gateways to back-end servers. In this research, cellular phone was used as the pervasive device for accessing an Internet application prototype, a multimodal Web system (MWS), through voice user interface technology.This paper describes how MWS was developed to provide a secure interactive voice channel using an Apache Web server, a voice server, and Java technology. Securing multimodal applications proves more challenging than securing traditional Internet applications. Various standards have been developed within a context of Java 2 Micro Edition (J2ME) platform to secure multimodal and wireless applications. In addition to covering these standards and their applicability to the MWS system implementation, this paper also shows that multimodal user-interface page can be generated by using XSLT stylesheet which transforms XML documents into various formats including XHTML, WML, and VoiceXML.  相似文献   

16.
XML graphs have shown to be a simple and effective formalism for representing sets of XML documents in program analysis. It has evolved through a six year period with variants tailored for a range of applications. We present a unified definition, outline the key properties including validation of XML graphs against different XML schema languages, and provide a software package that enables others to make use of these ideas. We also survey the use of XML graphs for program analysis with four very different languages: Xact (XML in Java), Java Servlets (Web application programming), XSugar (transformations between XML and non-XML data), and XSLT (stylesheets for transforming XML documents).  相似文献   

17.
用XSLT技术实现基于XML多媒体课件系统   总被引:1,自引:0,他引:1  
主要介绍利用XSLT提供的强大的转换机制和功能实现异构的XML文档变换,这里提出利用XSLT技术实现基于XML课件文档的转换应用,并采用XML XSLT Servlets的方法设计在线远程多媒体课件系统,达到开放性的课件文档的描述和管理方式使之统一格式并具有可扩展效果。  相似文献   

设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号