class XsltProcessor (View source)

Methods

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.

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

Details

void transformFileToFile(string $sourceFileName, string $stylesheetFileName, string $outputfileName)

Perform a one shot transformation. The result is stored in the supplied outputfile name.

Parameters

string $sourceFileName
string $stylesheetFileName
string $outputfileName

Return Value

void

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.

Parameters

string $sourceFileName
string $stylesheetFileName

Return Value

string|null

XdmValue transformFileToValue(string $fileName)

Perform a one shot transformation. The result is returned as an XdmValue.

Parameters

string $fileName

Return Value

XdmValue

void transformToFile()

Perform the transformation based upon cached stylesheet and source document.

Return Value

void

string transformToString()

No description

Return Value

string

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

Return Value

XdmValue|null

void compileFromFile(string $fileName)

Compile a stylesheet supplied by file name

Parameters

string $fileName

Return Value

void

void compileFromString(string $str)

Compile a stylesheet received as a string.

Parameters

string $str

Return Value

void

void compileFromValue(XdmNode $node)

Compile a stylesheet received as an XdmNode.

Parameters

XdmNode $node

Return Value

void

void setOutputFile(string $fileName)

Set the output file name of where the transformation result is sent

Parameters

string $fileName

Return Value

void

void setSourceFromXdmValue(XdmValue $value)

The source used for a query or stylesheet. Requires an XdmValue object

Parameters

XdmValue $value

Return Value

void

void setSourceFromFile(string $filename)

The source used for a query or stylesheet. Requires a file name as string

Parameters

string $filename

Return Value

void

void setParameter(string $name, XdmValue $value)

Set the parameters required for XSLT stylesheet

Parameters

string $name
XdmValue $value

Return Value

void

void setProperty(string $name, string $value)

Set properties for the stylesheet.

Parameters

string $name
string $value

Return Value

void

void clearParameters()

Clear parameter values set

Return Value

void

void clearProperties()

Clear property values set

Return Value

void

void exceptionClear()

Clear any exception thrown

Return Value

void

string getErrorCode(int $i)

Get the $i'th error code if there are any errors

Parameters

int $i

Return Value

string

string getErrorMessage(int $i)

Get the $i'th error message if there are any errors

Parameters

int $i

Return Value

string

int getExceptionCount()

Get number of error during execution or evaluate of stylesheet

Return Value

int