Skip to content

metafacture/metafacture-xdm-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

metafacture-xdm-plugin

A plugin for metafacture that extends it’s XML features.

The XDM (XQuery and XPath Data Model) module enables the transformation of XML documents through XSLT.

The current backend is provided by Saxon (Home Edition).

Build

metafacture xdm plugin
gradlew clean test fatJar

Produces:

  • metafacture-xdm-VERSION-plugin.jar in build/libs

Place the JAR inside the plugins directory of your metafacture-core distribution.

Command Reference

Command In Out

encode-transformation

XdmReceiver

String

sax-to-xdm

XmlReceiver

XdmReceiver

transform

XdmReceiver

XdmReceiver

xdm-to-sax

XdmReceiver

XmlReceiver

xdm-to-xml

XdmReceiver

String

encode-transformation

Description

Serializes the transformation of a XDM Node.

Syntax

encode-transformation(stylesheet)

Parameters

  • stylesheet: A XSL file.

Examples

Flux:

... | encode-transformation("stylesheet.xsl") | print;

sax-to-xdm

Description

Builds a XDM Node from XML events.

Syntax

sax-to-xdm

Example

Flux:

> | decode-xml | sax-to-xdm | ...

transform

Description

Transforms a XDM Node into a new XDM Node.

Syntax

transform(stylesheet)

Parameters

  • stylesheet: A XSL file.

Examples

Flux:

... | tranform("transformation.xsl") | encode-transformation("csv.xsl") | print;

xdm-to-xml

Description

Serializes a XDM Node into it’s XML representation.

Syntax

xdm-to-xml

Examples

Flux:

... | xdm-to-xml | print;

xdm-to-sax

Description

Decomposes a XDM Node into XML events.

Syntax

xdm-to-sax

Example

Flux:

> | decode-xml | sax-to-xdm | xdm-to-sax | ...

About

XQuery and XPath Data Model for XML in Metafacture

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published