PatML is a pattern/match replacement tool for XML documents. It is a rule based
specification language in which the user can specify how an XML document can be
transformed for the sake of browsing (converted to HTML) or other purposes.
When the rules of transformation are complex Java code can be embedded or called,
to handle complex tree matches, and/or transformations.
In a typical rule, the user would specify pattern that has to be matched. Optionally there
may be condition (a Java predicate object) that is evaluated. Once the match happens,
the optional condition is evaluated and, if true, the optional transformation may be done.
Alternatively, (or in addition) a set of Java inline statements can be applied.
PatML is written as a Java bean, consisting of three Java beans, a pattern match bean,
a replacement bean, and an action bean. Hence any part of PatML can be embedded in a
larger component system very easily.
- What is PatML?
PatML is a Pattern Match Replacement rule language for XML to XML (or other)
transformations specified in an XML-based template pattern match language. Where
pattern rules cannot be statically specified, Java code can be introduced.
- What platform does PatML run on?
PatML has been tested on jdk 1.1.6, NT 4.0. It should work on any standard Java platform.
- What other software packages are required?
It requires XML Parser in Java version 1.0.4 (or later).
Click here to view the
Installation Procedures
PatML Installation Procedures
Unzip the ZIP file. The ZIP file contains patml.jar, installation, summary, and FAQ files, some examples.
- UnZip the ZIP file.
- Add the patml.jar to your classpath.
- Follow the instructions in the README files.
You need IBM's XML4J for compiling the sources. The version should be 1.0.4 or
later.
File |
Size |
Comments |
|
patml.zip |
42 KB |
ZIP file containing PatML package. |
 |
|