Class TransformerXSL

Description

XSL Transformer

This class provides a simple solution for implementing XSL transformers.

  • abstract:

Located in /phpsatk-lib/global/org.eenterphace.sat.transformation/transformer.xsl.php (line 35)

TransformerGeneric
   |
   --TransformerDOM
      |
      --TransformerXSL
Variable Summary
XSLTProcessor $XSLTProcessor
Method Summary
TransformerXSL __construct ()
void configure ()
DOMDocument process (DOMDocument $input)
void useStylesheet (string $file, [boolean $internal = true])
Variables
XSLTProcessor $XSLTProcessor (line 42)

Holds an XLSTProcessor object

  • access: protected
Methods
Constructor __construct (line 57)

Initializes a new XSL-Transformer

Calls the abstract function configure() to let the user configure the transformer.

  • access: public
TransformerXSL __construct ()
configure (line 49)

Method to be defined which should be used to configure the XMLProcessor

E.g. set the stylesheet used here (See useStylesheet()).

  • access: protected
  • abstract:
void configure ()
process (line 69)

Performs the actual transformation

  • access: protected
DOMDocument process (DOMDocument $input)
  • DOMDocument $input: Input DOM tree

Redefinition of:
TransformerDOM::process()
Abstract function which needs to implement the actual processing
useStylesheet (line 81)

Sets the stylesheet to use.

  • access: protected
  • todo: Implement local and app-local repositories.
void useStylesheet (string $file, [boolean $internal = true])
  • string $file: Filename
  • boolean $internal: Search in the global data/xslt directory

Inherited Methods

Inherited From TransformerDOM

TransformerDOM::getIOType()
TransformerDOM::process()
TransformerDOM::__process()

Inherited From TransformerGeneric

TransformerGeneric::append()
TransformerGeneric::first()
TransformerGeneric::last()
TransformerGeneric::next()
TransformerGeneric::prepend()
TransformerGeneric::prev()
TransformerGeneric::remove()

Documentation generated on Mon, 21 May 2007 10:35:22 +0200 by phpDocumentor 1.3.0RC5