public function withParameter(string $nameSpace, string $paramName, string $paramValue): self
    {
        if (false === $this->xsltProcessor->setParameter($nameSpace, $paramName, $paramValue)) {
            throw new XslProcessorException(
                    'Could not set parameter ' . $nameSpace . ':' . $paramName
                    . ' with value ' . $paramValue
            );
        }

        if (!isset($this->parameters[$nameSpace])) {
            $this->parameters[$nameSpace] = [];
        }

        $this->parameters[$nameSpace][$paramName] = $paramValue;
        return $this;
    }
public function withParameter(string $nameSpace, string $paramName, string $paramValue): self
    {
        if (false === $this->xsltProcessor->setParameter($nameSpace, $paramName, $paramValue)) {
            throw new XslProcessorException(
                    'Could not set parameter ' . $nameSpace . ':' . $paramName
                    . ' with value ' . $paramValue
            );
        }

        if (!isset($this->parameters[$nameSpace])) {
            $this->parameters[$nameSpace] = [];
        }

        $this->parameters[$nameSpace][$paramName] = $paramValue;
        return $this;
    }
public function withParameter ( string $ nameSpace , string $ paramName , string $ paramValue ) : self { if ( false === $ this -> xsltProcessor -> setParameter ( $ nameSpace , $ paramName , $ paramValue ) ) { throw new XslProcessorException ( 'Could not set parameter ' . $ nameSpace . ':' . $ paramName . ' with value ' . $ paramValue ) ; } if ( ! isset ( $ this -> parameters [ $ nameSpace ] ) ) { $ this -> parameters [ $ nameSpace ] = [ ] ; } $ this -> parameters [ $ nameSpace ] [ $ paramName ] = $ paramValue ; return $ this ; }
sets a parameter for a namespace

@param   string  $nameSpace   the namespace where the parameter is in
@param   string  $paramName   the name of the parameter to set
@param   string  $paramValue  the value to set the parameter to
@return  \stubbles\xml\xsl\XslProcessor
@throws  \stubbles\xml\xsl\XslProcessorException
sets a parameter for a namespace