XsltProcessor
class XsltProcessor (View source)
Methods
Perform a one shot transformation. The result is stored in the supplied outputfile name.
Perform a one shot transformation. The result is returned as a string. If there are failures then a null is returned.
Perform a one shot transformation. The result is returned as an XdmValue.
Perform the transformation based upon cached stylesheet and source document.
No description
Perform the transformation based upon cached stylesheet and any source document. Result returned as an XdmValue object. If there are failures then a null is returned
Compile a stylesheet supplied by file name
Compile a stylesheet received as a string.
Set the output file name of where the transformation result is sent
The source used for a query or stylesheet. Requires an XdmValue object
The source used for a query or stylesheet. Requires a file name as string
Set properties for the stylesheet.
Clear parameter values set
Clear property values set
Clear any exception thrown
Get the $i'th error code if there are any errors
Get the $i'th error message if there are any errors
Get number of error during execution or evaluate of stylesheet
Details
void
transformFileToFile(string $sourceFileName, string $stylesheetFileName, string $outputfileName)
Perform a one shot transformation. The result is stored in the supplied outputfile name.
string|null
transformFileToString(string $sourceFileName, string $stylesheetFileName)
Perform a one shot transformation. The result is returned as a string. If there are failures then a null is returned.
XdmValue
transformFileToValue(string $fileName)
Perform a one shot transformation. The result is returned as an XdmValue.
void
transformToFile()
Perform the transformation based upon cached stylesheet and source document.
string
transformToString()
No description
XdmValue|null
transformToValue()
Perform the transformation based upon cached stylesheet and any source document. Result returned as an XdmValue object. If there are failures then a null is returned
void
compileFromFile(string $fileName)
Compile a stylesheet supplied by file name
void
compileFromString(string $str)
Compile a stylesheet received as a string.
void
compileFromValue(XdmNode $node)
Compile a stylesheet received as an XdmNode.
void
setOutputFile(string $fileName)
Set the output file name of where the transformation result is sent
void
setSourceFromXdmValue(XdmValue $value)
The source used for a query or stylesheet. Requires an XdmValue object
void
setSourceFromFile(string $filename)
The source used for a query or stylesheet. Requires a file name as string
void
setParameter(string $name, XdmValue $value)
Set the parameters required for XSLT stylesheet
void
setProperty(string $name, string $value)
Set properties for the stylesheet.
void
clearParameters()
Clear parameter values set
void
clearProperties()
Clear property values set
void
exceptionClear()
Clear any exception thrown
string
getErrorCode(int $i)
Get the $i'th error code if there are any errors
string
getErrorMessage(int $i)
Get the $i'th error message if there are any errors
int
getExceptionCount()
Get number of error during execution or evaluate of stylesheet