The implementation of this function is placed in a different compilation unit, namely qsequencefns.cpp, to workaround a compiler bug on solaris-cc-64, suspected to be related to the instantiation of QUrl::toQUrl().
321 if(!uriOp->isEvaluated())
331 const QUrl mayRela(AnyURI::toQUrl<ReportContext::FODC0005>(uriItem.stringValue(), context,
this));
336 "No resource loader is set in the StaticContext.");
346 context->
error(QtXmlPatterns::tr(
"It will not be possible to retrieve %1.").arg(
formatURI(uri)),
virtual Expression::Ptr typeCheck(const StaticContext::Ptr &context, const SequenceType::Ptr &reqType)
Expression::List m_operands
QUrl resolveURI(const QUrl &relative, const QUrl &baseURI) const
virtual Expression::Ptr typeCheck(const StaticContext::Ptr &context, const SequenceType::Ptr &reqType)
The QUrl class provides a convenient interface for working with URLs.
static Expression::Ptr create(const Expression *const replacementFor, const StaticContext::Ptr &context)
Creates an EmptySequence that is a replacement for replacementFor.
virtual SequenceType::Ptr announceDocument(const QUrl &uri, const Usage usageHint)
May be called by the compilation framework at compile time to report that an XML document referenced ...
void error(const QString &message, const ReportContext::ErrorCode errorCode, const QSourceLocation &sourceLocation)
virtual ResourceLoader::Ptr resourceLoader() const =0
T & first()
Returns a reference to the first item in the list.
QExplicitlySharedDataPointer< Expression > Ptr
A smart pointer wrapping mutable Expression instances.
#define Q_ASSERT_X(cond, where, what)
static const SequenceType::Ptr ZeroOrOneDocumentNode
const QUrl & staticBaseURI() const
Represents an item in the XPath 2.0 Data Model.
void prepareStaticBaseURI(const StaticContext::Ptr &context)
virtual QExplicitlySharedDataPointer< DynamicContext > dynamicContext() const =0
static QString formatURI(const NamePool::Ptr &np, const QXmlName::NamespaceCode &uri)
Formats uri, that's considered to be a URI, for display.