65 ns = paramURI.stringValue();
69 context->
error(QtXmlPatterns::tr(
"%1 is an invalid %2").arg(
formatData(paramQName),
86 context->
error(QtXmlPatterns::tr(
87 "If the first argument is the empty sequence or " 88 "a zero-length string (no namespace), a prefix " 89 "cannot be specified. Prefix %1 was specified.")
Expression::List m_operands
virtual NamePool::Ptr namePool() const =0
QString formatKeyword(const QString &keyword)
QString formatType(const NamePool::Ptr &np, const T &type)
Formats ItemType and SequenceType.
Item toItem(const QExplicitlySharedDataPointer< T > atomicValue)
The QString class provides a Unicode character string.
void error(const QString &message, const ReportContext::ErrorCode errorCode, const QSourceLocation &sourceLocation)
static QNameValue::Ptr fromValue(const NamePool::Ptr &np, const QXmlName name)
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
QString stringValue() const
Returns the string value of this Item.
static QString formatData(const QString &data)
T & first()
Returns a reference to the first item in the list.
The QXmlName class represents the name of an XML node, in an efficient, namespace-aware way...
Represents an item in the XPath 2.0 Data Model.
static const AtomicType::Ptr xsQName
T & last()
Returns a reference to the last item in the list.
QXmlName allocateQName(const QString &uri, const QString &localName, const QString &prefix=QString())
static void splitQName(const QString &qName, QString &prefix, QString &localName)
Splits qName into localName and prefix.
static bool isQName(const QString &qName)
virtual Item evaluateSingleton(const DynamicContext::Ptr &context) const