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 |
see | |
package |
phing.filters |
_initialize()
chain(\Reader $reader) : \XsltFilter
\Reader
\XsltFilter
A new filter based on this configuration, but filtering
the specified 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() : array
array
the parameters to be used by this filter
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) : void
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(string $xml, string $xsl) : string
throws |
On XSLT errors |
---|
string
XML to process.
string
XSLT sheet to use for the processing.
string
read(integer $len = null)
If length is specified, then only that number of chars is read, otherwise stream is read until EOF.
integer
readLine() : string
The returned String retains the '\n'.
throws |
if the underlying reader throws one during
|
---|---|
string
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(array $parameters) : void
throws |
---|
array
Array of parameters to be used by this filter.
Should not be <code>null</code>.
setParams(array $params)
This is used to "clone" this class, in the chain() method.
array
setProject(object|\Project $project)
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 : array
var |
---|
array
initialized :
project :