public function withParameters(string $nameSpace, array $params): self
    {
        if (false === $this->xsltProcessor->setParameter($nameSpace, $params)) {
            throw new XslProcessorException('Could not set parameters in ' . $nameSpace);
        }

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

        $this->parameters[$nameSpace] = array_merge($this->parameters[$nameSpace], $params);
        return $this;
    }
public function withParameters(string $nameSpace, array $params): self
    {
        if (false === $this->xsltProcessor->setParameter($nameSpace, $params)) {
            throw new XslProcessorException('Could not set parameters in ' . $nameSpace);
        }

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

        $this->parameters[$nameSpace] = array_merge($this->parameters[$nameSpace], $params);
        return $this;
    }
public function withParameters ( string $ nameSpace , array $ params ) : self { if ( false === $ this -> xsltProcessor -> setParameter ( $ nameSpace , $ params ) ) { throw new XslProcessorException ( 'Could not set parameters in ' . $ nameSpace ) ; } if ( ! isset ( $ this -> parameters [ $ nameSpace ] ) ) { $ this -> parameters [ $ nameSpace ] = [ ] ; } $ this -> parameters [ $ nameSpace ] = array_merge ( $ this -> parameters [ $ nameSpace ] , $ params ) ; return $ this ; }
set a list of parameters for the given namespace

@param   string  $nameSpace  the namespace where the parameters are in
@param   array   $params     the list of parameters to set: name => value
@return  \stubbles\xml\xsl\XslProcessor
@throws  \stubbles\xml\xsl\XslProcessorException
set a list of parameters for the given namespace