Inproceedings,

Adding Semantics to XML

, and .
Second Workshop on Attribute Grammars and their Applications, WAGA'99, page 113--132. Amsterdam, The Netherlands, INRIA rocquencourt, (March 1999)

Abstract

Starting form the analogy between a document tagged by a mark-up language (XML, SGML) and a source string generated by a BNF grammar, we argue that XML parsers should benefit from the addition of semantic attributes and functions. Currently XML only includes initialized lexical attributes. By our approach a XML parser would be extended into a syntax-directed translator. Deep transformations of a document could be specified, sent over the network, and executed within the XML system. For the specification of the semantic attributes and functions we propose a XML Document Type Definition, that is conceptually similar to the metalanguage of a compiler-compiler. By this approach the additions to the XML standard are kept to a minimum.The differences between attribute grammars and attributed XML specifications are discussed, and the system architecture of a semantic evaluator generator is presented.

Tags

Users

  • @dparigot

Comments and Reviews