Applies XSL stylesheet to incoming text.
Uses PHP XSLT support (libxslt).
author |
Hans Lellelid hans@velum.net |
---|---|
author |
Yannick Lecaillez yl@seasonfive.com |
author |
Andreas Aderhold andi@binarycloud.com |
version |
$Id: 18d625cd2fc1deaf10f714c5e797571bb6986d29 $ |
see | |
package |
phing.filters |
_initialize()
chain(\Reader $reader) : \Reader
close()
throws |
if there is an error closing stream |
---|---|
createParam() : \XSLTParam
eof() : boolean
boolean
getHtml() : boolean
This is supported in libxml2 -- Yay!
boolean
getInitialized() : boolean
boolean
whether or not the filter is initialized
getParameters()
getParams() : array
This is used to "clone" this class, in the chain() method.
array
getProject() : object
object
The project this filter is part of
getResolveDocumentExternals() : boolean
since | 2.4 |
---|---|
boolean
getResolveStylesheetExternals() : boolean
since | 2.4 |
---|---|
boolean
getResource() : string
This is critical for, e.g., ExpatParser's ability to know the filename that is throwing an ExpatParserException, etc.
string
getStyle() : mixed
mixed
XSLT stylesheet path.
log(string $msg, integer $level = \Project::MSG_INFO)
string
Message to log.
integer
Priority level.
mark()
A subsequent call to reset() will move stream position back to last marker (if supported).
markSupported() : boolean
boolean
process( $xml, $xsl)
throws |
On XSLT errors |
---|---|
read(integer $len = null)
If length is specified, then only that number of chars is read, otherwise stream is read until EOF.
integer
readLine() : \the
The returned String retains the '\n'.
throws |
if the underlying reader throws one during
|
---|---|
\the
line read, or null
if the end of the
stream has already been reached
ready() : boolean
boolean
reset()
setHtml(boolean $b)
boolean
setInitialized(boolean $initialized)
boolean
Whether or not the filter is initialized.
setParameters( $parameters)
setParams(array $params)
This is used to "clone" this class, in the chain() method.
array
setProject(object $project)
object
The project this filter is part of.
Should not be <code>null</code>.
setResolveDocumentExternals(boolean $resolveExternals)
since | 2.4 |
---|---|
boolean
setResolveStylesheetExternals(boolean $resolveExternals)
since | 2.4 |
---|---|
boolean
setStyle(mixed $file)
mixed
PhingFile object or path.
skip(integer $n)
integer
xslFile : string
var |
---|
string
processed : boolean
var |
---|
boolean
xsltParams : array
var |
---|
array
html :
resolveDocumentExternals : boolean
var | |
---|---|
since |
boolean
resolveStylesheetExternals : boolean
var | |
---|---|
since |
boolean
_parameters :
initialized :
project :