XML.com

XPE : XML PROCESSING ENGINE

August 18, 2022

Submitted by hamdi karray.

XPE : XML Processing Engine. This project makes possible to describe, in a simplified xml format, a sequence of XML processing steps.

XPE is based on Saxon. By default, its uses the HE edition but it is possible to use EE or PE edition juste by importing the necessary packages via the projet POM.

XPE is an XML scripting. By combining simple algorithms, XPATH and XSLT/XQUERY, this tool makes it possible to create structured data processing chains in a simple and intuitive way.

For example :

<?xml version="1.0" encoding="UTF-8"?>

<processing 

  xmlns="http://com.sitc.xml.processing.engine.org/config" 

  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 

  xmlns:file="http://expath.org/ns/file">

  

  <!-- saxon config file -->

  <config uri="'../conf/saxon/processing.xml'"/>

  

  <!-- launch parameters -->

  <param name="conf-file-path" select="()"/>

  <param name="threads" select="4"/>

  

  <message source="'source'" select="file:path-to-uri($conf-file-path)"/>

  

  <pipe 

    source="'file:/input'" 

    destination="'file:/output'"

    parallel="true()"

    threads="$threads"

    debug="true"

    debug-dir-uri="file:/debug">

    <xslt uri="'../A.xslt'"/>

    <xslt uri="'../B.xslt'"/>

    <xslt uri="'../C.xslt'"/>

  </pipe>

  

  

</processing>


 


News items may be commercial in nature and are published as received.