public static function getXPathTransformer(
    string $errorMessage = 'No CSS selector support installed'
  ): \FluentDOM\Xpath\Transformer {
    foreach (self::$_xpathTransformers as $index => $transformer) {
      if (is_string($transformer) && class_exists($transformer)) {
        self::$_xpathTransformers[$index] = new $transformer();
      } elseif (is_callable($transformer)) {
        self::$_xpathTransformers[$index] = $transformer();
      }
      if (self::$_xpathTransformers[$index] instanceof \FluentDOM\Xpath\Transformer) {
        return self::$_xpathTransformers[$index];
      }
      unset(self::$_xpathTransformers[$index]);
    }
    throw new \LogicException($errorMessage);
  }
public static function getXPathTransformer(
    string $errorMessage = 'No CSS selector support installed'
  ): \FluentDOM\Xpath\Transformer {
    foreach (self::$_xpathTransformers as $index => $transformer) {
      if (is_string($transformer) && class_exists($transformer)) {
        self::$_xpathTransformers[$index] = new $transformer();
      } elseif (is_callable($transformer)) {
        self::$_xpathTransformers[$index] = $transformer();
      }
      if (self::$_xpathTransformers[$index] instanceof \FluentDOM\Xpath\Transformer) {
        return self::$_xpathTransformers[$index];
      }
      unset(self::$_xpathTransformers[$index]);
    }
    throw new \LogicException($errorMessage);
  }
public static function getXPathTransformer ( string $ errorMessage = 'No CSS selector support installed' ) : \ FluentDOM \ Xpath \ Transformer { foreach ( self :: $ _xpathTransformers as $ index => $ transformer ) { if ( is_string ( $ transformer ) && class_exists ( $ transformer ) ) { self :: $ _xpathTransformers [ $ index ] = new $ transformer ( ) ; } elseif ( is_callable ( $ transformer ) ) { self :: $ _xpathTransformers [ $ index ] = $ transformer ( ) ; } if ( self :: $ _xpathTransformers [ $ index ] instanceof \ FluentDOM \ Xpath \ Transformer ) { return self :: $ _xpathTransformers [ $ index ] ; } unset ( self :: $ _xpathTransformers [ $ index ] ) ; } throw new \ LogicException ( $ errorMessage ) ; }
Get a xpath expression builder to convert css selectors to xpath

@param string $errorMessage
@return \FluentDOM\Xpath\Transformer
@throws \LogicException
Get a xpath expression builder to convert css selectors to xpath