protected function resolveXmlBase()
    {
        $stack = $this->getXmlBaseStack();
        $stack->rewind();

        $resolvedBase = '';

        while ($stack->valid() === true) {

            if (($currentBase = $stack->current()) !== '') {
                if ($resolvedBase === '') {
                    $resolvedBase = $currentBase;
                } else {
                    $resolvedBase = Url::rtrim($currentBase) . '/' . Url::ltrim($resolvedBase);
                }
            }

            $stack->next();
        }

        if ($stack->count() > 0) {
            $stack->pop();
        }

        return $resolvedBase;
    }
protected function resolveXmlBase()
    {
        $stack = $this->getXmlBaseStack();
        $stack->rewind();

        $resolvedBase = '';

        while ($stack->valid() === true) {

            if (($currentBase = $stack->current()) !== '') {
                if ($resolvedBase === '') {
                    $resolvedBase = $currentBase;
                } else {
                    $resolvedBase = Url::rtrim($currentBase) . '/' . Url::ltrim($resolvedBase);
                }
            }

            $stack->next();
        }

        if ($stack->count() > 0) {
            $stack->pop();
        }

        return $resolvedBase;
    }
protected function resolveXmlBase ( ) { $ stack = $ this -> getXmlBaseStack ( ) ; $ stack -> rewind ( ) ; $ resolvedBase = '' ; while ( $ stack -> valid ( ) === true ) { if ( ( $ currentBase = $ stack -> current ( ) ) !== '' ) { if ( $ resolvedBase === '' ) { $ resolvedBase = $ currentBase ; } else { $ resolvedBase = Url :: rtrim ( $ currentBase ) . '/' . Url :: ltrim ( $ resolvedBase ) ; } } $ stack -> next ( ) ; } if ( $ stack -> count ( ) > 0 ) { $ stack -> pop ( ) ; } return $ resolvedBase ; }
Resolve what is the base URL to be used for the currently explored component.

@return string A URL or the empty string ('') if no base URL could be resolved.
Resolve what is the base URL to be used for the currently explored component .