用Prolog实现XML文档的转换
Transformation of XML Documents with Prolog
摘要:
用传统的XML语言(如XSL-T)转换XML文档是不利的,因为对目标语言的抽象太松散,而且很难识别面向规则的转换。Prolog作为一种声明式范式的程序设计语言,特别适合于实现对形式语言的分析。Prolog似乎也适合术语操作、复杂模式转换和文本检索。在这份报告中,提出了一个适当的模型,XML文档,Prolog LTL的基本转换语言的定义和表达能力相比,XSL-T证明,整个使用的实现是多范式。
英文摘要:
Transforming XML documents with conventional XML languages, like XSL-T, is disadvantageous because there is too lax abstraction on the target language and it is rather difficult to recognize rule-oriented transformations. Prolog as a programming language of declarative paradigm is especially good for implementation of analysis of formal languages. Prolog seems also to be good for term manipulation, complex schema-transformation and text retrieval. In this report an appropriate model for XML documents is proposed, the basic transformation language for Prolog LTL is defined and the expressiveness power compared with XSL-T is demonstrated, the implementations used throughout are multi paradigmatic.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。