Changeset 561 for trunk/src/xmlpatterns/api/qxmlquery.cpp
- Timestamp:
- Feb 11, 2010, 11:19:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/vendor/nokia/qt/4.6.1 merged eligible /branches/vendor/nokia/qt/current merged eligible /branches/vendor/trolltech/qt/current 3-149
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/xmlpatterns/api/qxmlquery.cpp
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information (qt-info@nokia.com) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation (qt-info@nokia.com) 5 6 ** 6 7 ** This file is part of the QtXmlPatterns module of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you have questions regarding the use of this file, please contact 37 ** Nokia at qt-info@nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** … … 152 152 153 153 \note For the current release, XSLT support should be considered 154 experimental. See section \l{ QtXmlPatterns Module#XSLT154 experimental. See section \l{Using XML technologies#XSLT 155 155 2.0}{XSLT conformance} for details. 156 156 … … 232 232 \value XQuery10 XQuery 1.0. 233 233 \value XSLT20 XSLT 2.0 234 \omitvalue XmlSchema11IdentityConstraintSelector The selector, the restricted 235 XPath pattern found in W3C XML Schema 1.1 for uniqueness 236 contraints. Apart from restricting the syntax, the type check stage 237 for the expression assumes a sequence of nodes to be the focus. 238 \omitvalue XmlSchema11IdentityConstraintField The field, the restricted 239 XPath pattern found in W3C XML Schema 1.1 for uniqueness 240 contraints. Apart from restricting the syntax, the type check stage 241 for the expression assumes a sequence of nodes to be the focus. 242 \omitvalue XPath20 Signifies XPath 2.0. Has no effect in the public API, it's 243 used internally. As With XmlSchema11IdentityConstraintSelector and 244 XmlSchema11IdentityConstraintField, the type check stage 245 for the expression assumes a sequence of nodes to be the focus. 234 246 235 247 \sa setQuery() … … 280 292 281 293 \note The XSL-T support in this release is considered experimental. 282 See the \l{ QtXmlPatterns Module#XSLT 2.0}{XSLT conformance} for294 See the \l{Using XML technologies#XSLT 2.0}{XSLT conformance} for 283 295 details. 284 296 … … 416 428 } 417 429 418 d->queryURI = Q XmlQueryPrivate::normalizeQueryURI(documentURI);430 d->queryURI = QPatternist::XPathHelper::normalizeQueryURI(documentURI); 419 431 d->expression(sourceCode); 420 432 } … … 464 476 Q_ASSERT_X(queryURI.isValid(), Q_FUNC_INFO, "The passed URI must be valid."); 465 477 466 const QUrl canonicalURI(Q XmlQueryPrivate::normalizeQueryURI(queryURI));478 const QUrl canonicalURI(QPatternist::XPathHelper::normalizeQueryURI(queryURI)); 467 479 Q_ASSERT(canonicalURI.isValid()); 468 480 Q_ASSERT(!canonicalURI.isRelative()); 469 481 Q_ASSERT(baseURI.isValid() || baseURI.isEmpty()); 470 482 471 d->queryURI = Q XmlQueryPrivate::normalizeQueryURI(baseURI.isEmpty() ? queryURI : baseURI);483 d->queryURI = QPatternist::XPathHelper::normalizeQueryURI(baseURI.isEmpty() ? queryURI : baseURI); 472 484 473 485 QPatternist::AutoPtr<QIODevice> result; … … 1040 1052 1041 1053 /*! 1054 This function behaves identically to calling the setFocus() overload with a 1055 QIODevice whose content is \a focus encoded as UTF-8. That is, \a focus is 1056 treated as if it contained an XML document. 1057 1058 Returns the same result as the overload. 1059 1060 \overload 1061 \since 4.6 1062 */ 1063 bool QXmlQuery::setFocus(const QString &focus) 1064 { 1065 QBuffer device; 1066 device.setData(focus.toUtf8()); 1067 device.open(QIODevice::ReadOnly); 1068 1069 return setFocusHelper(this, &device); 1070 } 1071 1072 /*! 1042 1073 Returns a value indicating what this QXmlQuery is being used for. 1043 1074 The default is QXmlQuery::XQuery10, which means the QXmlQuery is
Note:
See TracChangeset
for help on using the changeset viewer.