IBM alphaWorks
E-Mail Site Map
Search

alphaWorks
Internet Access Required Internet Access Required alphaWorks Press and Awards Information about alphaWorks Internet Access Required XML Tutorials and Papers
PatML                                                                                                                                   | Overview | FAQ | Requirements | Discussion |

Update: [04/29/99]
New version contains bug fixes such as "import" specification and "patml:attr" recognition.


OVERVIEW
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.


FAQ

  1. 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.

  2. 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.

  3. What other software packages are required?

    It requires XML Parser in Java version 1.0.4 (or later).

REQUIREMENTS
Click here to view the
Installation Procedures

PatML Platform Requirements
Platform The PatML runs on any Java compliant platform
Java tool JDK 1.1.6
Additional Java packages XML Parser in Java 1.0.4 (or later)


PatML Installation Procedures

Unzip the ZIP file. The ZIP file contains patml.jar, installation, summary, and FAQ files, some examples.

  1. UnZip the ZIP file.

  2. Add the patml.jar to your classpath.

  3. 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.

DOWNLOADS
File Size Comments  
patml.zip 42 KB ZIP file containing PatML package.