SaxonProcessor
class SaxonProcessor (View source)
Methods
Constructor
Create an Xdm Atomic value from any of the main primitive types (i.e. bool, int, float, string)
Create an XdmNode object.
Create an XdmNode object.
Set the current working directory used to resolve against files
Set the resources directory of where Saxon can locate data folder
Set a configuration property specific to the processor in use. Properties specified here are common across all the processors.
Create an XsltProcessor} in the PHP environment. An {@link XsltProcessor is used to compile and execute XSLT sytlesheets
Create an Xslt30Processor} in the PHP environment. An {@link Xslt30Processor} is used to compile and execute XSLT 3.0 stylesheets, but can also be used for XSLT 2.0 or 1.0 stylesheets. Use an {@link Xslt30Processor} instead of {@link XsltProcessor for XSLT 3.0 processing.
Create an XQueryProcessor} in the PHP environment. An {@link XQueryProcessor is used to compile and execute XQuery queries
Create an XPathProcessor} in the PHP environment. An {@link XPathProcessor is used to compile and execute XPath queries
Create a SchemaValidator} in the PHP environment. A {@link SchemaValidator provides capabilities to load and cache XML schema definitions. You can also validate source documents with registered XML schema definitions
Report the Java Saxon version
Enables the ability to use PHP functions as XSLT functions. Accepts as parameter the full path of the Saxon/C PHP Extension library. This is needed to do the callbacks.
Details
__construct(bool $license = false, string $cwd = '')
Constructor
XdmValue
createAtomicValue(bool|int|float|string $primitive_type_val)
Create an Xdm Atomic value from any of the main primitive types (i.e. bool, int, float, string)
XdmNode
parseXmlFromString(string $value)
Create an XdmNode object.
XdmNode
parseXmlFromFile(string $fileName)
Create an XdmNode object.
void
setcwd(string $cwd)
Set the current working directory used to resolve against files
void
setResourceDirectory(string $dir)
Set the resources directory of where Saxon can locate data folder
void
setConfigurationProperty(string $name, string $value)
Set a configuration property specific to the processor in use. Properties specified here are common across all the processors.
XsltProcessor
newXsltProcessor()
Create an XsltProcessor} in the PHP environment. An {@link XsltProcessor is used to compile and execute XSLT sytlesheets
Xslt30Processor
newXslt30Processor()
Create an Xslt30Processor} in the PHP environment. An {@link Xslt30Processor} is used to compile and execute XSLT 3.0 stylesheets, but can also be used for XSLT 2.0 or 1.0 stylesheets. Use an {@link Xslt30Processor} instead of {@link XsltProcessor for XSLT 3.0 processing.
XQueryProcessor
newXQueryProcessor()
Create an XQueryProcessor} in the PHP environment. An {@link XQueryProcessor is used to compile and execute XQuery queries
XPathProcessor
newXPathProcessor()
Create an XPathProcessor} in the PHP environment. An {@link XPathProcessor is used to compile and execute XPath queries
SchemaValidator
newSchemaValidator()
Create a SchemaValidator} in the PHP environment. A {@link SchemaValidator provides capabilities to load and cache XML schema definitions. You can also validate source documents with registered XML schema definitions
string
version()
Report the Java Saxon version
void
registerPHPFunctions(string $library)
Enables the ability to use PHP functions as XSLT functions. Accepts as parameter the full path of the Saxon/C PHP Extension library. This is needed to do the callbacks.