首页 | 本学科首页   官方微博 | 高级检索  
     


An approach to high-level language bindings to XML
Affiliation:1. Department of Computer and Information Sciences, University of Strathclyde, Livingstone Tower, 26 Richmond Street, Strathclyde, Glasgow, Scotland G11 XH, UK;2. Dipartimento di Informatica, Università di Pisa, Pisa, Italy;2. Carleton University, Department of Aerospace and Mechanical Engineering, Ottawa, Ontario, Canada;1. Business School, Sichuan University, Chengdu 610064, China;2. Collaborative Innovation Center of Social Safety Science and Technology, China;3. School of Economics, Sichuan University, Chengdu 610064, China
Abstract:Values of existing typed programming languages are increasingly generated and manipulated outside the language jurisdiction. Instead, they often occur as fragments of XML documents, where they are uniformly interpreted as labelled trees in spite of their domain-specific semantics. In particular, the values are divorced from the high-level type with which they are conveniently, safely, and efficiently manipulated within the language.We propose language-specific mechanisms which extract language values from arbitrary XML documents and inject them in the language. In particular, we provide a general framework for the formal interpretation of extraction mechanisms and then instantiate it to the definition of a mechanism for a sample language core L. We prove that such mechanism can be built by giving a sound and complete algorithm that implements it.The values, types, and type semantics of L are sufficiently general to show that extraction mechanisms can be defined for many existing typed languages, including object-oriented languages. In fact, extraction mechanisms for a large class of existing languages can be directly derived from L's. As a proof of this, we introduce the SNAQue prototype system, which transforms XML fragments into CORBA objects and exposes them across the ORB framework to any CORBA-compliant language.
Keywords:
本文献已被 ScienceDirect 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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