A highly versatile markup, XML has standards for storage, validation, transformation, include, labeling, querying, and linking. However, there have been no standard specifications for combining these actions for managing XML-rich processes, until now. XProc specifies the plumbing to sequence various operations together.
XProc can control a variety of XML processes that might otherwise need to be implemented with a number of other standards such as XSLT, HTML, XQuery, XSLT-FO, or XForms. The W3C gives an example of operations that can be sequenced using only XProc:
- Given a news ticker feed…
- Whenever a company is mentioned, use a Web service to contact a stock exchange
- Then insert current share prices into the feed
- Next, insert background information about the company that has been extracted from a database. In addition, this enhanced feed could be presented in several ways to multiple users including…
- For print or…
- With an interactive form so that people can purchase shares online.
"Processing XML as XML is a hugely powerful design pattern, and XProc makes this easy and attractive," said Henry Thompson, one of the co-editors of the specification. Developers may use the mature tooling for XML to generate, transform, and validate XProc descriptions. Download the XProc test suite to get started with the new spec. The test suite covers both required and optional steps of the language. It also handles static and dynamic errors.