These processors are core to the Pipeline utility processor that is bundled with NekoStyle. Because the Pipeline program itself is written as a processor, it can be used within other programs that are written to the NekoStyle architecture. Most of the time, though, the Pipeline processor will be run either directly or as an Ant task.
Provides basic pipeline infrastructure. This class can be run as a standalone program.
Stores a document in the pipeline cache.
| Parameters: |
|
|---|
Retrieves a document from the pipeline cache.
| Parameters: |
|
|---|
An assortment of parsers that can generate an XML data structure as output. The traditional parser would be any comformant XML parser implementation. However, any component that can generate a data structure that "looks like" XML can be considered a parser within the NekoStyle architecture.
Parses XML documents.
| Requires: | XML Parser (JAXP) |
|---|---|
| Parameters: |
|
Parses HTML documents.
| Requires: | NekoHTML 0.3.3 (or higher) |
|---|---|
| Parameters: |
|
Transformation processors are the most powerful and useful components used in any pipeline. Using a transformer, input documents can be converted to other formats. In addition, the output of a transformation can be used within a <inline> pipeline to dynamically add further processing stages to the pipeline. For example, the output of the DirectoryList processor can be transformed into additional processing stages that clean the HTML files found within a certain subdirectory.
Transforms documents using XSLT. The document output from the previous stage in the pipeline is transformed using the stylesheet specified in the XSLTProcessor.style parameter.
| Requires: | XSLT Processor (JAXP/TrAX) |
|---|---|
| Parameters: |
|
After a document has been loaded and transformed, the next step is to serialize, or "print", the result back to a file representation. The NekoStyle package comes with an assortment of common printers for this purpose.
Prints the text within a document ignoring all elements and other non-text nodes.
| Parameters: |
|
|---|
Prints an XML document. This class is derived from the XSLTPrinter and shares the same requirements.
| Parameters: |
|
|---|
Prints an HTML document. This class is derived from the XSLTPrinter and shares the same requirements.
| Parameters: |
|
|---|
Prints documents by performing the identity transform with XSLT and setting the output keys. The XSLT printer can output XML, HTML, and text documents by setting the XSLTPrinter.method parameter appropriately.
| Requires: | XSLT Processor (JAXP/TrAX) |
|---|---|
| Parameters: |
|
Typical processors used in the NekoStyle architecture are parsers, transformers, and printers. However, any component that can be written to accept an XML document as input and output an XML document can be written as a NekoStyle processor.
Prints text messages to standard output or standard error. This component can be used anywhere in the pipeline because it does not modify the input document.
| Parameters: |
|
|---|
Generates an XML document of a directory listing. Transforming the output of this processor with an XSLT stylesheet provides an easy way to dynamically generate additional processing pipelines based on the contents of a directory. For example, you could generate a list of all HTML files in order to remove extraneous formatting tags (e.g. <FONT>, <SPAN>, etc.).
| Parameters: |
|
|---|