In this article, Philippe Marguinaud explains how XML can be used to parse a language such as FORTRAN. The first big advantage over other existing approaches is that XML can
represent both structure and hand-written content. The other benefit is that all power tools coming from the XML realm become instantly available for searching and editing the syntax tree. Eventually, the article shows how a FORTRAN syntax tree can be loaded in Firefox, using an XSL stylesheet.
XPath and the languages that use it - XSLT, XQuery, XForms, Schematron and many more - share with natural language that you can say things in many ways. XPath 3 adds new ways of saying things that can be both exciting and sometimes a little daunting. Let’s look at some new operators in XPath 3 and see how they can make things clearer and how to use them to write XPath expressions that are clearer and easier to read.