XProc is an actively used programming language created in 1990. XProc is a W3C Recommendation to define an XML transformation language to define XML Pipelines. Below is an example abbreviated XProc file: This is a pipeline that consists of two atomic steps, XInclude and Validate. The pipeline itself has three inputs, “source” (a source document), “schemas” (a list of W3C XML Schemas) and “parameters” (for passing parameters). Read more on Wikipedia...

30Years Old 20Users ?Jobs
  • XProc ranks in the top 25% of languages
  • the XProc wikipedia page
  • XProc first appeared in 1990
  • file extensions for XProc include xpl and xproc
  • See also: xml, java, xquery, xpath
  • Have a question about XProc not answered here? Email me and let me know how I can help.

Example code from Linguist:

<?xml version="1.0" encoding="UTF-8"?>
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc"
    xmlns:c="http://www.w3.org/ns/xproc-step" version="1.0">
    <p:input port="source">
        <p:inline>
            <doc>Hello world!</doc>
        </p:inline>
    </p:input>
    <p:output port="result"/>
    <p:identity/>
</p:declare-step>

Example code from Wikipedia:

<p:pipeline name="pipeline" xmlns:p="http://www.w3.org/ns/xproc" 
  version="1.0">
  <p:input port="schemas" sequence="true"/>

  <p:xinclude name="included">
    <p:input port="source">
      <p:pipe step="pipeline" port="source"/>
    </p:input>
  </p:xinclude>

  <p:validate-with-xml-schema name="validated">
    <p:input port="source">
      <p:pipe step="included" port="result"/>
    </p:input>
    <p:input port="schema">
      <p:pipe step="pipeline" port="schemas"/>
    </p:input>
  </p:validate-with-xml-schema>
</p:pipeline>

Trending Repos

repo stars description

Last updated August 9th, 2020

Edit XProc on GitHub