XML as a scripting language
John R. Nestor
Find


Abstract
No abstract was provided for this paper.

Contents
  1. XML as a scripting language

XML as a scripting language
Most XML applications have been developed using one of the widely-used web development languages such as Java, Perl, or Visual Basic. Since these languages all predate XML, they had to be augmented with extensions for processing XML. The most common extensions, XML parsers, are widely available.
An alternative is to use XML itself as the scripting language. I focus here on XFA Script (http://www.xmlforall.com), a language I developed, but most of my remarks apply equally well to other XML-based scripting systems such as XML Script (http://www.xmlscript.org).
Unlike languages where XML support was an afterthought, XFA Script was designed from the start around XML, making it ideally suited for processing XML data. There are however even more important advantages of XML-based scripting.
XML scripting is not without some problems. The XML syntax does not lend itself well to scripting. XFA Script handles this with extended XML syntax that adds expression forms to XML attribute values. A one-to-one mapping is defined between this form and a less readable strict XML form. Another problem is what should be the exact set of tags used for XML scripting? Although I believe the XFA Script tags are well chosen, I make no claims to their unique utility. To accommodate diversity, XFA Script makes it easy to define interpretation rules for other tag sets.
XFA Script has been used for over three years to produce a wide range of XML applications. Experience has strongly confirmed all the advantages of XML-based scripting discussed here.
Previous Previous Table of Contents