protected static function resolveAssessmentSectionRef(AssessmentSectionRef $assessmentSectionRef, FileResolver $resolver)
    {
        try {
            $href = $resolver->resolve($assessmentSectionRef->getHref());

            $doc = new XmlDocument();
            $doc->load($href);
            $doc->xInclude();

            return $doc;
        } catch (XmlStorageException $e) {
            $msg = "An error occured while unreferencing section reference with identifier '" . $assessmentSectionRef->getIdentifier() . "'.";
            throw new XmlStorageException($msg, XmlStorageException::RESOLUTION, $e);
        }
    }
protected static function resolveAssessmentSectionRef(AssessmentSectionRef $assessmentSectionRef, FileResolver $resolver)
    {
        try {
            $href = $resolver->resolve($assessmentSectionRef->getHref());

            $doc = new XmlDocument();
            $doc->load($href);
            $doc->xInclude();

            return $doc;
        } catch (XmlStorageException $e) {
            $msg = "An error occured while unreferencing section reference with identifier '" . $assessmentSectionRef->getIdentifier() . "'.";
            throw new XmlStorageException($msg, XmlStorageException::RESOLUTION, $e);
        }
    }
protected static function resolveAssessmentSectionRef ( AssessmentSectionRef $ assessmentSectionRef , FileResolver $ resolver ) { try { $ href = $ resolver -> resolve ( $ assessmentSectionRef -> getHref ( ) ) ; $ doc = new XmlDocument ( ) ; $ doc -> load ( $ href ) ; $ doc -> xInclude ( ) ; return $ doc ; } catch ( XmlStorageException $ e ) { $ msg = "An error occured while unreferencing section reference with identifier '" . $ assessmentSectionRef -> getIdentifier ( ) . "'." ; throw new XmlStorageException ( $ msg , XmlStorageException :: RESOLUTION , $ e ) ; } }
Dereference the file referenced by an assessmentSectionRef.

The xinclude elements in the target assessmentSection file will be resolved at the same time.

@param \qtism\data\AssessmentSectionRef $assessmentSectionRef An AssessmentSectionRef object to dereference.
@param \qtism\data\storage\FileResolver $resolver The Resolver object to be used to resolve AssessmentSectionRef's href attribute.
@throws \qtism\data\storage\xml\XmlStorageException If an error occurs while dereferencing the referenced file.
@return \qtism\data\XmlDocument The AssessmentSection referenced by $assessmentSectionRef as an XmlDocument object.
Dereference the file referenced by an assessmentSectionRef .