├── tests ├── auto │ ├── qquickxmllistmodel │ │ ├── data │ │ │ ├── empty.xml │ │ │ ├── roleCrash.qml │ │ │ ├── proxyCrash.qml │ │ │ ├── testtypes.qml │ │ │ ├── unique.qml │ │ │ ├── groups.qml │ │ │ ├── model2.xml │ │ │ ├── model.qml │ │ │ ├── propertychanges.qml │ │ │ ├── recipes.qml │ │ │ ├── roleKeys.qml │ │ │ ├── roleErrors.qml │ │ │ └── groups.xml │ │ └── qquickxmllistmodel.pro │ ├── xmlpatterns │ │ ├── queries │ │ │ ├── oneElement.xq │ │ │ ├── completelyEmptyQuery.xq │ │ │ ├── onePlusOne.xq │ │ │ ├── wrongArity.xq │ │ │ ├── zeroDivision.xq │ │ │ ├── syntaxError.xq │ │ │ ├── twoVariables.xq │ │ │ ├── concat.xq │ │ │ ├── typeError.xq │ │ │ ├── onlyDocumentNode.xq │ │ │ ├── threeVariables.xq │ │ │ ├── invalidRegexp.xq │ │ │ ├── openDocument.xq │ │ │ ├── literalsequence.xq │ │ │ ├── nonexistingCollection.xq │ │ │ ├── emptySequence.xq │ │ │ ├── invalidRegexpFlag.xq │ │ │ ├── externalStringVariable.xq │ │ │ ├── externalVariableUsedTwice.xq │ │ │ ├── flwor.xq │ │ │ ├── errorFunction.xq │ │ │ ├── staticError.xq │ │ │ ├── unavailableExternalVariable.xq │ │ │ ├── unsupportedCollation.xq │ │ │ ├── simpleLibraryModule.xq │ │ │ ├── staticBaseURI.xq │ │ │ ├── simpleDocument.xml │ │ │ ├── README │ │ │ ├── externalVariable.xq │ │ │ └── nodeSequence.xq │ │ ├── stderrBaselines │ │ │ ├── Usefndoc.txt │ │ │ ├── LoadqueryviaFTP.txt │ │ │ ├── Useanativepath.txt │ │ │ ├── Useparamthrice.txt │ │ │ ├── Useparamtwice.txt │ │ │ ├── Asimplemathquery.txt │ │ │ ├── LoadqueryviaHTTP.txt │ │ │ ├── Basicuseofoutputquerylast.txt │ │ │ ├── Bindanexternalvariable.txt │ │ │ ├── Loadqueryviadatascheme.txt │ │ │ ├── QTBUG35897literalsequence.txt │ │ │ ├── Basicuseofoutputqueryfirst.txt │ │ │ ├── Invokewithparamthathasnovalue..txt │ │ │ ├── Useasimplifiedstylesheetmodule.txt │ │ │ ├── onequerywithaprecedingdash.txt │ │ │ ├── Callanamedtemplateandusenofocus..txt │ │ │ ├── Specifyanamedtemplatethatexists.txt │ │ │ ├── Useanexternalvariablemultipletimes..txt │ │ │ ├── Usefndoctogetherwithnoformatfirst.txt │ │ │ ├── Usefndoctogetherwithnoformatlast.txt │ │ │ ├── onequeryandaterminatingdashattheend.txt │ │ │ ├── Bindanexternalvariablequeryappearinglast.txt │ │ │ ├── Invokeatemplateandusepassparameters..txt │ │ │ ├── Specifyanamedtemplatethatdoesnotexists.txt │ │ │ ├── Ensureisuricanappearafterthequeryfilename.txt │ │ │ ├── Invokeversion.txt │ │ │ ├── Invokewithparamthathastwoadjacentequalsigns..txt │ │ │ ├── Runaquerywhichevaluatestotheemptysequence..txt │ │ │ ├── Passinanexternalvariablebutthequerydoesntuseit..txt │ │ │ ├── Invalidtemplatename.txt │ │ │ ├── Runaquerywhichevaluatestoasingledocumentnodewithnochildren..txt │ │ │ ├── MakesurequerypathsareresolvedagainstCWDnotthelocationoftheexecutable..txt │ │ │ ├── Invokewithinvalidparamvalue..txt │ │ │ ├── Useoutputonafilewithexistingcontenttoensurewetruncatenotappendthecontentweproduce..txt │ │ │ ├── Invokewithmissingnameinparamarg..txt │ │ │ ├── Invokewithcoloninvariablename..txt │ │ │ ├── initialtemplatemustbefollowedbyavalue.txt │ │ │ ├── outputwithanonwritablefile.txt │ │ │ ├── Unknownswitchd.txt │ │ │ ├── Useoutputtwice.txt │ │ │ ├── Specifythesameparametertwicesamevalues.txt │ │ │ ├── initialtemplatedoesntworkwithXQueries..txt │ │ │ ├── Specifythesameparametertwicedifferentvalues.txt │ │ │ ├── Wedontsupportformatanylonger.txt │ │ │ ├── Specifytwodifferentquerynames.txt │ │ │ ├── Unknownswitchunknownswitch.txt │ │ │ ├── Callfnerror.txt │ │ │ ├── initialtemplatemustbefollowedbyavalue2.txt │ │ │ ├── onlynoformat.txt │ │ │ ├── Asingledashthatsinvalid.txt │ │ │ ├── PassininvalidURI.txt │ │ │ ├── Specifynoargumentsatall..txt │ │ │ ├── Evaluateastylesheetwithnocontextdocument.txt │ │ │ ├── Passingasingledashisinsufficient.txt │ │ │ ├── Triggerastaticerror..txt │ │ │ ├── Notwellformedinstancedocumentcausescrashincoloringcode..txt │ │ │ ├── Openanonexistingcollection..txt │ │ │ ├── Anunboundexternalvariable.txt │ │ │ ├── XQuerydataXQuerykeywordmessagemarkups.txt │ │ │ ├── Notwellformedstylesheetcausescrashincoloringcode..txt │ │ │ ├── Evaluatealibrarymodule.txt │ │ │ ├── PassinastylesheetfilewhichcontainsanXQueryquery.txt │ │ │ ├── XQueryexpressionmessagemarkups.txt │ │ │ ├── XQuerytypemessagemarkups.txt │ │ │ ├── Passingtwodashesthelastisinterpretedasafilename.txt │ │ │ ├── Asinglequerythatdoesnotexist.txt │ │ │ ├── XQueryfunctionmessagemarkups.txt │ │ │ ├── Openannonexistentfile.txt │ │ │ ├── TriggerasecondassertinQPatternistColorOutput.ThequerynaturallycontainsXPST0003..txt │ │ │ ├── paramismissingsomultiplequeriesappear.txt │ │ │ ├── Passinastylesheetfileandafocusfilewhichdoesntexist.txt │ │ │ ├── TriggeranassertinQPatternistColorOutput.ThequerynaturallycontainsanerrorXPTY0004..txt │ │ │ ├── XQueryurimessagemarkups.txt │ │ │ ├── Passthreedashesthetwolastgetsinterpretedastwoqueryarguments.txt │ │ │ ├── Specifytwoidenticalquerynames.txt │ │ │ ├── PrintalistofavailableregexpflagsTheavailableflagsareformattedinacomplexway..txt │ │ │ └── PassinastylsheetfilewhichcontainsanXQueryquery.txt │ │ ├── stylesheets │ │ │ ├── bool070.xml │ │ │ ├── documentElement.xml │ │ │ ├── queryAsStylesheet.xsl │ │ │ ├── simplifiedStylesheetModule.xml │ │ │ ├── simplifiedStylesheetModule.xsl │ │ │ ├── bool070.xsl │ │ │ ├── namedTemplate.xsl │ │ │ ├── onlyRootTemplate.xsl │ │ │ ├── copyWholeDocument.xsl │ │ │ ├── notWellformed.xsl │ │ │ ├── namedAndRootTemplate.xsl │ │ │ └── useParameters.xsl │ │ ├── xmlpatterns.pro │ │ └── baselines │ │ │ └── globals.xml │ ├── qxmlformatter │ │ ├── baselines │ │ │ ├── emptySequence.xml │ │ │ ├── onlyDocumentNode.xml │ │ │ ├── documentElementWithWS.xml │ │ │ ├── singleElement.xml │ │ │ ├── singleTextNode.xml │ │ │ ├── textNodeAtomicValue.xml │ │ │ ├── threeAtomics.xml │ │ │ ├── K2-DirectConElemContent-46.xml │ │ │ ├── mixedTopLevelContent.xml │ │ │ ├── documentNodes.xml │ │ │ ├── nodesAndWhitespaceAtomics.xml │ │ │ ├── classExample.xml │ │ │ ├── simpleDocument.xml │ │ │ ├── elementsWithWS.xml │ │ │ ├── prolog.xml │ │ │ ├── adjacentNodes.xml │ │ │ ├── indentedAdjacentNodes.xml │ │ │ ├── mixedContent.xml │ │ │ └── indentedMixedContent.xml │ │ ├── input │ │ │ ├── prolog.xq │ │ │ ├── singleElement.xml │ │ │ ├── onlyDocumentNode.xq │ │ │ ├── singleTextNode.xq │ │ │ ├── textNodeAtomicValue.xq │ │ │ ├── adjacentNodes.xq │ │ │ ├── classExample.xq │ │ │ ├── documentElementWithWS.xml │ │ │ ├── elementsWithWS.xq │ │ │ ├── mixedContent.xq │ │ │ ├── simpleDocument.xq │ │ │ ├── singleElement.xq │ │ │ ├── classExample.xml │ │ │ ├── K2-DirectConElemContent-46.xq │ │ │ ├── documentElementWithWS.xq │ │ │ ├── indentedAdjacentNodes.xq │ │ │ ├── indentedMixedContent.xq │ │ │ ├── threeAtomics.xq │ │ │ ├── emptySequence.xq │ │ │ ├── documentNodes.xq │ │ │ ├── simpleDocument.xml │ │ │ ├── mixedContent.xml │ │ │ ├── elementsWithWS.xml │ │ │ ├── nodesAndWhitespaceAtomics.xq │ │ │ ├── mixedTopLevelContent.xq │ │ │ ├── prolog.xml │ │ │ ├── adjacentNodes.xml │ │ │ ├── indentedAdjacentNodes.xml │ │ │ └── indentedMixedContent.xml │ │ └── qxmlformatter.pro │ ├── qxmlquery │ │ ├── data │ │ │ ├── oneElement.xml │ │ │ └── notWellformed.xml │ │ ├── pushBaselines │ │ │ ├── errorFunction.ref │ │ │ ├── emptySequence.ref │ │ │ ├── concat.ref │ │ │ ├── onePlusOne.ref │ │ │ ├── onlyDocumentNode.ref │ │ │ ├── oneElement.ref │ │ │ ├── literalsequence.ref │ │ │ ├── openDocument.ref │ │ │ └── allAtomics.ref │ │ ├── input.xml │ │ ├── input.qrc │ │ └── qxmlquery.pro │ ├── host.pro │ ├── xmlpatternsdiagnosticsts │ │ ├── TestSuite │ │ │ ├── TestSources │ │ │ │ └── emptydoc.xml │ │ │ ├── Queries │ │ │ │ └── XQuery │ │ │ │ │ ├── ShouldFail │ │ │ │ │ ├── fail-2.xq │ │ │ │ │ ├── fail-7.xq │ │ │ │ │ ├── fail-8.xq │ │ │ │ │ ├── fail-12.xq │ │ │ │ │ ├── fail-18.xq │ │ │ │ │ ├── fail-15.xq │ │ │ │ │ ├── fail-16.xq │ │ │ │ │ ├── fail-1.xq │ │ │ │ │ ├── fail-11.xq │ │ │ │ │ ├── fail-5.xq │ │ │ │ │ ├── fail-6.xq │ │ │ │ │ ├── fail-10.xq │ │ │ │ │ ├── fail-3.xq │ │ │ │ │ ├── fail-4.xq │ │ │ │ │ ├── fail-9.xq │ │ │ │ │ └── fail-14.xq │ │ │ │ │ └── ShouldSucceed │ │ │ │ │ ├── succeed-13.xq │ │ │ │ │ ├── succeed-15.xq │ │ │ │ │ ├── succeed-7.xq │ │ │ │ │ ├── succeed-9.xq │ │ │ │ │ ├── succeed-4.xq │ │ │ │ │ ├── succeed-2.xq │ │ │ │ │ ├── succeed-10.xq │ │ │ │ │ ├── succeed-5.xq │ │ │ │ │ ├── succeed-6.xq │ │ │ │ │ ├── succeed-1.xq │ │ │ │ │ ├── succeed-3.xq │ │ │ │ │ ├── succeed-14.xq │ │ │ │ │ ├── succeed-8.xq │ │ │ │ │ ├── succeed-11.xq │ │ │ │ │ └── succeed-12.xq │ │ │ └── ExpectedTestResults │ │ │ │ ├── ShouldFail │ │ │ │ ├── succeed-10.txt │ │ │ │ ├── succeed-11-1.txt │ │ │ │ ├── succeed-11-2.txt │ │ │ │ ├── succeed-12-1.txt │ │ │ │ ├── succeed-12-2.txt │ │ │ │ ├── succeed-9-1.txt │ │ │ │ ├── succeed-9-2.txt │ │ │ │ ├── succeed-9-3.txt │ │ │ │ ├── fail-1.txt │ │ │ │ └── fail-2.txt │ │ │ │ └── ShouldSucceed │ │ │ │ ├── succeed-13.txt │ │ │ │ ├── succeed-6-1.txt │ │ │ │ ├── succeed-6-2.txt │ │ │ │ ├── succeed-7-1.txt │ │ │ │ ├── succeed-7-2.txt │ │ │ │ ├── succeed-8.txt │ │ │ │ ├── succeed-9.txt │ │ │ │ ├── succeed-11.txt │ │ │ │ ├── succeed-2-1.txt │ │ │ │ ├── succeed-2-2.txt │ │ │ │ ├── succeed-2-3.txt │ │ │ │ ├── succeed-2-4.txt │ │ │ │ ├── succeed-2-5.txt │ │ │ │ ├── succeed-2-6.txt │ │ │ │ ├── succeed-15.txt │ │ │ │ ├── succeed-1.txt │ │ │ │ └── succeed-14.txt │ │ └── xmlpatternsdiagnosticsts.pro │ ├── xmlpatternsvalidator │ │ ├── files │ │ │ ├── instance.xml │ │ │ ├── dateTime-with-microseconds.xml │ │ │ ├── substitution-group-valid.xml │ │ │ ├── substitution-group-invalid.xml │ │ │ ├── sa_valid_instance.xml │ │ │ ├── sa_invalid_instance.xml │ │ │ ├── indirect-include-b.xsd │ │ │ ├── indirect-include-c.xsd │ │ │ ├── indirect-redefine-b.xsd │ │ │ ├── indirect-redefine-c.xsd │ │ │ ├── indirect-import-b.xsd │ │ │ ├── indirect-import-c.xsd │ │ │ ├── fractiondigits.xml │ │ │ ├── indirect-datatype.xsd │ │ │ ├── fractiondigits-nodot.xml │ │ │ ├── fractiondigits-nonumber.xml │ │ │ ├── indirect-include-a.xsd │ │ │ ├── indirect-redefine-a.xsd │ │ │ ├── fractiondigits-invalid.xml │ │ │ ├── invalid_schema.xsd │ │ │ ├── valid_schema.xsd │ │ │ ├── indirect-import-a.xsd │ │ │ ├── other_valid_schema.xsd │ │ │ ├── dateTime-with-microseconds.xsd │ │ │ ├── substitution-group.xsd │ │ │ ├── fractiondigits.xsd │ │ │ └── complex-type-including-anonymous-type.xsd │ │ └── xmlpatternsvalidator.pro │ ├── qautoptr │ │ └── qautoptr.pro │ ├── cmake │ │ ├── cmake.pro │ │ └── CMakeLists.txt │ ├── qxmlitem │ │ └── qxmlitem.pro │ ├── qxmlname │ │ └── qxmlname.pro │ ├── qxmlnamepool │ │ └── qxmlnamepool.pro │ ├── qxmlschema │ │ └── qxmlschema.pro │ ├── qxmlserializer │ │ └── qxmlserializer.pro │ ├── qsourcelocation │ │ └── qsourcelocation.pro │ ├── qxmlresultitems │ │ └── qxmlresultitems.pro │ ├── xmlpatternsview │ │ ├── xmlpatternsview.pro │ │ └── view │ │ │ └── view.pro │ ├── qxmlschemavalidator │ │ ├── testdata │ │ │ └── QTBUG-77620.xml │ │ └── qxmlschemavalidator.pro │ ├── patternistheaders │ │ └── patternistheaders.pro │ ├── qxmlnodemodelindex │ │ └── qxmlnodemodelindex.pro │ ├── xmlpatternsschema │ │ └── xmlpatternsschema.pro │ ├── qabstractxmlreceiver │ │ └── qabstractxmlreceiver.pro │ ├── qabstractmessagehandler │ │ └── qabstractmessagehandler.pro │ ├── patternistexamplefiletree │ │ └── patternistexamplefiletree.pro │ ├── qsimplexmlnodemodel │ │ └── qsimplexmlnodemodel.pro │ ├── qabstractxmlforwarditerator │ │ └── qabstractxmlforwarditerator.pro │ ├── qabstracturiresolver │ │ └── qabstracturiresolver.pro │ ├── patternistexamples │ │ └── patternistexamples.pro │ ├── xmlpatternssdk │ │ └── docs │ │ │ ├── XMLIndenterExampleResult.xml │ │ │ └── XMLWriterExampleResult.xml │ ├── checkxmlfiles │ │ └── checkxmlfiles.pro │ ├── xmlpatterns.pri │ ├── qabstractxmlnodemodel │ │ ├── qabstractxmlnodemodel.pro │ │ └── tree.xml │ ├── qapplicationargumentparser │ │ └── qapplicationargumentparser.pro │ ├── xmlpatternsxslts │ │ └── xmlpatternsxslts.pro │ ├── xmlpatternsschemats │ │ ├── xmlpatternsschemats.pro │ │ └── TESTSUITE │ │ │ └── unifyCatalog.xsl │ └── xmlpatternsxqts │ │ ├── xmlpatternsxqts.pro │ │ └── summarizeBaseline.xsl ├── tests.pro ├── global │ └── global.cfg ├── shared │ └── util.pri └── README ├── .tag ├── examples ├── xmlpatterns │ ├── filetree │ │ ├── queries │ │ │ ├── wholeTree.xq │ │ │ └── listCPPFiles.xq │ │ ├── queries.qrc │ │ └── filetree.pro │ ├── xquery │ │ └── xquery.pro │ ├── recipes │ │ ├── files │ │ │ ├── allRecipes.xq │ │ │ ├── mushroomSoup.xq │ │ │ ├── preparationTimes.xq │ │ │ ├── liquidIngredientsInSoup.xq │ │ │ └── preparationLessThan30.xq │ │ ├── recipes.qrc │ │ └── recipes.pro │ ├── xmlpatterns.pro │ ├── schema │ │ ├── files │ │ │ ├── invalid_contact.xml │ │ │ ├── valid_contact.xml │ │ │ ├── invalid_order.xml │ │ │ ├── valid_order.xml │ │ │ ├── valid_recipe.xml │ │ │ ├── invalid_recipe.xml │ │ │ ├── order.xsd │ │ │ └── contact.xsd │ │ ├── schema.pro │ │ └── schema.qrc │ └── README └── examples.pro ├── qtxmlpatterns.pro ├── src ├── xmlpatterns │ ├── doc │ │ ├── snippets │ │ │ ├── patternist │ │ │ │ ├── bracesIncludedResult.xml │ │ │ │ ├── oneElementConstructor.xq │ │ │ │ ├── pathAB.xq │ │ │ │ ├── xsBooleanTrue.xq │ │ │ │ ├── anyHTMLElement.xq │ │ │ │ ├── bracesIncluded.xq │ │ │ │ ├── bracesOmitted.xq │ │ │ │ ├── docPlainHTML.xq │ │ │ │ ├── pathsAllParagraphs.xq │ │ │ │ ├── notIndented.xml │ │ │ │ ├── docPlainHTML2.xq │ │ │ │ ├── nextLastParagraph.xq │ │ │ │ ├── tablesInParagraphs.xq │ │ │ │ ├── emptyParagraphs.xq │ │ │ │ ├── paragraphsWithTables.xq │ │ │ │ ├── simpleHTML.xq │ │ │ │ ├── svgDocumentElement.xml │ │ │ │ ├── filterOnStep.xq │ │ │ │ ├── paragraphsExceptTheFiveFirst.xq │ │ │ │ ├── xsvgDocumentElement.xml │ │ │ │ ├── filterOnPath.xq │ │ │ │ ├── indented.xml │ │ │ │ ├── invalidLetOrderBy.xq │ │ │ │ ├── xmlStylesheet.xq │ │ │ │ ├── bracesOmittedResult.xml │ │ │ │ ├── firstParagraph.xq │ │ │ │ ├── nodeConstructorsInPaths.xq │ │ │ │ ├── letOrderBy.xq │ │ │ │ ├── nodeTestChildElement.xq │ │ │ │ ├── anyXLinkAttribute.xq │ │ │ │ ├── forClause.xq │ │ │ │ ├── forClause2.xq │ │ │ │ ├── simpleXHTML.xq │ │ │ │ ├── expressionInsideAttribute.xq │ │ │ │ ├── items.xq │ │ │ │ ├── escapeStringLiterals.xml │ │ │ │ ├── forClauseOnFeed.xq │ │ │ │ ├── introExample2.xq │ │ │ │ ├── mobeyDick.xml │ │ │ │ ├── introductionExample.xq │ │ │ │ ├── escapeCurlyBraces.xq │ │ │ │ ├── copyAttribute.xq │ │ │ │ ├── copyID.xq │ │ │ │ ├── escapeStringLiterals.xq │ │ │ │ ├── fnStringOnAttribute.xq │ │ │ │ ├── directTreeFragment.xq │ │ │ │ ├── twoSVGElements.xq │ │ │ │ ├── literalsAndOperators.xq │ │ │ │ ├── nodeConstructorsAreExpressions.xq │ │ │ │ ├── embedDataInXHTML.xq │ │ │ │ ├── embedDataInXHTML2.xq │ │ │ │ ├── introAcneRemover.xq │ │ │ │ ├── introFileHierarchy.xml │ │ │ │ ├── introNavigateFS.xq │ │ │ │ ├── computedTreeFragment.xq │ │ │ │ └── doc.txt │ │ │ └── qml │ │ │ │ └── xmlrole.xml │ │ └── images │ │ │ ├── recipes-example.png │ │ │ ├── schema-example.png │ │ │ ├── filetree_1-example.png │ │ │ ├── filetree_2-example.png │ │ │ ├── trafficinfo-example.png │ │ │ └── patternist-wordProcessor.png │ ├── projection │ │ └── projection.pri │ ├── schema │ │ ├── builtinschemas.qrc │ │ ├── doc │ │ │ ├── Any_diagram.dot │ │ │ ├── Assert_diagram.dot │ │ │ ├── Field_diagram.dot │ │ │ ├── Import_diagram.dot │ │ │ ├── Include_diagram.dot │ │ │ ├── Notation_diagram.dot │ │ │ ├── Selector_diagram.dot │ │ │ ├── LengthFacet_diagram.dot │ │ │ ├── AnyAttribute_diagram.dot │ │ │ ├── MaxLengthFacet_diagram.dot │ │ │ ├── MinLengthFacet_diagram.dot │ │ │ ├── PatternFacet_diagram.dot │ │ │ ├── EnumerationFacet_diagram.dot │ │ │ ├── TotalDigitsFacet_diagram.dot │ │ │ ├── WhiteSpaceFacet_diagram.dot │ │ │ ├── FractionDigitsFacet_diagram.dot │ │ │ ├── MaxExclusiveFacet_diagram.dot │ │ │ ├── MaxInclusiveFacet_diagram.dot │ │ │ ├── MinExclusiveFacet_diagram.dot │ │ │ ├── MinInclusiveFacet_diagram.dot │ │ │ ├── ReferredAttributeGroup_diagram.dot │ │ │ ├── Annotation_diagram.dot │ │ │ ├── List_diagram.dot │ │ │ ├── DefaultOpenContent_diagram.dot │ │ │ ├── LocalAttribute_diagram.dot │ │ │ ├── GlobalAttribute_diagram.dot │ │ │ ├── legend.dot │ │ │ ├── Union_diagram.dot │ │ │ ├── ComplexContent_diagram.dot │ │ │ ├── SimpleContent_diagram.dot │ │ │ ├── Alternative_diagram.dot │ │ │ ├── Key_diagram.dot │ │ │ ├── KeyRef_diagram.dot │ │ │ ├── Unique_diagram.dot │ │ │ ├── All_diagram.dot │ │ │ ├── LocalAll_diagram.dot │ │ │ ├── NamedGroup_diagram.dot │ │ │ ├── GlobalSimpleType_diagram.dot │ │ │ ├── LocalSimpleType_diagram.dot │ │ │ ├── ReferredGroup_diagram.dot │ │ │ ├── Redefine_diagram.dot │ │ │ ├── NamedAttributeGroup_diagram.dot │ │ │ ├── Choice_diagram.dot │ │ │ ├── Override_diagram.dot │ │ │ ├── Sequence_diagram.dot │ │ │ ├── LocalChoice_diagram.dot │ │ │ ├── LocalSequence_diagram.dot │ │ │ ├── SimpleContentExtension_diagram.dot │ │ │ ├── LocalElement_diagram.dot │ │ │ └── GlobalElement_diagram.dot │ │ └── schemas │ │ │ └── qt_attribution.json │ ├── acceltree │ │ └── acceltree.pri │ ├── configure.json │ ├── query.pri │ ├── janitors │ │ └── janitors.pri │ ├── common.pri │ ├── parser │ │ ├── winCEWorkaround.sed │ │ └── parser.pri │ ├── xmlpatterns.pro │ └── utils │ │ └── utils.pri ├── imports │ ├── imports.pro │ └── xmllistmodel │ │ ├── qmldir │ │ └── xmllistmodel.pro └── src.pro ├── configure.json ├── .gitmodules ├── .qmake.conf ├── tools ├── xmlpatternsvalidator │ └── xmlpatternsvalidator.pro ├── tools.pro └── xmlpatterns │ └── xmlpatterns.pro ├── sync.profile ├── dependencies.yaml └── dist ├── changes-5.9.0 ├── changes-5.8.0 ├── changes-5.12.0 ├── changes-5.13.0 ├── changes-5.14.0 ├── changes-5.14.1 ├── changes-5.12.1 ├── changes-5.13.1 ├── changes-5.11.3 ├── changes-5.12.2 ├── changes-5.12.3 ├── changes-5.12.4 ├── changes-5.12.5 ├── changes-5.13.2 ├── changes-5.0.1 ├── changes-5.0.2 ├── changes-5.10.0 ├── changes-5.11.0 ├── changes-5.1.0 ├── changes-5.9.1 ├── changes-5.9.2 ├── changes-5.9.3 ├── changes-5.9.5 ├── changes-5.6.3 ├── changes-5.9.4 ├── changes-5.9.6 ├── changes-5.1.1 ├── changes-5.11.2 └── changes-5.10.1 /tests/auto/qquickxmllistmodel/data/empty.xml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.tag: -------------------------------------------------------------------------------- 1 | d92538b3867a6e2bc297c1111ba0e5575e68e3ad 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/queries/oneElement.xq: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Usefndoc.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/baselines/emptySequence.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/auto/qxmlquery/data/oneElement.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/queries/completelyEmptyQuery.xq: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/queries/onePlusOne.xq: -------------------------------------------------------------------------------- 1 | 1 + 1 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/queries/wrongArity.xq: -------------------------------------------------------------------------------- 1 | fn:doc() 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/queries/zeroDivision.xq: -------------------------------------------------------------------------------- 1 | 1 div 0 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/LoadqueryviaFTP.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Useanativepath.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Useparamthrice.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Useparamtwice.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/baselines/onlyDocumentNode.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/input/prolog.xq: -------------------------------------------------------------------------------- 1 | doc("prolog.xml") 2 | -------------------------------------------------------------------------------- /tests/auto/qxmlquery/data/notWellformed.xml: -------------------------------------------------------------------------------- 1 | < 2 | -------------------------------------------------------------------------------- /tests/tests.pro: -------------------------------------------------------------------------------- 1 | TEMPLATE = subdirs 2 | SUBDIRS += auto 3 | -------------------------------------------------------------------------------- /examples/xmlpatterns/filetree/queries/wholeTree.xq: -------------------------------------------------------------------------------- 1 | $fileTree 2 | -------------------------------------------------------------------------------- /tests/auto/host.pro: -------------------------------------------------------------------------------- 1 | TEMPLATE=subdirs 2 | SUBDIRS=\ 3 | 4 | 5 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/input/singleElement.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/queries/concat.xq: -------------------------------------------------------------------------------- 1 | concat("abc", "def") 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/queries/typeError.xq: -------------------------------------------------------------------------------- 1 | 1 + "type error" 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Basicuseofoutputquerylast.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Bindanexternalvariable.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Loadqueryviadatascheme.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/QTBUG35897literalsequence.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stylesheets/documentElement.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stylesheets/queryAsStylesheet.xsl: -------------------------------------------------------------------------------- 1 | 1 + 1 2 | -------------------------------------------------------------------------------- /examples/examples.pro: -------------------------------------------------------------------------------- 1 | TEMPLATE = subdirs 2 | SUBDIRS += xmlpatterns 3 | -------------------------------------------------------------------------------- /qtxmlpatterns.pro: -------------------------------------------------------------------------------- 1 | requires(qtHaveModule(network)) 2 | load(qt_parts) 3 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/baselines/documentElementWithWS.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/baselines/singleElement.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/baselines/singleTextNode.xml: -------------------------------------------------------------------------------- 1 | a text node 2 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/baselines/textNodeAtomicValue.xml: -------------------------------------------------------------------------------- 1 | a3 2 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/baselines/threeAtomics.xml: -------------------------------------------------------------------------------- 1 | 1 2 Bam 3000 10 4 2 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/input/onlyDocumentNode.xq: -------------------------------------------------------------------------------- 1 | document{ () } 2 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/input/singleTextNode.xq: -------------------------------------------------------------------------------- 1 | text{"a text node"} 2 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/input/textNodeAtomicValue.xq: -------------------------------------------------------------------------------- 1 | a{3} 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/queries/onlyDocumentNode.xq: -------------------------------------------------------------------------------- 1 | document{ () } 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/queries/threeVariables.xq: -------------------------------------------------------------------------------- 1 | $var1, $var2, $var3 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Basicuseofoutputqueryfirst.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Invokewithparamthathasnovalue..txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Useasimplifiedstylesheetmodule.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/onequerywithaprecedingdash.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/bracesIncludedResult.xml: -------------------------------------------------------------------------------- 1 | 6 2 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/input/adjacentNodes.xq: -------------------------------------------------------------------------------- 1 | doc("adjacentNodes.xml") 2 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/input/classExample.xq: -------------------------------------------------------------------------------- 1 | doc("classExample.xml") 2 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/input/documentElementWithWS.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/input/elementsWithWS.xq: -------------------------------------------------------------------------------- 1 | doc('elementsWithWS.xml') 2 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/input/mixedContent.xq: -------------------------------------------------------------------------------- 1 | doc("mixedContent.xml") 2 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/input/simpleDocument.xq: -------------------------------------------------------------------------------- 1 | doc("simpleDocument.xml") 2 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/input/singleElement.xq: -------------------------------------------------------------------------------- 1 | doc("singleElement.xml") 2 | -------------------------------------------------------------------------------- /tests/auto/qxmlquery/pushBaselines/errorFunction.ref: -------------------------------------------------------------------------------- 1 | startOfSequence() 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/queries/invalidRegexp.xq: -------------------------------------------------------------------------------- 1 | tokenize("input", "\") 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/queries/openDocument.xq: -------------------------------------------------------------------------------- 1 | doc("simpleDocument.xml") 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Callanamedtemplateandusenofocus..txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Specifyanamedtemplatethatexists.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Useanexternalvariablemultipletimes..txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Usefndoctogetherwithnoformatfirst.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Usefndoctogetherwithnoformatlast.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/onequeryandaterminatingdashattheend.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/oneElementConstructor.xq: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/pathAB.xq: -------------------------------------------------------------------------------- 1 | doc('index.html')//p/span 2 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/xsBooleanTrue.xq: -------------------------------------------------------------------------------- 1 | xs:boolean("true") 2 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/baselines/K2-DirectConElemContent-46.xml: -------------------------------------------------------------------------------- 1 | 12 2 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/input/classExample.xml: -------------------------------------------------------------------------------- 1 |

Some Text

2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Bindanexternalvariablequeryappearinglast.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Invokeatemplateandusepassparameters..txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Specifyanamedtemplatethatdoesnotexists.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/TestSources/emptydoc.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/anyHTMLElement.xq: -------------------------------------------------------------------------------- 1 | doc('data.xml')/*:body 2 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/bracesIncluded.xq: -------------------------------------------------------------------------------- 1 | {sum((1, 2, 3))} 2 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/bracesOmitted.xq: -------------------------------------------------------------------------------- 1 | sum({(1, 2, 3)}) 2 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/docPlainHTML.xq: -------------------------------------------------------------------------------- 1 | doc("myPlainHTML.html")/body 2 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/pathsAllParagraphs.xq: -------------------------------------------------------------------------------- 1 | doc('index.html')//p 2 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/input/K2-DirectConElemContent-46.xq: -------------------------------------------------------------------------------- 1 | {1}{text{()}}{2} 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Ensureisuricanappearafterthequeryfilename.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Invokeversion.txt: -------------------------------------------------------------------------------- 1 | xmlpatterns version 0.1 using -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Invokewithparamthathastwoadjacentequalsigns..txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Runaquerywhichevaluatestotheemptysequence..txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-2.xq: -------------------------------------------------------------------------------- 1 | error() -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-7.xq: -------------------------------------------------------------------------------- 1 | error() -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-8.xq: -------------------------------------------------------------------------------- 1 | error() -------------------------------------------------------------------------------- /tests/auto/xmlpatternsvalidator/files/instance.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /configure.json: -------------------------------------------------------------------------------- 1 | { 2 | "subconfigs": [ 3 | "src/xmlpatterns" 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /examples/xmlpatterns/xquery/xquery.pro: -------------------------------------------------------------------------------- 1 | TEMPLATE = aux 2 | EXAMPLE_FILES = globalVariables 3 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/notIndented.xml: -------------------------------------------------------------------------------- 1 |

Some Text

2 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/baselines/mixedTopLevelContent.xml: -------------------------------------------------------------------------------- 1 | 1 2 34567 2 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/input/documentElementWithWS.xq: -------------------------------------------------------------------------------- 1 | doc('documentElementWithWS.xml') 2 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/input/indentedAdjacentNodes.xq: -------------------------------------------------------------------------------- 1 | doc("indentedAdjacentNodes.xml") 2 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/input/indentedMixedContent.xq: -------------------------------------------------------------------------------- 1 | doc("indentedMixedContent.xml") 2 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/input/threeAtomics.xq: -------------------------------------------------------------------------------- 1 | 1, 2, "Bam", 3e3, 5 + 5, data(4) 2 | -------------------------------------------------------------------------------- /tests/auto/qxmlquery/input.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/queries/literalsequence.xq: -------------------------------------------------------------------------------- 1 | ("someString", tokenize("a,b",",")) 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/queries/nonexistingCollection.xq: -------------------------------------------------------------------------------- 1 | collection("doesNotExistForSure") 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Passinanexternalvariablebutthequerydoesntuseit..txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-12.xq: -------------------------------------------------------------------------------- 1 | error() -------------------------------------------------------------------------------- /src/imports/imports.pro: -------------------------------------------------------------------------------- 1 | TEMPLATE = subdirs 2 | 3 | qtHaveModule(qml): SUBDIRS += xmllistmodel 4 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/docPlainHTML2.xq: -------------------------------------------------------------------------------- 1 | doc("myPlainHTML.html")/html/body 2 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/nextLastParagraph.xq: -------------------------------------------------------------------------------- 1 | doc('index.html')//p[last() - 1] 2 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/baselines/documentNodes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /tests/auto/qxmlquery/pushBaselines/emptySequence.ref: -------------------------------------------------------------------------------- 1 | startOfSequence() 2 | endOfSequence() 3 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/queries/emptySequence.xq: -------------------------------------------------------------------------------- 1 | (: This query evaluates to nothing. :) 2 | () 3 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/queries/invalidRegexpFlag.xq: -------------------------------------------------------------------------------- 1 | tokenize("input", "pattern", "INVALID") 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stylesheets/simplifiedStylesheetModule.xml: -------------------------------------------------------------------------------- 1 | some text 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/succeed-10.txt: -------------------------------------------------------------------------------- 1 | 312 -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/succeed-11-1.txt: -------------------------------------------------------------------------------- 1 | 321 -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/succeed-11-2.txt: -------------------------------------------------------------------------------- 1 | 123 -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/succeed-12-1.txt: -------------------------------------------------------------------------------- 1 | 321 -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/succeed-12-2.txt: -------------------------------------------------------------------------------- 1 | 312 -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/succeed-9-1.txt: -------------------------------------------------------------------------------- 1 | 231 -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/succeed-9-2.txt: -------------------------------------------------------------------------------- 1 | 132 -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/succeed-9-3.txt: -------------------------------------------------------------------------------- 1 | 312 -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-13.txt: -------------------------------------------------------------------------------- 1 | 1 -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-6-1.txt: -------------------------------------------------------------------------------- 1 | 123 -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-6-2.txt: -------------------------------------------------------------------------------- 1 | 321 -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-7-1.txt: -------------------------------------------------------------------------------- 1 | 321 -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-7-2.txt: -------------------------------------------------------------------------------- 1 | 123 -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-8.txt: -------------------------------------------------------------------------------- 1 | true -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-9.txt: -------------------------------------------------------------------------------- 1 | 1 -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-18.xq: -------------------------------------------------------------------------------- 1 | , 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-13.xq: -------------------------------------------------------------------------------- 1 | 1 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-15.xq: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-7.xq: -------------------------------------------------------------------------------- 1 | error() -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-9.xq: -------------------------------------------------------------------------------- 1 | 1 2 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/tablesInParagraphs.xq: -------------------------------------------------------------------------------- 1 | doc('index.html')/html/body/p/table 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/queries/externalStringVariable.xq: -------------------------------------------------------------------------------- 1 | concat("START ", $externalString, " END") 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/queries/externalVariableUsedTwice.xq: -------------------------------------------------------------------------------- 1 | $externalVariable, $externalVariable 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Invalidtemplatename.txt: -------------------------------------------------------------------------------- 1 | abc:def is an invalid Clark Name 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Runaquerywhichevaluatestoasingledocumentnodewithnochildren..txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-11.txt: -------------------------------------------------------------------------------- 1 | 1 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-2-1.txt: -------------------------------------------------------------------------------- 1 | 2 3 1 -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-2-2.txt: -------------------------------------------------------------------------------- 1 | 1 3 2 -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-2-3.txt: -------------------------------------------------------------------------------- 1 | 3 1 2 -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-2-4.txt: -------------------------------------------------------------------------------- 1 | 2 1 3 -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-2-5.txt: -------------------------------------------------------------------------------- 1 | 1 2 3 -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-2-6.txt: -------------------------------------------------------------------------------- 1 | 3 2 1 -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-4.xq: -------------------------------------------------------------------------------- 1 | error() 2 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/emptyParagraphs.xq: -------------------------------------------------------------------------------- 1 | doc('index.html')//p[string-length(.) = 0] 2 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/paragraphsWithTables.xq: -------------------------------------------------------------------------------- 1 | doc('index.html')/html/body/p[table] 2 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/simpleHTML.xq: -------------------------------------------------------------------------------- 1 | doc("index.html")/html/body/p[@class="example"] 2 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/svgDocumentElement.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/baselines/nodesAndWhitespaceAtomics.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-15.txt: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/filterOnStep.xq: -------------------------------------------------------------------------------- 1 | let $doc := doc('doc.txt') 2 | return $doc/doc/p/span[1] -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/paragraphsExceptTheFiveFirst.xq: -------------------------------------------------------------------------------- 1 | doc('index.html')//p[position() > 5] 2 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/xsvgDocumentElement.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/input/emptySequence.xq: -------------------------------------------------------------------------------- 1 | (: This query simply evaluate to an empty sequence. :) 2 | () 3 | -------------------------------------------------------------------------------- /tests/auto/qxmlquery/pushBaselines/concat.ref: -------------------------------------------------------------------------------- 1 | startOfSequence() 2 | atomicValue(abcdef) 3 | endOfSequence() 4 | -------------------------------------------------------------------------------- /tests/auto/qxmlquery/pushBaselines/onePlusOne.ref: -------------------------------------------------------------------------------- 1 | startOfSequence() 2 | atomicValue(2) 3 | endOfSequence() 4 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/MakesurequerypathsareresolvedagainstCWDnotthelocationoftheexecutable..txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsvalidator/files/dateTime-with-microseconds.xml: -------------------------------------------------------------------------------- 1 | 2009-12-16T23:14:10.823218Z 2 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/filterOnPath.xq: -------------------------------------------------------------------------------- 1 | let $doc := doc('doc.txt') 2 | return ($doc/doc/p/span)[1] 3 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/indented.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |

Some Text

5 |
6 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/invalidLetOrderBy.xq: -------------------------------------------------------------------------------- 1 | let $i := (2, 3, 1) 2 | order by $i[1] 3 | return $i 4 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/xmlStylesheet.xq: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/queries/flwor.xq: -------------------------------------------------------------------------------- 1 | for $a in (1, 4, 2) 2 | let $i := (1, 3, 2) 3 | order by $i 4 | return $i 5 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Invokewithinvalidparamvalue..txt: -------------------------------------------------------------------------------- 1 | Each binding must contain an equal sign. 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/fail-1.txt: -------------------------------------------------------------------------------- 1 | This is the expected output -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-2.xq: -------------------------------------------------------------------------------- 1 | unordered{1, 2, 3} 2 | 3 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/bracesOmittedResult.xml: -------------------------------------------------------------------------------- 1 | 2 | sum(1 2 3) -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/firstParagraph.xq: -------------------------------------------------------------------------------- 1 | doc("index.html")/html/body/p[@xml:id = "thatSpecialOne"] 2 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/nodeConstructorsInPaths.xq: -------------------------------------------------------------------------------- 1 | doc('feed.rss')//item/

{description/node()}

2 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/baselines/classExample.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |

Some Text

5 |
6 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/queries/errorFunction.xq: -------------------------------------------------------------------------------- 1 | fn:error(fn:QName('http://www.w3.org/2005/xqt-errors', 'err:FOER0000')) 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/queries/staticError.xq: -------------------------------------------------------------------------------- 1 | "This string literal is never closeThis string literal is never closed 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/queries/unavailableExternalVariable.xq: -------------------------------------------------------------------------------- 1 | declare variable $thisVariableIsNotBound external; 2 | 1 3 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldFail/fail-2.txt: -------------------------------------------------------------------------------- 1 | This is the expected output(fail-2) -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-15.xq: -------------------------------------------------------------------------------- 1 | xquery version "1.0"; 2 | fn:error() 3 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "testsuites"] 2 | path = tests/auto/3rdparty/testsuites 3 | url = ../qtxmlpatterns-testsuites.git 4 | -------------------------------------------------------------------------------- /.qmake.conf: -------------------------------------------------------------------------------- 1 | load(qt_build_config) 2 | CONFIG += warning_clean 3 | DEFINES += QT_NO_FOREACH 4 | 5 | MODULE_VERSION = 6.4.0 6 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Useoutputonafilewithexistingcontenttoensurewetruncatenotappendthecontentweproduce..txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-16.xq: -------------------------------------------------------------------------------- 1 | xquery version "1.0"; 2 | "a parse error 3 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsvalidator/files/substitution-group-valid.xml: -------------------------------------------------------------------------------- 1 | 2 | foo 3 | 4 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/queries/unsupportedCollation.xq: -------------------------------------------------------------------------------- 1 | declare default collation "http://example.com/UnsupportedCollation"; 2 | 1 3 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/letOrderBy.xq: -------------------------------------------------------------------------------- 1 | for $a in (8, -4, 2) 2 | let $b := ($a * -1, $a) 3 | order by $a 4 | return $b 5 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/nodeTestChildElement.xq: -------------------------------------------------------------------------------- 1 | doc('index.html')/descendant-or-self::element(p)/child::element(span) 2 | -------------------------------------------------------------------------------- /tests/auto/qxmlquery/pushBaselines/onlyDocumentNode.ref: -------------------------------------------------------------------------------- 1 | startOfSequence() 2 | startDocument() 3 | endDocument() 4 | endOfSequence() 5 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Invokewithmissingnameinparamarg..txt: -------------------------------------------------------------------------------- 1 | The variable name must be a valid NCName, which isn't. 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-1.xq: -------------------------------------------------------------------------------- 1 | "This xs:string literal is not terminated(syntax error) -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-11.xq: -------------------------------------------------------------------------------- 1 | "This xs:string literal is not terminated(syntax error) -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-5.xq: -------------------------------------------------------------------------------- 1 | "This xs:string literal is not terminated(syntax error) -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-6.xq: -------------------------------------------------------------------------------- 1 | "This xs:string literal is not terminated(syntax error) -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-10.xq: -------------------------------------------------------------------------------- 1 | "This query yields a type error, XPTY0004." + 1 -------------------------------------------------------------------------------- /tests/auto/xmlpatternsvalidator/files/substitution-group-invalid.xml: -------------------------------------------------------------------------------- 1 | 2 | foo 3 | 4 | -------------------------------------------------------------------------------- /tests/global/global.cfg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/images/recipes-example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtxmlpatterns/dev/src/xmlpatterns/doc/images/recipes-example.png -------------------------------------------------------------------------------- /src/xmlpatterns/doc/images/schema-example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtxmlpatterns/dev/src/xmlpatterns/doc/images/schema-example.png -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Invokewithcoloninvariablename..txt: -------------------------------------------------------------------------------- 1 | The variable name must be a valid NCName, which xs:name isn't. 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/initialtemplatemustbefollowedbyavalue.txt: -------------------------------------------------------------------------------- 1 | stylesheets/onlyRootTemplate.xsl is an invalid Clark Name 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/outputwithanonwritablefile.txt: -------------------------------------------------------------------------------- 1 | Failed to open file notWritable.out for writing: Permission denied 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-5.xq: -------------------------------------------------------------------------------- 1 | "Can't multiply an xs:string with an xs:integer." * 1 -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-6.xq: -------------------------------------------------------------------------------- 1 | "This xs:string literal is not terminated(syntax error) -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Unknownswitchd.txt: -------------------------------------------------------------------------------- 1 | "d" is an unknown argument. 2 | Pass -help for information about the command line. 3 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Useoutputtwice.txt: -------------------------------------------------------------------------------- 1 | "output" can only be used once. 2 | Pass -help for information about the command line. 3 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-10.xq: -------------------------------------------------------------------------------- 1 | "This query is fully valid, and consists of one string literal." -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-3.xq: -------------------------------------------------------------------------------- 1 | "This query is fully valid, and consists of one string literal." -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-4.xq: -------------------------------------------------------------------------------- 1 | "This query is fully valid, and consists of one string literal." -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-9.xq: -------------------------------------------------------------------------------- 1 | "This query is fully valid, and consists of one string literal." -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-1.xq: -------------------------------------------------------------------------------- 1 | "This XQuery query/XPath expression is a xs:string literal." -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-3.xq: -------------------------------------------------------------------------------- 1 | "This xs:string literal is not terminated(syntax error) 2 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/images/filetree_1-example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtxmlpatterns/dev/src/xmlpatterns/doc/images/filetree_1-example.png -------------------------------------------------------------------------------- /src/xmlpatterns/doc/images/filetree_2-example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtxmlpatterns/dev/src/xmlpatterns/doc/images/filetree_2-example.png -------------------------------------------------------------------------------- /src/xmlpatterns/doc/images/trafficinfo-example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtxmlpatterns/dev/src/xmlpatterns/doc/images/trafficinfo-example.png -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/anyXLinkAttribute.xq: -------------------------------------------------------------------------------- 1 | declare namespace xlink = "http://www.w3.org/1999/xlink"; 2 | doc('image.svg')//@xlink:* 3 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-1.txt: -------------------------------------------------------------------------------- 1 | This XQuery query/XPath expression is a xs:string literal. -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldFail/fail-14.xq: -------------------------------------------------------------------------------- 1 | "This query is fully valid, and consists of one xs:string literal." -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/baselines/simpleDocument.xml: -------------------------------------------------------------------------------- 1 | 2 | We try to simulate 189611 3 | 4 | -------------------------------------------------------------------------------- /tests/auto/qxmlquery/pushBaselines/oneElement.ref: -------------------------------------------------------------------------------- 1 | startOfSequence() 2 | startElement(e) 3 | namespaceBinding(empty) 4 | endElement() 5 | endOfSequence() 6 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Specifythesameparametertwicesamevalues.txt: -------------------------------------------------------------------------------- 1 | Each parameter must be unique, duplicated is specified at least twice. 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/initialtemplatedoesntworkwithXQueries..txt: -------------------------------------------------------------------------------- 1 | An initial template name cannot be specified when running an XQuery. 2 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/images/patternist-wordProcessor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qt/qtxmlpatterns/dev/src/xmlpatterns/doc/images/patternist-wordProcessor.png -------------------------------------------------------------------------------- /tests/auto/qxmlquery/pushBaselines/literalsequence.ref: -------------------------------------------------------------------------------- 1 | startOfSequence() 2 | atomicValue(someString) 3 | atomicValue(a) 4 | atomicValue(b) 5 | endOfSequence() 6 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Specifythesameparametertwicedifferentvalues.txt: -------------------------------------------------------------------------------- 1 | Each parameter must be unique, duplicated is specified at least twice. 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Wedontsupportformatanylonger.txt: -------------------------------------------------------------------------------- 1 | "format" is an unknown argument. 2 | Pass -help for information about the command line. 3 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-14.xq: -------------------------------------------------------------------------------- 1 | , 2 | 3 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-8.xq: -------------------------------------------------------------------------------- 1 | declare base-uri "abc"; 2 | ends-with(fn:static-base-uri(), "abc") 3 | -------------------------------------------------------------------------------- /src/src.pro: -------------------------------------------------------------------------------- 1 | TEMPLATE = subdirs 2 | SUBDIRS += xmlpatterns 3 | 4 | qtHaveModule(qml){ 5 | SUBDIRS += imports 6 | imports.depends = xmlpatterns 7 | } 8 | 9 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/forClause.xq: -------------------------------------------------------------------------------- 1 | for $i in(reverse(1 to 10)), 2 | $d in xs:integer(doc("numbers.xml")/numbers/number) 3 | return ($i + $d) 4 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/forClause2.xq: -------------------------------------------------------------------------------- 1 | for $i in(reverse(1 to 10)), 2 | $d in xs:integer(doc("numbers.xml")/numbers/number) 3 | return $i + $d 4 | -------------------------------------------------------------------------------- /tests/auto/qautoptr/qautoptr.pro: -------------------------------------------------------------------------------- 1 | TARGET = tst_qautoptr 2 | CONFIG += testcase 3 | SOURCES += tst_qautoptr.cpp 4 | QT = core testlib 5 | include(../xmlpatterns.pri) 6 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/queries/simpleLibraryModule.xq: -------------------------------------------------------------------------------- 1 | module namespace prefix = "http://example.com"; 2 | declare function prefix:myFunction() 3 | { 4 | 1 5 | }; 6 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Specifytwodifferentquerynames.txt: -------------------------------------------------------------------------------- 1 | can occur at most 1 times 2 | Pass -help for information about the command line. 3 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-11.xq: -------------------------------------------------------------------------------- 1 | xquery version "1.0"; 2 | declare default collation "xspanish"; 3 | 1 4 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/simpleXHTML.xq: -------------------------------------------------------------------------------- 1 | declare namespace x = "http://www.w3.org/1999/xhtml/"; 2 | doc("index.html")/x:html/x:body/x:p[@class="example"] 3 | -------------------------------------------------------------------------------- /tests/auto/cmake/cmake.pro: -------------------------------------------------------------------------------- 1 | 2 | # Cause make to do nothing. 3 | TEMPLATE = subdirs 4 | 5 | CMAKE_QT_MODULES_UNDER_TEST = xmlpatterns 6 | 7 | CONFIG += ctest_testcase 8 | -------------------------------------------------------------------------------- /tests/auto/qxmlitem/qxmlitem.pro: -------------------------------------------------------------------------------- 1 | TARGET = tst_qxmlitem 2 | CONFIG += testcase 3 | QT += testlib 4 | SOURCES += tst_qxmlitem.cpp 5 | 6 | include (../xmlpatterns.pri) 7 | -------------------------------------------------------------------------------- /tests/auto/qxmlname/qxmlname.pro: -------------------------------------------------------------------------------- 1 | TARGET = tst_qxmlname 2 | CONFIG += testcase 3 | QT += testlib 4 | SOURCES += tst_qxmlname.cpp 5 | 6 | include (../xmlpatterns.pri) 7 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Unknownswitchunknownswitch.txt: -------------------------------------------------------------------------------- 1 | "unknown-switch" is an unknown argument. 2 | Pass -help for information about the command line. 3 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/Queries/XQuery/ShouldSucceed/succeed-12.xq: -------------------------------------------------------------------------------- 1 | xquery version "1.0"; 2 | "This query evaluates to arbitrary output", 1, 2, 3 3 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/expressionInsideAttribute.xq: -------------------------------------------------------------------------------- 1 | declare variable $additionalClass := "example"; 2 |

3 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/items.xq: -------------------------------------------------------------------------------- 1 | , 2 | xs:base64Binary("FFFF"), 3 | current-date(), 4 | 3e3, (: A floating point value :) 5 | attribute {"name"} {()} 6 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/escapeStringLiterals.xml: -------------------------------------------------------------------------------- 1 |

"I hate quotations" -- Ralph Waldo Emerson" 2 | '"I hate quotations"" -- Ralph Waldo Emerson"', appeared above

-------------------------------------------------------------------------------- /tests/auto/qxmlformatter/baselines/elementsWithWS.xml: -------------------------------------------------------------------------------- 1 | 2 | someText 3 | 4 | somee text 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Callfnerror.txt: -------------------------------------------------------------------------------- 1 | Error FOER0000 in file:///home/fenglich/dev/qt-xslt/tests/auto/xmlpatterns/queries/errorFunction.xq, at line 1, column 1: 2 | -------------------------------------------------------------------------------- /src/imports/xmllistmodel/qmldir: -------------------------------------------------------------------------------- 1 | module QtQuick.XmlListModel 2 | plugin qmlxmllistmodelplugin 3 | classname QmlXmlListModelPlugin 4 | typeinfo plugins.qmltypes 5 | designersupported 6 | -------------------------------------------------------------------------------- /src/xmlpatterns/projection/projection.pri: -------------------------------------------------------------------------------- 1 | SOURCES += $$PWD/qdocumentprojector.cpp 2 | 3 | HEADERS += $$PWD/qdocumentprojector_p.h \ 4 | $$PWD/qprojectedexpression_p.h 5 | -------------------------------------------------------------------------------- /tests/auto/qxmlnamepool/qxmlnamepool.pro: -------------------------------------------------------------------------------- 1 | TARGET = tst_qxmlnamepool 2 | CONFIG += testcase 3 | QT += testlib 4 | SOURCES += tst_qxmlnamepool.cpp 5 | 6 | include (../xmlpatterns.pri) 7 | -------------------------------------------------------------------------------- /tests/auto/qxmlschema/qxmlschema.pro: -------------------------------------------------------------------------------- 1 | TARGET = tst_qxmlschema 2 | CONFIG += testcase 3 | SOURCES += tst_qxmlschema.cpp 4 | QT += network testlib 5 | 6 | include (../xmlpatterns.pri) 7 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/initialtemplatemustbefollowedbyavalue2.txt: -------------------------------------------------------------------------------- 1 | "initial-template" must be followed by a value. 2 | Pass -help for information about the command line. 3 | -------------------------------------------------------------------------------- /examples/xmlpatterns/recipes/files/allRecipes.xq: -------------------------------------------------------------------------------- 1 | (: Select all recipes. :) 2 | declare variable $inputDocument external; 3 | 4 | doc($inputDocument)/cookbook/recipe/

{string(title)}

5 | -------------------------------------------------------------------------------- /tests/auto/qxmlserializer/qxmlserializer.pro: -------------------------------------------------------------------------------- 1 | TARGET = tst_qxmlserializer 2 | CONFIG += testcase 3 | QT += testlib 4 | SOURCES += tst_qxmlserializer.cpp 5 | 6 | include (../xmlpatterns.pri) 7 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/queries/staticBaseURI.xq: -------------------------------------------------------------------------------- 1 | (: We convert the value to xs:string such that we can use it 2 | with QXmlQuery::evaluateTo(QStringList) :) 3 | string(static-base-uri()) 4 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/TestSuite/ExpectedTestResults/ShouldSucceed/succeed-14.txt: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/forClauseOnFeed.xq: -------------------------------------------------------------------------------- 1 | for $item in doc('feed.rss')//item 2 | return

3 | { 4 | $item/description/node() 5 | } 6 |

7 | -------------------------------------------------------------------------------- /tests/auto/qsourcelocation/qsourcelocation.pro: -------------------------------------------------------------------------------- 1 | TARGET = tst_qsourcelocation 2 | CONFIG += testcase 3 | QT += testlib 4 | SOURCES += tst_qsourcelocation.cpp 5 | 6 | include (../xmlpatterns.pri) 7 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/input/documentNodes.xq: -------------------------------------------------------------------------------- 1 | document{()}, 2 | document{()}, 3 | document{()}, 4 | document{}, 5 | document{}, 6 | document{}, 7 | document{()} 8 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/input/simpleDocument.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | We try to simulate 189611 4 | 5 | -------------------------------------------------------------------------------- /tests/auto/qxmlresultitems/qxmlresultitems.pro: -------------------------------------------------------------------------------- 1 | TARGET = tst_qxmlresultitems 2 | CONFIG += testcase 3 | QT += testlib 4 | SOURCES += tst_qxmlresultitems.cpp 5 | 6 | include (../xmlpatterns.pri) 7 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/onlynoformat.txt: -------------------------------------------------------------------------------- 1 | query/stylesheet must occur at least 1 times, therefore 0 times is insufficient. 2 | Pass -help for information about the command line. 3 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stylesheets/simplifiedStylesheetModule.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsvalidator/files/sa_valid_instance.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsview/xmlpatternsview.pro: -------------------------------------------------------------------------------- 1 | CONFIG += testcase 2 | QT += testlib 3 | SOURCES += tst_xmlpatternsview.cpp 4 | 5 | include (../xmlpatterns.pri) 6 | 7 | TARGET = tst_xmlpatternsview 8 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/builtinschemas.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | schemas/xml.xsd 4 | 5 | 6 | -------------------------------------------------------------------------------- /tests/auto/qxmlschemavalidator/testdata/QTBUG-77620.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/queries/simpleDocument.xml: -------------------------------------------------------------------------------- 1 | text node 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Asingledashthatsinvalid.txt: -------------------------------------------------------------------------------- 1 | query/stylesheet must occur at least 1 times, therefore 0 times is insufficient. 2 | Pass -help for information about the command line. 3 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/PassininvalidURI.txt: -------------------------------------------------------------------------------- 1 | Error XPST0003 in data:application/xml;base64,PGUvg===, at line 1, column 3: syntax error, unexpected unknown keyword, expecting T_POSITION_SET 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Specifynoargumentsatall..txt: -------------------------------------------------------------------------------- 1 | query/stylesheet must occur at least 1 times, therefore 0 times is insufficient. 2 | Pass -help for information about the command line. 3 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsvalidator/files/sa_invalid_instance.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /tools/xmlpatternsvalidator/xmlpatternsvalidator.pro: -------------------------------------------------------------------------------- 1 | QT = core xmlpatterns 2 | 3 | SOURCES = main.cpp 4 | HEADERS = main.h 5 | 6 | QMAKE_TARGET_DESCRIPTION = "Qt XML Schema Validator" 7 | load(qt_tool) 8 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/introExample2.xq: -------------------------------------------------------------------------------- 1 | 2 | { 3 | doc($file)/bib/book[publisher = $publisher and @year > $year]/{title} 4 | } 5 | 6 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/mobeyDick.xml: -------------------------------------------------------------------------------- 1 | 3 | Mobey Dick ... 4 | 5 | -------------------------------------------------------------------------------- /sync.profile: -------------------------------------------------------------------------------- 1 | %modules = ( # path to module name map 2 | "QtXmlPatterns" => "$basedir/src/xmlpatterns", 3 | ); 4 | %moduleheaders = ( # restrict the module headers to those found in relative path 5 | ); 6 | -------------------------------------------------------------------------------- /tests/auto/patternistheaders/patternistheaders.pro: -------------------------------------------------------------------------------- 1 | TARGET = tst_patternistheaders 2 | CONFIG += testcase 3 | SOURCES += tst_patternistheaders.cpp 4 | QT = core testlib 5 | 6 | include (../xmlpatterns.pri) 7 | -------------------------------------------------------------------------------- /tests/auto/qxmlnodemodelindex/qxmlnodemodelindex.pro: -------------------------------------------------------------------------------- 1 | TARGET = tst_qxmlnodemodelindex 2 | CONFIG += testcase 3 | QT += testlib 4 | SOURCES += tst_qxmlnodemodelindex.cpp 5 | 6 | include (../xmlpatterns.pri) 7 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Evaluateastylesheetwithnocontextdocument.txt: -------------------------------------------------------------------------------- 1 | When a stylesheet is used, a document must be specified as a focus, or an initial template name must be specified, or both. 2 | -------------------------------------------------------------------------------- /examples/xmlpatterns/filetree/queries.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | queries/listCPPFiles.xq 5 | queries/wholeTree.xq 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/introductionExample.xq: -------------------------------------------------------------------------------- 1 | 2 | {doc("library.xml")/bib/book[publisher="Addison-Wesley" and @year>1991]/{title}} 3 | 4 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Passingasingledashisinsufficient.txt: -------------------------------------------------------------------------------- 1 | query/stylesheet must occur at least 1 times, therefore 0 times is insufficient. 2 | Pass -help for information about the command line. 3 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsschema/xmlpatternsschema.pro: -------------------------------------------------------------------------------- 1 | TARGET = tst_xmlpatternsschema 2 | CONFIG += testcase 3 | QT += testlib 4 | 5 | SOURCES += tst_xmlpatternsschema.cpp \ 6 | 7 | include (../xmlpatterns.pri) 8 | 9 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/escapeCurlyBraces.xq: -------------------------------------------------------------------------------- 1 | 2 | This is one left followed by one right curly brace: {{ }} 3 | Here they are again, but with character references: { } 4 | 5 | -------------------------------------------------------------------------------- /tests/auto/qabstractxmlreceiver/qabstractxmlreceiver.pro: -------------------------------------------------------------------------------- 1 | TARGET = tst_qabstractxmlreceiver 2 | CONFIG += testcase 3 | SOURCES += tst_qabstractxmlreceiver.cpp 4 | QT = core testlib 5 | 6 | include (../xmlpatterns.pri) 7 | -------------------------------------------------------------------------------- /tests/auto/qquickxmllistmodel/data/roleCrash.qml: -------------------------------------------------------------------------------- 1 | import QtQuick 2.0 2 | import QtQuick.XmlListModel 2.0 3 | 4 | XmlListModel { 5 | id: model 6 | XmlRole {} 7 | Component.onCompleted: model.roles = 0 8 | } 9 | -------------------------------------------------------------------------------- /tests/auto/qxmlschemavalidator/qxmlschemavalidator.pro: -------------------------------------------------------------------------------- 1 | TARGET = tst_qxmlschemavalidator 2 | CONFIG += testcase 3 | SOURCES += tst_qxmlschemavalidator.cpp 4 | QT += network testlib 5 | 6 | include (../xmlpatterns.pri) 7 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stylesheets/bool070.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/copyAttribute.xq: -------------------------------------------------------------------------------- 1 | 2 | 3 |

4 | { 5 | doc('feed.rss')/rss/@version 6 | } 7 |

8 | 9 | 10 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Triggerastaticerror..txt: -------------------------------------------------------------------------------- 1 | Error XPST0003 in file:///home/fenglich/dev/qt-xslt/tests/auto/xmlpatterns/queries/staticError.xq, at line 1, column 1: syntax error, unexpected unknown keyword 2 | -------------------------------------------------------------------------------- /dependencies.yaml: -------------------------------------------------------------------------------- 1 | dependencies: 2 | ../qtbase: 3 | ref: 089d54f06ff327f5212cb08fdbcb540066357dd5 4 | required: true 5 | ../qtdeclarative: 6 | ref: 406f15ce0e2707452462ff73b2d660ece960623f 7 | required: false 8 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/Any_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph Any { 2 | mindist = 2.0 3 | 1 -> 2 [label="annotation"] 4 | 1 [shape=doublecircle, style=filled, color=blue] 5 | 2 [shape=doublecircle, style=filled, color=green] 6 | } 7 | -------------------------------------------------------------------------------- /tests/auto/qabstractmessagehandler/qabstractmessagehandler.pro: -------------------------------------------------------------------------------- 1 | TARGET = tst_qabstractmessagehandler 2 | CONFIG += testcase 3 | SOURCES += tst_qabstractmessagehandler.cpp 4 | QT = core testlib 5 | 6 | include (../xmlpatterns.pri) 7 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/qxmlformatter.pro: -------------------------------------------------------------------------------- 1 | TARGET = tst_qxmlformatter 2 | CONFIG += testcase 3 | QT += testlib 4 | SOURCES += tst_qxmlformatter.cpp 5 | 6 | TESTDATA = baselines/* input/* 7 | 8 | include (../xmlpatterns.pri) 9 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/Assert_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph Assert { 2 | mindist = 2.0 3 | 1 -> 2 [label="annotation"] 4 | 1 [shape=doublecircle, style=filled, color=blue] 5 | 2 [shape=doublecircle, style=filled, color=green] 6 | } 7 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/Field_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph Field { 2 | mindist = 2.0 3 | 1 -> 2 [label="annotation"] 4 | 1 [shape=doublecircle, style=filled, color=blue] 5 | 2 [shape=doublecircle, style=filled, color=green] 6 | } 7 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/Import_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph Import { 2 | mindist = 2.0 3 | 1 -> 2 [label="annotation"] 4 | 1 [shape=doublecircle, style=filled, color=blue] 5 | 2 [shape=doublecircle, style=filled, color=green] 6 | } 7 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/input/mixedContent.xml: -------------------------------------------------------------------------------- 1 |

char1

char2

char3char3

char4

char1

char2

char3char3

2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Notwellformedinstancedocumentcausescrashincoloringcode..txt: -------------------------------------------------------------------------------- 1 | Error FODC0002 in file:///home/fenglich/dev/qt-45/tests/auto/xmlpatterns/stylesheets/bool070.xml, at line 1, column 9: Unexpected '<'. 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/xmlpatterns.pro: -------------------------------------------------------------------------------- 1 | TARGET = tst_xmlpatterns 2 | CONFIG += testcase 3 | QT += network testlib 4 | SOURCES += tst_xmlpatterns.cpp \ 5 | ../qxmlquery/TestFundament.cpp 6 | 7 | include (../xmlpatterns.pri) 8 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/copyID.xq: -------------------------------------------------------------------------------- 1 | (: Copy the value of xml:id attribute from other.html. This is a comment by the way! :) 2 | 4 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/escapeStringLiterals.xq: -------------------------------------------------------------------------------- 1 |

2 | { 3 | """I hate quotations"" -- Ralph Waldo Emerson""", 4 | " ", 5 | '''"I hate quotations"" -- Ralph Waldo Emerson"'', appeared above' 6 | } 7 |

8 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/fnStringOnAttribute.xq: -------------------------------------------------------------------------------- 1 | 2 | 3 |

4 | { 5 | string(doc('feed.rss')/rss/@version) 6 | } 7 |

8 | 9 | 10 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/Include_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph Include { 2 | mindist = 2.0 3 | 1 -> 2 [label="annotation"] 4 | 1 [shape=doublecircle, style=filled, color=blue] 5 | 2 [shape=doublecircle, style=filled, color=green] 6 | } 7 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/Notation_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph Notation { 2 | mindist = 2.0 3 | 1 -> 2 [label="annotation"] 4 | 1 [shape=doublecircle, style=filled, color=blue] 5 | 2 [shape=doublecircle, style=filled, color=green] 6 | } 7 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/Selector_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph Selector { 2 | mindist = 2.0 3 | 1 -> 2 [label="annotation"] 4 | 1 [shape=doublecircle, style=filled, color=blue] 5 | 2 [shape=doublecircle, style=filled, color=green] 6 | } 7 | -------------------------------------------------------------------------------- /tests/auto/patternistexamplefiletree/patternistexamplefiletree.pro: -------------------------------------------------------------------------------- 1 | TARGET = tst_patternistexamplefiletree 2 | CONFIG += testcase 3 | SOURCES += tst_patternistexamplefiletree.cpp 4 | QT = core testlib 5 | 6 | include (../xmlpatterns.pri) 7 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Openanonexistingcollection..txt: -------------------------------------------------------------------------------- 1 | Error FODC0004 in file:///home/fenglich/dev/qt-45/tests/auto/xmlpatterns/queries/nonexistingCollection.xq, at line 1, column 1: doesNotExistForSure cannot be retrieved 2 | -------------------------------------------------------------------------------- /tools/tools.pro: -------------------------------------------------------------------------------- 1 | TEMPLATE = subdirs 2 | QT_FOR_CONFIG += xmlpatterns-private 3 | 4 | !android|android_app { 5 | SUBDIRS += xmlpatterns 6 | qtConfig(xml-schema) { 7 | SUBDIRS += xmlpatternsvalidator 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/LengthFacet_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph LengthFacet { 2 | mindist = 2.0 3 | 1 -> 2 [label="annotation"] 4 | 1 [shape=doublecircle, style=filled, color=blue] 5 | 2 [shape=doublecircle, style=filled, color=green] 6 | } 7 | -------------------------------------------------------------------------------- /tests/auto/qsimplexmlnodemodel/qsimplexmlnodemodel.pro: -------------------------------------------------------------------------------- 1 | TARGET = tst_qsimplexmlnodemodel 2 | CONFIG += testcase 3 | QT += testlib 4 | SOURCES += tst_qsimplexmlnodemodel.cpp 5 | HEADERS += TestSimpleNodeModel.h 6 | include (../xmlpatterns.pri) 7 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Anunboundexternalvariable.txt: -------------------------------------------------------------------------------- 1 | Error XPST0008 in file:///home/fenglich/dev/qt-xslt/tests/auto/xmlpatterns/queries/externalVariable.xq, at line 1, column 69: No variable with name externalVariable exists 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/XQuerydataXQuerykeywordmessagemarkups.txt: -------------------------------------------------------------------------------- 1 | Error FOAR0001 in file:///home/fenglich/dev/qt-xslt/tests/auto/xmlpatterns/queries/zeroDivision.xq, at line 1, column 1: Division (div) by zero (0) is undefined. 2 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/directTreeFragment.xq: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | some text 7 | 8 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/AnyAttribute_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph AnyAttribute { 2 | mindist = 2.0 3 | 1 -> 2 [label="annotation"] 4 | 1 [shape=doublecircle, style=filled, color=blue] 5 | 2 [shape=doublecircle, style=filled, color=green] 6 | } 7 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/MaxLengthFacet_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph MaxLengthFacet { 2 | mindist = 2.0 3 | 1 -> 2 [label="annotation"] 4 | 1 [shape=doublecircle, style=filled, color=blue] 5 | 2 [shape=doublecircle, style=filled, color=green] 6 | } 7 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/MinLengthFacet_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph MinLengthFacet { 2 | mindist = 2.0 3 | 1 -> 2 [label="annotation"] 4 | 1 [shape=doublecircle, style=filled, color=blue] 5 | 2 [shape=doublecircle, style=filled, color=green] 6 | } 7 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/PatternFacet_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph PatternFacet { 2 | mindist = 2.0 3 | 1 -> 2 [label="annotation"] 4 | 1 [shape=doublecircle, style=filled, color=blue] 5 | 2 [shape=doublecircle, style=filled, color=green] 6 | } 7 | -------------------------------------------------------------------------------- /tests/auto/qabstractxmlforwarditerator/qabstractxmlforwarditerator.pro: -------------------------------------------------------------------------------- 1 | TARGET = tst_qabstractxmlforwarditerator 2 | CONFIG += testcase 3 | SOURCES += tst_qabstractxmlforwarditerator.cpp 4 | QT = core testlib 5 | 6 | include (../xmlpatterns.pri) 7 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/queries/README: -------------------------------------------------------------------------------- 1 | The queries in this directory are used by several tests, at least: cli/ and 2 | qxmlquery/. When adding queries, make sure the correct baselines have been 3 | generated for the auto tests that use them. 4 | 5 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Notwellformedstylesheetcausescrashincoloringcode..txt: -------------------------------------------------------------------------------- 1 | Error XTSE0010 in file:///home/fenglich/dev/qt-xslt/tests/auto/xmlpatterns/stylesheets/notWellformed.xsl, at line 4, column 9: Parse error: Unexpected '<'. 2 | -------------------------------------------------------------------------------- /examples/xmlpatterns/recipes/files/mushroomSoup.xq: -------------------------------------------------------------------------------- 1 | (: All ingredients for Mushroom Soup. :) 2 | declare variable $inputDocument external; 3 | 4 | doc($inputDocument)/cookbook/recipe[@xml:id = "MushroomSoup"]/ingredient/ 5 |

{@name, @quantity}

6 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/EnumerationFacet_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph EnumerationFacet { 2 | mindist = 2.0 3 | 1 -> 2 [label="annotation"] 4 | 1 [shape=doublecircle, style=filled, color=blue] 5 | 2 [shape=doublecircle, style=filled, color=green] 6 | } 7 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/TotalDigitsFacet_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph TotalDigitsFacet { 2 | mindist = 2.0 3 | 1 -> 2 [label="annotation"] 4 | 1 [shape=doublecircle, style=filled, color=blue] 5 | 2 [shape=doublecircle, style=filled, color=green] 6 | } 7 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/WhiteSpaceFacet_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph WhiteSpaceFacet { 2 | mindist = 2.0 3 | 1 -> 2 [label="annotation"] 4 | 1 [shape=doublecircle, style=filled, color=blue] 5 | 2 [shape=doublecircle, style=filled, color=green] 6 | } 7 | -------------------------------------------------------------------------------- /tests/auto/qabstracturiresolver/qabstracturiresolver.pro: -------------------------------------------------------------------------------- 1 | TARGET = tst_qabstracturiresolver 2 | CONFIG += testcase 3 | SOURCES += tst_qabstracturiresolver.cpp 4 | HEADERS += TestURIResolver.h 5 | QT = core testlib 6 | 7 | include (../xmlpatterns.pri) 8 | -------------------------------------------------------------------------------- /tests/auto/qquickxmllistmodel/data/proxyCrash.qml: -------------------------------------------------------------------------------- 1 | import QtQuick 2.0 2 | import QtQuick.XmlListModel 2.0 3 | import SortFilterProxyModel 1.0 4 | 5 | SortFilterProxyModel { 6 | source: XmlListModel { 7 | XmlRole { } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Evaluatealibrarymodule.txt: -------------------------------------------------------------------------------- 1 | Error XPST0003 in file:///home/fenglich/dev/qt-xslt/tests/auto/xmlpatterns/queries/simpleLibraryModule.xq, at line 1, column 17: syntax error, unexpected namespace, expecting end of file 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/PassinastylesheetfilewhichcontainsanXQueryquery.txt: -------------------------------------------------------------------------------- 1 | Error XTSE0010 in file:///home/fenglich/dev/qt-xslt/tests/auto/xmlpatterns/stylesheets/queryAsStylesheet.xsl, at line 1, column 1: Parse error: Start tag expected. 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/XQueryexpressionmessagemarkups.txt: -------------------------------------------------------------------------------- 1 | Error FORX0002 in file:///home/fenglich/dev/qt-xslt/tests/auto/xmlpatterns/queries/invalidRegexp.xq, at line 1, column 1: \ is an invalid regular expression pattern: unexpected end 2 | -------------------------------------------------------------------------------- /examples/xmlpatterns/recipes/files/preparationTimes.xq: -------------------------------------------------------------------------------- 1 | (: All recipes with preparation times. :) 2 | declare variable $inputDocument external; 3 | 4 | doc($inputDocument)/cookbook/recipe/ 5 | 6 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/twoSVGElements.xq: -------------------------------------------------------------------------------- 1 | declare namespace s = "http://www.w3.org/2000/svg"; 2 | declare default element namespace "http://www.w3.org/2000/svg"; 3 | let $doc := doc('image.svg') 4 | return ($doc/svg, 5 | $doc/s:svg) 6 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/FractionDigitsFacet_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph FractionDigitsFacet { 2 | mindist = 2.0 3 | 1 -> 2 [label="annotation"] 4 | 1 [shape=doublecircle, style=filled, color=blue] 5 | 2 [shape=doublecircle, style=filled, color=green] 6 | } 7 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/MaxExclusiveFacet_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph MaxExclusiveFacet { 2 | mindist = 2.0 3 | 1 -> 2 [label="annotation"] 4 | 1 [shape=doublecircle, style=filled, color=blue] 5 | 2 [shape=doublecircle, style=filled, color=green] 6 | } 7 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/MaxInclusiveFacet_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph MaxInclusiveFacet { 2 | mindist = 2.0 3 | 1 -> 2 [label="annotation"] 4 | 1 [shape=doublecircle, style=filled, color=blue] 5 | 2 [shape=doublecircle, style=filled, color=green] 6 | } 7 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/MinExclusiveFacet_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph MinExclusiveFacet { 2 | mindist = 2.0 3 | 1 -> 2 [label="annotation"] 4 | 1 [shape=doublecircle, style=filled, color=blue] 5 | 2 [shape=doublecircle, style=filled, color=green] 6 | } 7 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/MinInclusiveFacet_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph MinInclusiveFacet { 2 | mindist = 2.0 3 | 1 -> 2 [label="annotation"] 4 | 1 [shape=doublecircle, style=filled, color=blue] 5 | 2 [shape=doublecircle, style=filled, color=green] 6 | } 7 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/input/elementsWithWS.xml: -------------------------------------------------------------------------------- 1 | 2 | someText 3 | 4 | somee text 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/queries/externalVariable.xq: -------------------------------------------------------------------------------- 1 | declare variable $externalVariableAsInt as xs:integer := xs:integer($externalVariable); 2 | $externalVariable, $externalVariableAsInt + 3, {$externalVariable}, $externalVariable instance of xs:string 3 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/literalsAndOperators.xq: -------------------------------------------------------------------------------- 1 | declare variable $date := fn:current-date(); (: This line should not be part of the example. It exists in order to make the query valid. :) 2 | fn:current-date() - $date > xs:dayTimeDuration("P365D") 3 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/nodeConstructorsAreExpressions.xq: -------------------------------------------------------------------------------- 1 | let $docURI := 'maybeNotWellformed.xml' 2 | return if(doc-available($docURI)) 3 | then doc($docURI)//p/{./node()} 4 | else Failed to load {$docURI} 5 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/XQuerytypemessagemarkups.txt: -------------------------------------------------------------------------------- 1 | Error XPTY0004 in file:///home/fenglich/dev/qt-xslt/tests/auto/xmlpatterns/queries/typeError.xq, at line 1, column 1: Operator + cannot be used on atomic values of type xs:integer and xs:string. 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsvalidator/xmlpatternsvalidator.pro: -------------------------------------------------------------------------------- 1 | TARGET = tst_xmlpatternsvalidator 2 | CONFIG += testcase 3 | QT += testlib 4 | SOURCES += tst_xmlpatternsvalidator.cpp \ 5 | ../qxmlquery/TestFundament.cpp 6 | 7 | include (../xmlpatterns.pri) 8 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/ReferredAttributeGroup_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph ReferredAttributeGroup { 2 | mindist = 2.0 3 | 1 -> 2 [label="annotation"] 4 | 1 [shape=doublecircle, style=filled, color=blue] 5 | 2 [shape=doublecircle, style=filled, color=green] 6 | } 7 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Passingtwodashesthelastisinterpretedasafilename.txt: -------------------------------------------------------------------------------- 1 | Error FODC0002 in file:///home/fenglich/dev/qt-xslt/tests/auto/xmlpatterns/-: Error opening file:///home/fenglich/dev/qt-xslt/tests/auto/xmlpatterns/-: No such file or directory 2 | -------------------------------------------------------------------------------- /tests/auto/patternistexamples/patternistexamples.pro: -------------------------------------------------------------------------------- 1 | TARGET = tst_patternistexamples 2 | CONFIG += testcase 3 | SOURCES += tst_patternistexamples.cpp 4 | QT += testlib 5 | 6 | DEFINES += SOURCETREE=\\\"$$absolute_path(../../..)/\\\" 7 | 8 | include (../xmlpatterns.pri) 9 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stylesheets/namedTemplate.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Asinglequerythatdoesnotexist.txt: -------------------------------------------------------------------------------- 1 | Error FODC0002 in file:///home/fenglich/dev/qt-xslt/tests/auto/xmlpatterns/doesNotExist.xq: Error opening file:///home/fenglich/dev/qt-xslt/tests/auto/xmlpatterns/doesNotExist.xq: No such file or directory 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stylesheets/onlyRootTemplate.xsl: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /tests/shared/util.pri: -------------------------------------------------------------------------------- 1 | 2 | INCLUDEPATH += $$PWD 3 | HEADERS += $$PWD/util.h 4 | SOURCES += $$PWD/util.cpp 5 | 6 | android|ios { 7 | DEFINES += QT_QMLTEST_DATADIR=\\\":/data\\\" 8 | } else { 9 | DEFINES += QT_QMLTEST_DATADIR=\\\"$${_PRO_FILE_PWD_}/data\\\" 10 | } 11 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/input/nodesAndWhitespaceAtomics.xq: -------------------------------------------------------------------------------- 1 | xs:string(" "), 2 | xs:string(" "), 3 | 4 | { 5 | xs:string(" "), 6 | , 7 | xs:string(" ") 8 | } 9 | , 10 | xs:string(" "), 11 | xs:string(" "), 12 | , 13 | xs:string(" ") 14 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/XQueryfunctionmessagemarkups.txt: -------------------------------------------------------------------------------- 1 | Error XPST0017 in file:///home/fenglich/dev/qt-xslt/tests/auto/xmlpatterns/queries/wrongArity.xq, at line 1, column 1: fn:doc($uri as xs:string?) as document()? requires at least 1 argument(s). 0 is therefore invalid. 2 | -------------------------------------------------------------------------------- /tests/auto/cmake/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | 2 | cmake_minimum_required(VERSION 2.8) 3 | 4 | project(qmake_cmake_files) 5 | 6 | enable_testing() 7 | 8 | find_package(Qt5Core REQUIRED) 9 | 10 | include("${_Qt5CTestMacros}") 11 | 12 | test_module_includes( 13 | XmlPatterns QXmlQuery 14 | ) 15 | -------------------------------------------------------------------------------- /tests/auto/qquickxmllistmodel/data/testtypes.qml: -------------------------------------------------------------------------------- 1 | import QtQuick 2.0 2 | import QtQuick.XmlListModel 2.0 3 | 4 | XmlListModel { 5 | query: "/data" 6 | XmlRole { name: "stringValue"; query: "a-string/string()" } 7 | XmlRole { name: "numberValue"; query: "a-number/number()" } 8 | } 9 | -------------------------------------------------------------------------------- /examples/xmlpatterns/recipes/files/liquidIngredientsInSoup.xq: -------------------------------------------------------------------------------- 1 | (: All liquid ingredients form Mushroom Soup. :) 2 | declare variable $inputDocument external; 3 | 4 | doc($inputDocument)/cookbook/recipe[@xml:id = "MushroomSoup"]/ingredient[@unit = "milliliters"]/ 5 |

{@name, @quantity, @unit}

6 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stylesheets/copyWholeDocument.xsl: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternssdk/docs/XMLIndenterExampleResult.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 |

Hello World!

4 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternssdk/docs/XMLWriterExampleResult.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 |

Hello World!

4 | -------------------------------------------------------------------------------- /examples/xmlpatterns/xmlpatterns.pro: -------------------------------------------------------------------------------- 1 | TEMPLATE = subdirs 2 | QT_FOR_CONFIG += xmlpatterns-private 3 | SUBDIRS += xquery 4 | qtHaveModule(widgets) { 5 | SUBDIRS += recipes 6 | 7 | qtConfig(xml-schema): SUBDIRS += filetree schema 8 | } 9 | 10 | EXAMPLE_FILES = \ 11 | shared 12 | 13 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Openannonexistentfile.txt: -------------------------------------------------------------------------------- 1 | Error FODC0002 in file:///home/fenglich/dev/qt-xslt/tests/auto/xmlpatterns/queries/ThisFileDoesNotExist.xq: Error opening file:///home/fenglich/dev/qt-xslt/tests/auto/xmlpatterns/queries/ThisFileDoesNotExist.xq: No such file or directory 2 | -------------------------------------------------------------------------------- /tests/auto/qquickxmllistmodel/data/unique.qml: -------------------------------------------------------------------------------- 1 | import QtQuick 2.0 2 | import QtQuick.XmlListModel 2.0 3 | 4 | XmlListModel { 5 | source: "model.xml" 6 | query: "/Pets/Pet" 7 | XmlRole { name: "name"; query: "name/string()" } 8 | XmlRole { name: "name"; query: "type/string()" } 9 | } 10 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/TriggerasecondassertinQPatternistColorOutput.ThequerynaturallycontainsXPST0003..txt: -------------------------------------------------------------------------------- 1 | Error XPST0003 in file:///home/fenglich/dev/qt-xslt/tests/auto/xmlpatterns/queries/syntaxError.xq, at line 1, column 5: syntax error, unexpected , expecting end of file 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/paramismissingsomultiplequeriesappear.txt: -------------------------------------------------------------------------------- 1 | Error FODC0002 in file:///home/fenglich/dev/qt-xslt/tests/auto/xmlpatterns/fileToOpen=globals.gccxml: Error opening file:///home/fenglich/dev/qt-xslt/tests/auto/xmlpatterns/fileToOpen=globals.gccxml: No such file or directory 2 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Passinastylesheetfileandafocusfilewhichdoesntexist.txt: -------------------------------------------------------------------------------- 1 | Error FODC0002 in file:///home/fenglich/dev/qt-xslt/tests/auto/xmlpatterns/doesNotExist.Nope.xml: Error opening file:///home/fenglich/dev/qt-xslt/tests/auto/xmlpatterns/doesNotExist.Nope.xml: No such file or directory 2 | -------------------------------------------------------------------------------- /tests/auto/checkxmlfiles/checkxmlfiles.pro: -------------------------------------------------------------------------------- 1 | TARGET = tst_checkxmlfiles 2 | CONFIG += testcase 3 | SOURCES += tst_checkxmlfiles.cpp \ 4 | ../qxmlquery/TestFundament.cpp 5 | QT = core gui testlib 6 | 7 | include (../xmlpatterns.pri) 8 | 9 | DEFINES += SOURCETREE=\\\"$$absolute_path(../../..)/\\\" 10 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsvalidator/files/indirect-include-b.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsvalidator/files/indirect-include-c.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsvalidator/files/indirect-redefine-b.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsvalidator/files/indirect-redefine-c.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stylesheets/notWellformed.xsl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /tests/auto/qquickxmllistmodel/data/groups.qml: -------------------------------------------------------------------------------- 1 | import QtQuick 2.0 2 | import QtQuick.XmlListModel 2.0 3 | 4 | XmlListModel { 5 | source: "groups.xml" 6 | query: "//animal[@name='Garfield']/parent::group" 7 | 8 | XmlRole { name: "id"; query: "@id/string()" } 9 | XmlRole { name: "name"; query: "@name/string()" } 10 | } 11 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/Annotation_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph Annotation { 2 | mindist = 2.0 3 | 1 -> 2 [label="appinfo"] 4 | 1 -> 2 [label="documentation"] 5 | 2 -> 2 [label="appinfo"] 6 | 2 -> 2 [label="documentation"] 7 | 1 [shape=doublecircle, style=filled, color=blue] 8 | 2 [shape=doublecircle, style=filled, color=green] 9 | } 10 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsvalidator/files/indirect-import-b.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsvalidator/files/indirect-import-c.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/TriggeranassertinQPatternistColorOutput.ThequerynaturallycontainsanerrorXPTY0004..txt: -------------------------------------------------------------------------------- 1 | Warning in : The variable a is unused 2 | Error XPTY0004 in file:///home/fenglich/dev/qt-xslt/tests/auto/xmlpatterns/queries/flwor.xq, at line 2, column 13: Required cardinality is zero or one("?"); got cardinality one or more("+"). 3 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/List_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph List { 2 | mindist = 2.0 3 | 1 -> 2 [label="annotation"] 4 | 1 -> 3 [label="simpleType"] 5 | 2 -> 3 [label="simpleType"] 6 | 1 [shape=doublecircle, style=filled, color=blue] 7 | 2 [shape=doublecircle, style=filled, color=green] 8 | 3 [shape=doublecircle, style=filled, color=green] 9 | } 10 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/XQueryurimessagemarkups.txt: -------------------------------------------------------------------------------- 1 | Error XQST0038 in file:///home/fenglich/dev/qt-xslt/tests/auto/xmlpatterns/queries/unsupportedCollation.xq, at line 1, column 1: Only the Unicode Codepoint Collation is supported(http://www.w3.org/2005/xpath-functions/collation/codepoint). http://example.com/UnsupportedCollation is unsupported. 2 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/DefaultOpenContent_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph DefaultOpenContent { 2 | mindist = 2.0 3 | 1 -> 2 [label="annotation"] 4 | 1 -> 3 [label="any"] 5 | 2 -> 3 [label="any"] 6 | 1 [shape=doublecircle, style=filled, color=blue] 7 | 2 [shape=circle, style=filled, color=red] 8 | 3 [shape=doublecircle, style=filled, color=green] 9 | } 10 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsvalidator/files/fractiondigits.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1234.560000 4 | 5 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsvalidator/files/indirect-datatype.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /examples/xmlpatterns/recipes/files/preparationLessThan30.xq: -------------------------------------------------------------------------------- 1 | (: All recipes taking 10 minutes or less to prepare. :) 2 | declare variable $inputDocument external; 3 | 4 | doc($inputDocument)/cookbook/recipe/time[@unit = "minutes" and xs:integer(@quantity) <= 10]/ 5 |

6 | { 7 | concat(../title, ' (', @quantity, ' ', @unit, ')') 8 | } 9 |

10 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/embedDataInXHTML.xq: -------------------------------------------------------------------------------- 1 | declare default element namespace "http://www.w3.org/1999/xhtml"; 2 | 3 | 4 | { 5 | for $i in doc("testResult.xml")/tests/test[@status = "failure"] 6 | order by $i/@name 7 | return

{$i/@name}

8 | } 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/embedDataInXHTML2.xq: -------------------------------------------------------------------------------- 1 | declare namespace x = "http://www.w3.org/1998/xhtml"; 2 | 3 | 4 | { 5 | for $i in doc("testResult.xml")/tests/test[@status = "failure"] 6 | order by $i/@name 7 | return {$i/@name} 8 | } 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/introAcneRemover.xq: -------------------------------------------------------------------------------- 1 | 2 | The following skin care products have shipped, ordered by shipping date(oldest first): 3 | { 4 | for $i in doc("myOrders.xml")/orders/order[@product = "Acme Skin Care"] 5 | order by xs:date($i/@shippingDate) descending 6 | return $i 7 | } 8 | 9 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsvalidator/files/fractiondigits-nodot.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 123456 4 | 5 | 6 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsvalidator/files/fractiondigits-nonumber.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | .56 4 | 5 | 6 | -------------------------------------------------------------------------------- /tests/auto/qquickxmllistmodel/data/model2.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Polly 4 | Parrot 5 | 12 6 | Small 7 | 8 | 9 | Penny 10 | Turtle 11 | 4 12 | Small 13 | 14 | 15 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns.pri: -------------------------------------------------------------------------------- 1 | QT += core-private xmlpatterns xmlpatterns-private 2 | QT -= gui 3 | 4 | QMAKE_RPATHLINKDIR *= $$QT.gui.libs 5 | 6 | XMLPATTERNS_SDK = QtXmlPatternsSDK 7 | if(!debug_and_release|build_pass):CONFIG(debug, debug|release) { 8 | win32: XMLPATTERNS_SDK = $${XMLPATTERNS_SDK}d 9 | else: XMLPATTERNS_SDK = $${XMLPATTERNS_SDK}_debug 10 | } 11 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/LocalAttribute_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph LocalAttribute { 2 | mindist = 2.0 3 | 1 -> 2 [label="annotation"] 4 | 1 -> 3 [label="simpleType"] 5 | 2 -> 3 [label="simpleType"] 6 | 1 [shape=doublecircle, style=filled, color=blue] 7 | 2 [shape=doublecircle, style=filled, color=green] 8 | 3 [shape=doublecircle, style=filled, color=green] 9 | } 10 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsvalidator/files/indirect-include-a.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/GlobalAttribute_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph GlobalAttribute { 2 | mindist = 2.0 3 | 1 -> 2 [label="annotation"] 4 | 1 -> 3 [label="simpleType"] 5 | 2 -> 3 [label="simpleType"] 6 | 1 [shape=doublecircle, style=filled, color=blue] 7 | 2 [shape=doublecircle, style=filled, color=green] 8 | 3 [shape=doublecircle, style=filled, color=green] 9 | } 10 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/legend.dot: -------------------------------------------------------------------------------- 1 | digraph { 2 | size="5,4" 3 | 1 [label=" start state ", shape=circle, style=filled, color=blue] 4 | 2 [label="start/end state", shape=doublecircle, style=filled, color=blue] 5 | 3 [label=" internal state", shape=circle, style=filled, color=red] 6 | 4 [label=" end state ", shape=doublecircle, style=filled, color=green] 7 | } 8 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/input/mixedTopLevelContent.xq: -------------------------------------------------------------------------------- 1 | (: Top level atomic values, mixed with elements. :) 2 | 1, 3 | 2, 4 | 3, 5 | , 6 | 4, 7 | , 8 | 5, 9 | 10 | { 11 | (: This is a bit tricky. The receiver is sent the start of an element and then an atomic value. Must not 12 | be indented. :) 13 | 6 14 | } 15 | , 16 | 7 17 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/input/prolog.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsvalidator/files/indirect-redefine-a.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /examples/xmlpatterns/schema/files/invalid_contact.xml: -------------------------------------------------------------------------------- 1 | 2 | John 3 | Doe 4 | Prof. 5 | 6 | Sandakerveien 116 7 | N-0550 8 | Oslo 9 | Norway 10 | 11 | 12 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/baselines/prolog.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stylesheets/namedAndRootTemplate.xsl: -------------------------------------------------------------------------------- 1 | 2 | root-template 3 | named-template 4 | namespaced-template 5 | 6 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsvalidator/files/fractiondigits-invalid.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1234.560000000000000001 4 | 5 | 6 | -------------------------------------------------------------------------------- /examples/xmlpatterns/schema/files/valid_contact.xml: -------------------------------------------------------------------------------- 1 | 2 | John 3 | Doe 4 | 1977-12-25 5 | 6 | Sandakerveien 116 7 | N-0550 8 | Oslo 9 | Norway 10 | 11 | 12 | -------------------------------------------------------------------------------- /examples/xmlpatterns/schema/schema.pro: -------------------------------------------------------------------------------- 1 | QT += widgets xmlpatterns 2 | FORMS += schema.ui 3 | HEADERS = mainwindow.h ../shared/xmlsyntaxhighlighter.h 4 | RESOURCES = schema.qrc 5 | SOURCES = main.cpp mainwindow.cpp ../shared/xmlsyntaxhighlighter.cpp 6 | INCLUDEPATH += ../shared/ 7 | 8 | target.path = $$[QT_INSTALL_EXAMPLES]/xmlpatterns/schema 9 | INSTALLS += target 10 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/Union_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph Union { 2 | mindist = 2.0 3 | 1 -> 2 [label="annotation"] 4 | 1 -> 3 [label="simpleType"] 5 | 2 -> 3 [label="simpleType"] 6 | 3 -> 3 [label="simpleType"] 7 | 1 [shape=doublecircle, style=filled, color=blue] 8 | 2 [shape=doublecircle, style=filled, color=green] 9 | 3 [shape=doublecircle, style=filled, color=green] 10 | } 11 | -------------------------------------------------------------------------------- /examples/xmlpatterns/recipes/recipes.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | files/cookbook.xml 4 | files/allRecipes.xq 5 | files/liquidIngredientsInSoup.xq 6 | files/mushroomSoup.xq 7 | files/preparationLessThan30.xq 8 | files/preparationTimes.xq 9 | 10 | 11 | -------------------------------------------------------------------------------- /tests/auto/qabstractxmlnodemodel/qabstractxmlnodemodel.pro: -------------------------------------------------------------------------------- 1 | TARGET = tst_qabstractxmlnodemodel 2 | CONFIG += testcase 3 | QT += testlib 4 | SOURCES += tst_qabstractxmlnodemodel.cpp \ 5 | LoadingModel.cpp \ 6 | ../qxmlquery/TestFundament.cpp 7 | HEADERS += TestNodeModel.h LoadingModel.h 8 | 9 | TESTDATA = tree.xml 10 | 11 | include (../xmlpatterns.pri) 12 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/input/adjacentNodes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /examples/xmlpatterns/schema/files/invalid_order.xml: -------------------------------------------------------------------------------- 1 | 2 | 234219 3 |
4 | 21692 5 | 3 6 |
7 |
8 | 24749 9 | 9 10 |
11 | 2009-01-23 12 | yes 13 |
14 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/baselines/adjacentNodes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /tests/auto/qxmlquery/input.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | data/oneElement.xml 5 | data/notWellformed.xml 6 | ../xmlpatterns/queries/staticBaseURI.xq 7 | ../xmlpatterns/queries/syntaxError.xq 8 | 9 | 10 | -------------------------------------------------------------------------------- /examples/xmlpatterns/filetree/filetree.pro: -------------------------------------------------------------------------------- 1 | SOURCES += main.cpp filetree.cpp mainwindow.cpp ../shared/xmlsyntaxhighlighter.cpp 2 | HEADERS += filetree.h mainwindow.h ../shared/xmlsyntaxhighlighter.h 3 | FORMS += forms/mainwindow.ui 4 | QT += widgets xmlpatterns 5 | RESOURCES += queries.qrc 6 | INCLUDEPATH += ../shared/ 7 | 8 | target.path = $$[QT_INSTALL_EXAMPLES]/xmlpatterns/filetree 9 | INSTALLS += target 10 | -------------------------------------------------------------------------------- /tests/auto/qquickxmllistmodel/data/model.qml: -------------------------------------------------------------------------------- 1 | import QtQuick 2.0 2 | import QtQuick.XmlListModel 2.0 3 | 4 | XmlListModel { 5 | source: "model.xml" 6 | query: "/Pets/Pet" 7 | XmlRole { name: "name"; query: "name/string()" } 8 | XmlRole { name: "type"; query: "type/string()" } 9 | XmlRole { name: "age"; query: "age/number()" } 10 | XmlRole { name: "size"; query: "size/string()" } 11 | } 12 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/input/indentedAdjacentNodes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /examples/xmlpatterns/recipes/recipes.pro: -------------------------------------------------------------------------------- 1 | QT += widgets xmlpatterns 2 | FORMS += forms/querywidget.ui 3 | HEADERS = querymainwindow.h ../shared/xmlsyntaxhighlighter.h 4 | RESOURCES = recipes.qrc 5 | SOURCES = main.cpp querymainwindow.cpp ../shared/xmlsyntaxhighlighter.cpp 6 | INCLUDEPATH += ../shared/ 7 | 8 | target.path = $$[QT_INSTALL_EXAMPLES]/xmlpatterns/recipes 9 | INSTALLS += target 10 | -------------------------------------------------------------------------------- /tests/auto/qapplicationargumentparser/qapplicationargumentparser.pro: -------------------------------------------------------------------------------- 1 | TARGET = tst_qapplicationargumentparser 2 | CONFIG += testcase 3 | SOURCES += tst_qapplicationargumentparser.cpp \ 4 | ../../../tools/xmlpatterns/qapplicationargument.cpp \ 5 | ../../../tools/xmlpatterns/qapplicationargumentparser.cpp 6 | QT = core testlib 7 | INCLUDEPATH += ../../../tools/xmlpatterns/ 8 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/baselines/indentedAdjacentNodes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /src/imports/xmllistmodel/xmllistmodel.pro: -------------------------------------------------------------------------------- 1 | CXX_MODULE = qml 2 | TARGET = qmlxmllistmodelplugin 3 | TARGETPATH = QtQuick/XmlListModel 4 | IMPORT_VERSION = 2.$$QT_MINOR_VERSION 5 | 6 | QT = xmlpatterns qml-private core-private 7 | qtConfig(qml-network): QT += network 8 | 9 | SOURCES += qqmlxmllistmodel.cpp plugin.cpp 10 | HEADERS += qqmlxmllistmodel_p.h 11 | 12 | load(qml_plugin) 13 | 14 | requires(qtConfig(qml-network)) 15 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/ComplexContent_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph ComplexContent { 2 | mindist = 2.0 3 | 1 -> 3 [label="restriction"] 4 | 1 -> 2 [label="annotation"] 5 | 1 -> 3 [label="extension"] 6 | 2 -> 3 [label="restriction"] 7 | 2 -> 3 [label="extension"] 8 | 1 [shape=circle, style=filled, color=blue] 9 | 2 [shape=circle, style=filled, color=red] 10 | 3 [shape=doublecircle, style=filled, color=green] 11 | } 12 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/SimpleContent_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph SimpleContent { 2 | mindist = 2.0 3 | 1 -> 3 [label="restriction"] 4 | 1 -> 2 [label="annotation"] 5 | 1 -> 3 [label="extension"] 6 | 2 -> 3 [label="restriction"] 7 | 2 -> 3 [label="extension"] 8 | 1 [shape=circle, style=filled, color=blue] 9 | 2 [shape=circle, style=filled, color=red] 10 | 3 [shape=doublecircle, style=filled, color=green] 11 | } 12 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/Alternative_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph Alternative { 2 | mindist = 2.0 3 | 1 -> 3 [label="complexType"] 4 | 1 -> 2 [label="annotation"] 5 | 1 -> 3 [label="simpleType"] 6 | 2 -> 3 [label="complexType"] 7 | 2 -> 3 [label="simpleType"] 8 | 1 [shape=doublecircle, style=filled, color=blue] 9 | 2 [shape=doublecircle, style=filled, color=green] 10 | 3 [shape=doublecircle, style=filled, color=green] 11 | } 12 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsvalidator/files/invalid_schema.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsvalidator/files/valid_schema.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/Key_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph Key { 2 | mindist = 2.0 3 | 1 -> 2 [label="annotation"] 4 | 1 -> 3 [label="selector"] 5 | 2 -> 3 [label="selector"] 6 | 3 -> 4 [label="field"] 7 | 4 -> 4 [label="field"] 8 | 1 [shape=circle, style=filled, color=blue] 9 | 2 [shape=circle, style=filled, color=red] 10 | 3 [shape=circle, style=filled, color=red] 11 | 4 [shape=doublecircle, style=filled, color=green] 12 | } 13 | -------------------------------------------------------------------------------- /tests/auto/qquickxmllistmodel/data/propertychanges.qml: -------------------------------------------------------------------------------- 1 | import QtQuick 2.0 2 | import QtQuick.XmlListModel 2.0 3 | 4 | XmlListModel { 5 | source: "model.xml" 6 | query: "/Pets/Pet" 7 | XmlRole { objectName: "role"; name: "name"; query: "name/string()" } 8 | XmlRole { name: "type"; query: "type/string()" } 9 | XmlRole { name: "age"; query: "age/number()" } 10 | XmlRole { name: "size"; query: "size/string()" } 11 | } 12 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/baselines/mixedContent.xml: -------------------------------------------------------------------------------- 1 | 2 |

char1 3 |

4 |

5 | char2

6 |

char3char3

7 |

8 | char4 9 | 10 |

char1 11 |

12 |

13 | char2

14 |

char3char3

15 |
16 |

17 | 18 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsvalidator/files/indirect-import-a.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /examples/xmlpatterns/README: -------------------------------------------------------------------------------- 1 | XQuery queries and XPath expressions can be used in Qt with the 2 | Qt XML Patterns module. 3 | 4 | XQuery is a query language used to query XML in a concise and safe manner. 5 | 6 | Documentation for these examples can be found via the Examples and Tutorials 7 | link in the main Qt documentation. The examples and their documentation can 8 | also be opened from the Examples tab of Qt Creator's Welcome mode. 9 | 10 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/KeyRef_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph KeyRef { 2 | mindist = 2.0 3 | 1 -> 2 [label="annotation"] 4 | 1 -> 3 [label="selector"] 5 | 2 -> 3 [label="selector"] 6 | 3 -> 4 [label="field"] 7 | 4 -> 4 [label="field"] 8 | 1 [shape=circle, style=filled, color=blue] 9 | 2 [shape=circle, style=filled, color=red] 10 | 3 [shape=circle, style=filled, color=red] 11 | 4 [shape=doublecircle, style=filled, color=green] 12 | } 13 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/Unique_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph Unique { 2 | mindist = 2.0 3 | 1 -> 2 [label="annotation"] 4 | 1 -> 3 [label="selector"] 5 | 2 -> 3 [label="selector"] 6 | 3 -> 4 [label="field"] 7 | 4 -> 4 [label="field"] 8 | 1 [shape=circle, style=filled, color=blue] 9 | 2 [shape=circle, style=filled, color=red] 10 | 3 [shape=circle, style=filled, color=red] 11 | 4 [shape=doublecircle, style=filled, color=green] 12 | } 13 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsvalidator/files/other_valid_schema.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Passthreedashesthetwolastgetsinterpretedastwoqueryarguments.txt: -------------------------------------------------------------------------------- 1 | Error FODC0002 in file:///home/fenglich/dev/qt-xslt/tests/auto/xmlpatterns/-: Error opening file:///home/fenglich/dev/qt-xslt/tests/auto/xmlpatterns/-: No such file or directory 2 | Error FODC0002 in file:///home/fenglich/dev/qt-xslt/tests/auto/xmlpatterns/-: Error opening file:///home/fenglich/dev/qt-xslt/tests/auto/xmlpatterns/-: No such file or directory 3 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/Specifytwoidenticalquerynames.txt: -------------------------------------------------------------------------------- 1 | Error FODC0002 in file:///home/fenglich/dev/qt-xslt/tests/auto/xmlpatterns/query.xq: Error opening file:///home/fenglich/dev/qt-xslt/tests/auto/xmlpatterns/query.xq: No such file or directory 2 | Error FODC0002 in file:///home/fenglich/dev/qt-xslt/tests/auto/xmlpatterns/query.xq: Error opening file:///home/fenglich/dev/qt-xslt/tests/auto/xmlpatterns/query.xq: No such file or directory 3 | -------------------------------------------------------------------------------- /tests/auto/qquickxmllistmodel/data/recipes.qml: -------------------------------------------------------------------------------- 1 | import QtQuick 2.0 2 | import QtQuick.XmlListModel 2.0 3 | 4 | XmlListModel { 5 | source: "recipes.xml" 6 | query: "/recipes/recipe" 7 | XmlRole { name: "title"; query: "@title/string()" } 8 | XmlRole { name: "picture"; query: "picture/string()" } 9 | XmlRole { name: "ingredients"; query: "ingredients/string()" } 10 | XmlRole { name: "preparation"; query: "method/string()" } 11 | } 12 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/All_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph All { 2 | mindist = 2.0 3 | 1 -> 2 [label="annotation"] 4 | 1 -> 3 [label="any"] 5 | 1 -> 3 [label="element"] 6 | 2 -> 3 [label="any"] 7 | 2 -> 3 [label="element"] 8 | 3 -> 3 [label="any"] 9 | 3 -> 3 [label="element"] 10 | 1 [shape=doublecircle, style=filled, color=blue] 11 | 2 [shape=doublecircle, style=filled, color=green] 12 | 3 [shape=doublecircle, style=filled, color=green] 13 | } 14 | -------------------------------------------------------------------------------- /tests/auto/qquickxmllistmodel/data/roleKeys.qml: -------------------------------------------------------------------------------- 1 | import QtQuick 2.0 2 | import QtQuick.XmlListModel 2.0 3 | 4 | XmlListModel { 5 | query: "/data/item" 6 | XmlRole { id: nameRole; name: "name"; query: "name/string()"; isKey: true } 7 | XmlRole { name: "age"; query: "age/number()"; isKey: true } 8 | XmlRole { name: "sport"; query: "sport/string()" } 9 | 10 | function disableNameKey() { 11 | nameRole.isKey = false; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/introFileHierarchy.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | ... 10 | 11 | 12 | ... 13 | 14 | 15 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/input/indentedMixedContent.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 |

char1

4 |

char2

5 |

char3char3

6 |

7 | 8 | char 4 9 | 10 | 11 |

char1

12 |

char2

13 |

char3char3

14 | 15 |

16 |
17 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/LocalAll_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph LocalAll { 2 | mindist = 2.0 3 | 1 -> 2 [label="annotation"] 4 | 1 -> 3 [label="any"] 5 | 1 -> 3 [label="element"] 6 | 2 -> 3 [label="any"] 7 | 2 -> 3 [label="element"] 8 | 3 -> 3 [label="any"] 9 | 3 -> 3 [label="element"] 10 | 1 [shape=doublecircle, style=filled, color=blue] 11 | 2 [shape=doublecircle, style=filled, color=green] 12 | 3 [shape=doublecircle, style=filled, color=green] 13 | } 14 | -------------------------------------------------------------------------------- /tests/auto/qabstractxmlnodemodel/tree.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | text1 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | theTextChild2 15 | 16 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/introNavigateFS.xq: -------------------------------------------------------------------------------- 1 | declare variable $myRoot := ; (: This line is a dummy and shouldn't appear in the documentation. :) 2 | 3 | 4 | { 5 | $myRoot//file[@mimetype = 'text/xml' or @mimetype = 'application/xml'] 6 | / 7 | (if(doc-available(@uri)) 8 | then () 9 | else

Failed to parse file {@uri}.

) 10 | } 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/NamedGroup_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph NamedGroup { 2 | mindist = 2.0 3 | 1 -> 3 [label="choice"] 4 | 1 -> 3 [label="all"] 5 | 1 -> 2 [label="annotation"] 6 | 1 -> 3 [label="sequence"] 7 | 2 -> 3 [label="choice"] 8 | 2 -> 3 [label="all"] 9 | 2 -> 3 [label="sequence"] 10 | 1 [shape=doublecircle, style=filled, color=blue] 11 | 2 [shape=doublecircle, style=filled, color=green] 12 | 3 [shape=doublecircle, style=filled, color=green] 13 | } 14 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/GlobalSimpleType_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph GlobalSimpleType { 2 | mindist = 2.0 3 | 1 -> 3 [label="restriction"] 4 | 1 -> 2 [label="annotation"] 5 | 1 -> 3 [label="list"] 6 | 1 -> 3 [label="union"] 7 | 2 -> 3 [label="restriction"] 8 | 2 -> 3 [label="list"] 9 | 2 -> 3 [label="union"] 10 | 1 [shape=circle, style=filled, color=blue] 11 | 2 [shape=circle, style=filled, color=red] 12 | 3 [shape=doublecircle, style=filled, color=green] 13 | } 14 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/LocalSimpleType_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph LocalSimpleType { 2 | mindist = 2.0 3 | 1 -> 3 [label="restriction"] 4 | 1 -> 2 [label="annotation"] 5 | 1 -> 3 [label="list"] 6 | 1 -> 3 [label="union"] 7 | 2 -> 3 [label="restriction"] 8 | 2 -> 3 [label="list"] 9 | 2 -> 3 [label="union"] 10 | 1 [shape=circle, style=filled, color=blue] 11 | 2 [shape=circle, style=filled, color=red] 12 | 3 [shape=doublecircle, style=filled, color=green] 13 | } 14 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/ReferredGroup_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph ReferredGroup { 2 | mindist = 2.0 3 | 1 -> 3 [label="choice"] 4 | 1 -> 3 [label="all"] 5 | 1 -> 2 [label="annotation"] 6 | 1 -> 3 [label="sequence"] 7 | 2 -> 3 [label="choice"] 8 | 2 -> 3 [label="all"] 9 | 2 -> 3 [label="sequence"] 10 | 1 [shape=doublecircle, style=filled, color=blue] 11 | 2 [shape=doublecircle, style=filled, color=green] 12 | 3 [shape=doublecircle, style=filled, color=green] 13 | } 14 | -------------------------------------------------------------------------------- /tests/auto/qquickxmllistmodel/data/roleErrors.qml: -------------------------------------------------------------------------------- 1 | import QtQuick 2.0 2 | import QtQuick.XmlListModel 2.0 3 | 4 | XmlListModel { 5 | source: "model.xml" 6 | query: "/Pets/Pet" 7 | XmlRole { name: "name"; query: "/name/string()" } //starts with '/' 8 | XmlRole { name: "type"; query: "type" } //no type 9 | XmlRole { name: "age"; query: "age/" } //ends with '/' 10 | XmlRole { name: "size"; query: "size/number()" } //wrong type 11 | } 12 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsvalidator/files/dateTime-with-microseconds.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/computedTreeFragment.xq: -------------------------------------------------------------------------------- 1 | declare default element namespace "http://example.com/Namespace"; 2 | declare variable $documentElementName := "doc"; 3 | 4 | element {$documentElementName} 5 | { 6 | attribute xml:base {"http://example.com/"}, 7 | element anotherElement 8 | { 9 | comment {" a comment "}, 10 | processing-instruction target {"data"}, 11 | element anotherElement {()}, 12 | text {"some text"} 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/PrintalistofavailableregexpflagsTheavailableflagsareformattedinacomplexway..txt: -------------------------------------------------------------------------------- 1 | Error FORX0001 in file:///home/fenglich/dev/qt-xslt/tests/auto/xmlpatterns/queries/invalidRegexpFlag.xq, at line 1, column 1: I is an invalid flag for regular expressions. Valid flags are: 2 | i - Matches are case insensitive 3 | m - ^ and $ match the start and end of a line. 4 | s - . matches newline characters 5 | x - Whitespace characters are removed, except when they appear in character classes 6 | -------------------------------------------------------------------------------- /src/xmlpatterns/acceltree/acceltree.pri: -------------------------------------------------------------------------------- 1 | SOURCES += $$PWD/qacceltree.cpp \ 2 | $$PWD/qacceltreeresourceloader.cpp \ 3 | $$PWD/qacceliterators.cpp \ 4 | $$PWD/qcompressedwhitespace.cpp 5 | 6 | HEADERS += $$PWD/qacceltreebuilder_p.h \ 7 | $$PWD/qacceltree_p.h \ 8 | $$PWD/qacceltreeresourceloader_p.h \ 9 | $$PWD/qacceliterators_p.h \ 10 | $$PWD/qcompressedwhitespace_p.h 11 | -------------------------------------------------------------------------------- /tests/auto/qxmlformatter/baselines/indentedMixedContent.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 |

char1 4 |

5 |

6 | char2

7 |

char3char3

8 |

9 | 10 | char 4 11 | 12 | 13 |

char1 14 |

15 |

16 | char2

17 |

char3char3

18 | 19 |

20 |
21 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/Redefine_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph Redefine { 2 | mindist = 2.0 3 | 1 -> 2 [label="group"] 4 | 1 -> 2 [label="complexType"] 5 | 1 -> 2 [label="annotation"] 6 | 1 -> 2 [label="simpleType"] 7 | 1 -> 2 [label="attributeGroup"] 8 | 2 -> 2 [label="group"] 9 | 2 -> 2 [label="complexType"] 10 | 2 -> 2 [label="annotation"] 11 | 2 -> 2 [label="simpleType"] 12 | 2 -> 2 [label="attributeGroup"] 13 | 1 [shape=doublecircle, style=filled, color=blue] 14 | 2 [shape=doublecircle, style=filled, color=green] 15 | } 16 | -------------------------------------------------------------------------------- /src/xmlpatterns/configure.json: -------------------------------------------------------------------------------- 1 | { 2 | "module": "xmlpatterns", 3 | 4 | "features": { 5 | "xml-schema": { 6 | "label": "XML schema support", 7 | "purpose": "Provides XML schema validation.", 8 | "section": "QtXmlPatterns", 9 | "output": [ "publicFeature" ] 10 | } 11 | }, 12 | 13 | "summary": [ 14 | { 15 | "section": "QtXmlPatterns", 16 | "entries": [ 17 | "xml-schema" 18 | ] 19 | } 20 | ] 21 | } 22 | -------------------------------------------------------------------------------- /examples/xmlpatterns/schema/files/valid_order.xml: -------------------------------------------------------------------------------- 1 | 2 | 194223 3 |
4 | 22242 5 | 5 6 |
7 |
8 | 32372 9 | 12 10 | without stripes 11 |
12 |
13 | 23649 14 | 2 15 |
16 | 2009-01-23 17 | true 18 |
19 | -------------------------------------------------------------------------------- /src/xmlpatterns/query.pri: -------------------------------------------------------------------------------- 1 | include($$PWD/common.pri) 2 | include($$PWD/acceltree/acceltree.pri) 3 | include($$PWD/api/api.pri) 4 | include($$PWD/data/data.pri) 5 | include($$PWD/environment/environment.pri) 6 | include($$PWD/expr/expr.pri) 7 | include($$PWD/functions/functions.pri) 8 | include($$PWD/iterators/iterators.pri) 9 | include($$PWD/janitors/janitors.pri) 10 | include($$PWD/parser/parser.pri) 11 | include($$PWD/projection/projection.pri) 12 | include($$PWD/type/type.pri) 13 | include($$PWD/utils/utils.pri) 14 | include($$PWD/qobjectmodel/qobjectmodel.pri, "", true) 15 | -------------------------------------------------------------------------------- /examples/xmlpatterns/filetree/queries/listCPPFiles.xq: -------------------------------------------------------------------------------- 1 | declare variable $where as xs:string := string($fileTree/@filePath); 2 | 3 | 4 | All cpp files in: {$where} 5 | 6 | 7 |

8 | cpp-files found in {$where} sorted by size: 9 |

10 |
    { 11 | for $file in $fileTree//file[@suffix = "cpp"] 12 | order by xs:integer($file/@size) 13 | return 14 |
  • 15 | {string($file/@fileName)}, size: {string($file/@size)} 16 |
  • 17 | }
18 | 19 | 20 | -------------------------------------------------------------------------------- /tests/auto/qxmlquery/qxmlquery.pro: -------------------------------------------------------------------------------- 1 | TARGET = tst_qxmlquery 2 | CONFIG += testcase 3 | SOURCES += tst_qxmlquery.cpp MessageValidator.cpp TestFundament.cpp 4 | HEADERS += PushBaseliner.h \ 5 | MessageSilencer.h \ 6 | ../qsimplexmlnodemodel/TestSimpleNodeModel.h \ 7 | MessageValidator.h \ 8 | NetworkOverrider.h 9 | 10 | RESOURCES = input.qrc 11 | 12 | QT += network testlib 13 | 14 | TESTDATA = data/* pushBaselines/* input.xml 15 | 16 | include (../xmlpatterns.pri) 17 | -------------------------------------------------------------------------------- /tests/auto/qquickxmllistmodel/qquickxmllistmodel.pro: -------------------------------------------------------------------------------- 1 | CONFIG += testcase 2 | TARGET = tst_qquickxmllistmodel 3 | macos:CONFIG -= app_bundle 4 | 5 | SOURCES += tst_qquickxmllistmodel.cpp \ 6 | $$PWD/../../../src/imports/xmllistmodel/qqmlxmllistmodel.cpp 7 | HEADERS += $$PWD/../../../src/imports/xmllistmodel/qqmlxmllistmodel_p.h 8 | 9 | INCLUDEPATH *= $$PWD/../../../src/imports/xmllistmodel 10 | 11 | include (../../shared/util.pri) 12 | 13 | TESTDATA = data/* 14 | 15 | QT += core-private gui-private qml-private network testlib xmlpatterns 16 | 17 | OTHER_FILES += \ 18 | data/groups.qml 19 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/patternist/doc.txt: -------------------------------------------------------------------------------- 1 | 2 |

3 | 1 4 | 2 5 |

6 |

7 | 3 8 | 4 9 |

10 |

11 | 5 12 | 6 13 |

14 |

15 | 7 16 | 8 17 |

18 |

19 | 9 20 | a 21 |

22 |

23 | b 24 | c 25 |

26 |

27 | d 28 | e 29 |

30 |

31 | f 32 | 0 33 |

34 |
35 | 36 | -------------------------------------------------------------------------------- /src/xmlpatterns/janitors/janitors.pri: -------------------------------------------------------------------------------- 1 | HEADERS += $$PWD/qargumentconverter_p.h \ 2 | $$PWD/qatomizer_p.h \ 3 | $$PWD/qcardinalityverifier_p.h \ 4 | $$PWD/qebvextractor_p.h \ 5 | $$PWD/qitemverifier_p.h \ 6 | $$PWD/quntypedatomicconverter_p.h 7 | 8 | SOURCES += $$PWD/qargumentconverter.cpp \ 9 | $$PWD/qatomizer.cpp \ 10 | $$PWD/qcardinalityverifier.cpp \ 11 | $$PWD/qebvextractor.cpp \ 12 | $$PWD/qitemverifier.cpp \ 13 | $$PWD/quntypedatomicconverter.cpp 14 | -------------------------------------------------------------------------------- /examples/xmlpatterns/schema/files/valid_recipe.xml: -------------------------------------------------------------------------------- 1 | 2 | Cheese on Toast 3 | 4 | 5 | 14 | -------------------------------------------------------------------------------- /src/xmlpatterns/common.pri: -------------------------------------------------------------------------------- 1 | # This qmake file is included by all Patternist projects and contains common Qt defines, 2 | # compiler warnings, and include paths. 3 | 4 | INCLUDEPATH += $$PWD/acceltree \ 5 | $$PWD/data \ 6 | $$PWD/api \ 7 | $$PWD/environment \ 8 | $$PWD/expr \ 9 | $$PWD/functions \ 10 | $$PWD/iterators \ 11 | $$PWD/janitors \ 12 | $$PWD/parser \ 13 | $$PWD/schema \ 14 | $$PWD/type \ 15 | $$PWD/utils 16 | 17 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stylesheets/useParameters.xsl: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/NamedAttributeGroup_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph NamedAttributeGroup { 2 | mindist = 2.0 3 | 1 -> 2 [label="annotation"] 4 | 1 -> 4 [label="anyAttribute"] 5 | 1 -> 3 [label="attribute"] 6 | 1 -> 3 [label="attributeGroup"] 7 | 2 -> 4 [label="anyAttribute"] 8 | 2 -> 3 [label="attribute"] 9 | 2 -> 3 [label="attributeGroup"] 10 | 3 -> 4 [label="anyAttribute"] 11 | 3 -> 3 [label="attribute"] 12 | 3 -> 3 [label="attributeGroup"] 13 | 1 [shape=doublecircle, style=filled, color=blue] 14 | 2 [shape=doublecircle, style=filled, color=green] 15 | 3 [shape=doublecircle, style=filled, color=green] 16 | 4 [shape=doublecircle, style=filled, color=green] 17 | } 18 | -------------------------------------------------------------------------------- /examples/xmlpatterns/schema/files/invalid_recipe.xml: -------------------------------------------------------------------------------- 1 | 2 | Cheese on Toast 3 | 4 | 5 | 15 | -------------------------------------------------------------------------------- /examples/xmlpatterns/schema/schema.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | files/contact.xsd 4 | files/recipe.xsd 5 | files/order.xsd 6 | files/valid_contact.xml 7 | files/invalid_contact.xml 8 | files/valid_recipe.xml 9 | files/invalid_recipe.xml 10 | files/valid_order.xml 11 | files/invalid_order.xml 12 | 13 | 14 | -------------------------------------------------------------------------------- /dist/changes-5.9.0: -------------------------------------------------------------------------------- 1 | Qt 5.9 introduces many new features and improvements as well as bugfixes 2 | over the 5.8.x series. For more details, refer to the online documentation 3 | included in this distribution. The documentation is also available online: 4 | 5 | http://doc.qt.io/qt-5/index.html 6 | 7 | The Qt version 5.9 series is binary compatible with the 5.8.x series. 8 | Applications compiled for 5.8 will continue to run with 5.9. 9 | 10 | Some of the changes listed in this file include issue tracking numbers 11 | corresponding to tasks in the Qt Bug Tracker: 12 | 13 | https://bugreports.qt.io/ 14 | 15 | Each of these identifiers can be entered in the bug tracker to obtain more 16 | information about a particular change. 17 | -------------------------------------------------------------------------------- /dist/changes-5.8.0: -------------------------------------------------------------------------------- 1 | Qt 5.8 introduces many new features and improvements as well as bugfixes 2 | over the 5.7.x series. For more details, refer to the online documentation 3 | included in this distribution. The documentation is also available online: 4 | 5 | http://doc.qt.io/qt-5/index.html 6 | 7 | The Qt version 5.8 series is binary compatible with the 5.7.x series. 8 | Applications compiled for 5.7 will continue to run with 5.8. 9 | 10 | Some of the changes listed in this file include issue tracking numbers 11 | corresponding to tasks in the Qt Bug Tracker: 12 | 13 | https://bugreports.qt.io/ 14 | 15 | Each of these identifiers can be entered in the bug tracker to obtain more 16 | information about a particular change. 17 | -------------------------------------------------------------------------------- /tools/xmlpatterns/xmlpatterns.pro: -------------------------------------------------------------------------------- 1 | QT = core xmlpatterns-private 2 | 3 | # Note that qcoloroutput.cpp and qcoloringmessagehandler.cpp are also used internally 4 | # in libQtXmlPatterns. See src/xmlpatterns/api/api.pri. 5 | SOURCES = main.cpp \ 6 | qapplicationargument.cpp \ 7 | qapplicationargumentparser.cpp 8 | 9 | 10 | HEADERS = main.h \ 11 | qapplicationargument.cpp \ 12 | qapplicationargumentparser.cpp 13 | 14 | QMAKE_TARGET_DESCRIPTION = "Qt XQuery Evaluator" 15 | load(qt_tool) 16 | 17 | # with c++11 / __STRICT_ANSI__ mingw.org stdio.h doesn't declare e.g. _fileno 18 | win32-g++*: QMAKE_CXXFLAGS_CXX11 = -std=gnu++0x -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/Choice_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph Choice { 2 | mindist = 2.0 3 | 1 -> 3 [label="choice"] 4 | 1 -> 3 [label="group"] 5 | 1 -> 2 [label="annotation"] 6 | 1 -> 3 [label="sequence"] 7 | 1 -> 3 [label="any"] 8 | 1 -> 3 [label="element"] 9 | 2 -> 3 [label="choice"] 10 | 2 -> 3 [label="group"] 11 | 2 -> 3 [label="sequence"] 12 | 2 -> 3 [label="any"] 13 | 2 -> 3 [label="element"] 14 | 3 -> 3 [label="choice"] 15 | 3 -> 3 [label="group"] 16 | 3 -> 3 [label="sequence"] 17 | 3 -> 3 [label="any"] 18 | 3 -> 3 [label="element"] 19 | 1 [shape=doublecircle, style=filled, color=blue] 20 | 2 [shape=doublecircle, style=filled, color=green] 21 | 3 [shape=doublecircle, style=filled, color=green] 22 | } 23 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/Override_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph Override { 2 | mindist = 2.0 3 | 1 -> 2 [label="group"] 4 | 1 -> 2 [label="complexType"] 5 | 1 -> 2 [label="annotation"] 6 | 1 -> 2 [label="simpleType"] 7 | 1 -> 2 [label="element"] 8 | 1 -> 2 [label="notation"] 9 | 1 -> 2 [label="attribute"] 10 | 1 -> 2 [label="attributeGroup"] 11 | 2 -> 2 [label="group"] 12 | 2 -> 2 [label="complexType"] 13 | 2 -> 2 [label="annotation"] 14 | 2 -> 2 [label="simpleType"] 15 | 2 -> 2 [label="element"] 16 | 2 -> 2 [label="notation"] 17 | 2 -> 2 [label="attribute"] 18 | 2 -> 2 [label="attributeGroup"] 19 | 1 [shape=doublecircle, style=filled, color=blue] 20 | 2 [shape=doublecircle, style=filled, color=green] 21 | } 22 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/Sequence_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph Sequence { 2 | mindist = 2.0 3 | 1 -> 3 [label="choice"] 4 | 1 -> 3 [label="group"] 5 | 1 -> 2 [label="annotation"] 6 | 1 -> 3 [label="sequence"] 7 | 1 -> 3 [label="any"] 8 | 1 -> 3 [label="element"] 9 | 2 -> 3 [label="choice"] 10 | 2 -> 3 [label="group"] 11 | 2 -> 3 [label="sequence"] 12 | 2 -> 3 [label="any"] 13 | 2 -> 3 [label="element"] 14 | 3 -> 3 [label="choice"] 15 | 3 -> 3 [label="group"] 16 | 3 -> 3 [label="sequence"] 17 | 3 -> 3 [label="any"] 18 | 3 -> 3 [label="element"] 19 | 1 [shape=doublecircle, style=filled, color=blue] 20 | 2 [shape=doublecircle, style=filled, color=green] 21 | 3 [shape=doublecircle, style=filled, color=green] 22 | } 23 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/LocalChoice_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph LocalChoice { 2 | mindist = 2.0 3 | 1 -> 3 [label="choice"] 4 | 1 -> 3 [label="group"] 5 | 1 -> 2 [label="annotation"] 6 | 1 -> 3 [label="sequence"] 7 | 1 -> 3 [label="any"] 8 | 1 -> 3 [label="element"] 9 | 2 -> 3 [label="choice"] 10 | 2 -> 3 [label="group"] 11 | 2 -> 3 [label="sequence"] 12 | 2 -> 3 [label="any"] 13 | 2 -> 3 [label="element"] 14 | 3 -> 3 [label="choice"] 15 | 3 -> 3 [label="group"] 16 | 3 -> 3 [label="sequence"] 17 | 3 -> 3 [label="any"] 18 | 3 -> 3 [label="element"] 19 | 1 [shape=doublecircle, style=filled, color=blue] 20 | 2 [shape=doublecircle, style=filled, color=green] 21 | 3 [shape=doublecircle, style=filled, color=green] 22 | } 23 | -------------------------------------------------------------------------------- /src/xmlpatterns/doc/snippets/qml/xmlrole.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Qt 5 Cadaques 5 | 2014 6 | Juergen Bocklage-Ryannel 7 | Johan Thelin 8 | 9 | 10 | C++ GUI Programming with Qt 4 11 | 2006 12 | Jasmin Blanchette 13 | Mark Summerfield 14 | 15 | 16 | Programming with Qt 17 | 2002 18 | Matthias Kalle Dalheimer 19 | 20 | 21 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/LocalSequence_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph LocalSequence { 2 | mindist = 2.0 3 | 1 -> 3 [label="choice"] 4 | 1 -> 3 [label="group"] 5 | 1 -> 2 [label="annotation"] 6 | 1 -> 3 [label="sequence"] 7 | 1 -> 3 [label="any"] 8 | 1 -> 3 [label="element"] 9 | 2 -> 3 [label="choice"] 10 | 2 -> 3 [label="group"] 11 | 2 -> 3 [label="sequence"] 12 | 2 -> 3 [label="any"] 13 | 2 -> 3 [label="element"] 14 | 3 -> 3 [label="choice"] 15 | 3 -> 3 [label="group"] 16 | 3 -> 3 [label="sequence"] 17 | 3 -> 3 [label="any"] 18 | 3 -> 3 [label="element"] 19 | 1 [shape=doublecircle, style=filled, color=blue] 20 | 2 [shape=doublecircle, style=filled, color=green] 21 | 3 [shape=doublecircle, style=filled, color=green] 22 | } 23 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsxslts/xmlpatternsxslts.pro: -------------------------------------------------------------------------------- 1 | TARGET = tst_xmlpatternsxslts 2 | CONFIG += testcase 3 | SOURCES += tst_xmlpatternsxslts.cpp \ 4 | ../qxmlquery/TestFundament.cpp 5 | 6 | include (../xmlpatterns.pri) 7 | 8 | HEADERS += ../xmlpatternsxqts/tst_suitetest.h 9 | SOURCES += ../xmlpatternsxqts/tst_suitetest.cpp 10 | LIBS += -L$$QT.xmlpatterns.libs -l$$XMLPATTERNS_SDK 11 | 12 | QT += xml testlib 13 | INCLUDEPATH += $$(QTSRCDIR)/tests/auto/xmlpatternssdk \ 14 | $$(QTDIR)/include/QtXmlPatterns/private \ 15 | $$(QTSRCDIR)/tests/auto/xmlpatternsxqts \ 16 | ../xmlpatternsxqts \ 17 | ../xmlpatternssdk 18 | 19 | requires(contains(QT_CONFIG,private_tests)) 20 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/queries/nodeSequence.xq: -------------------------------------------------------------------------------- 1 | document{()}, 2 | document{()}, 3 | document{()}, 4 | document{""}, 5 | document{""}, 6 | document{text{()}}, 7 | document{text{()}}, 8 | document{text{"text1"}}, 9 | document{text{"text2"}}, 10 | document{}, 11 | , 12 | , 13 | , 14 | , 15 | attribute name {"value"}, 16 | text{()}, 17 | text{"text3"}, 18 | 19 | text4 20 | 21 | text5 22 | 23 | 24 | 25 | 26 | 27 | , 28 | , 29 | , 30 | , 31 | 32 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsvalidator/files/substitution-group.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /tests/auto/qxmlquery/pushBaselines/openDocument.ref: -------------------------------------------------------------------------------- 1 | startOfSequence() 2 | startDocument() 3 | startElement({http://example.com}e) 4 | namespaceBinding({http://example.com}empty) 5 | namespaceBinding({http://example.com/P}p:empty) 6 | attribute(attr, 1) 7 | attribute({http://example.com/P}p:attr, ) 8 | processingInstruction(target, data) 9 | comment( a comment ) 10 | startElement({http://example.com}e) 11 | namespaceBinding({http://example.com}empty) 12 | namespaceBinding({http://example.com/P}p:empty) 13 | endElement() 14 | characters(text ) 15 | startElement({http://example.com}f) 16 | namespaceBinding({http://example.com}empty) 17 | namespaceBinding({http://example.com/P}p:empty) 18 | endElement() 19 | characters(text node) 20 | endElement() 21 | endDocument() 22 | endOfSequence() 23 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/schemas/qt_attribution.json: -------------------------------------------------------------------------------- 1 | { 2 | "Id": "xml-xsd", 3 | "Name": "XML Schema", 4 | "QDocModule": "qtxmlpatterns", 5 | "QtUsage": "Used for implementing validation of the the XML schema.", 6 | 7 | "Files": "xml.xsd", 8 | "Description": "The xml.xsd file provided by W3C describes the XML 9 | namespace, in a form suitable for import by other schema documents.", 10 | "Homepage": "https://www.w3.org/2001/xml.xsd", 11 | "Version": "2007/08", 12 | "DownloadLocation": "http://www.w3.org/2007/08/xml.xsd", 13 | "LicenseId": "W3C-20150513", 14 | "License": "W3C Software Notice and Document License (2015-05-13)", 15 | "LicenseFile": "xml.xsd-LICENSE", 16 | "Copyright": "Copyright © 2007 W3C® (MIT, ERCIM, Keio, Beihang)" 17 | } 18 | -------------------------------------------------------------------------------- /dist/changes-5.12.0: -------------------------------------------------------------------------------- 1 | Qt 5.12 introduces many new features and improvements as well as bugfixes 2 | over the 5.11.x series. For more details, refer to the online documentation 3 | included in this distribution. The documentation is also available online: 4 | 5 | https://doc.qt.io/qt-5/index.html 6 | 7 | The Qt version 5.12 series is binary compatible with the 5.11.x series. 8 | Applications compiled for 5.11 will continue to run with 5.12. 9 | 10 | Some of the changes listed in this file include issue tracking numbers 11 | corresponding to tasks in the Qt Bug Tracker: 12 | 13 | https://bugreports.qt.io/ 14 | 15 | Each of these identifiers can be entered in the bug tracker to obtain more 16 | information about a particular change. 17 | 18 | - This release contains only minor code improvements. 19 | -------------------------------------------------------------------------------- /dist/changes-5.13.0: -------------------------------------------------------------------------------- 1 | Qt 5.13 introduces many new features and improvements as well as bugfixes 2 | over the 5.12.x series. For more details, refer to the online documentation 3 | included in this distribution. The documentation is also available online: 4 | 5 | https://doc.qt.io/qt-5/index.html 6 | 7 | The Qt version 5.13 series is binary compatible with the 5.12.x series. 8 | Applications compiled for 5.12 will continue to run with 5.13. 9 | 10 | Some of the changes listed in this file include issue tracking numbers 11 | corresponding to tasks in the Qt Bug Tracker: 12 | 13 | https://bugreports.qt.io/ 14 | 15 | Each of these identifiers can be entered in the bug tracker to obtain more 16 | information about a particular change. 17 | 18 | - This release contains only minor code improvements. 19 | -------------------------------------------------------------------------------- /dist/changes-5.14.0: -------------------------------------------------------------------------------- 1 | Qt 5.14 introduces many new features and improvements as well as bugfixes 2 | over the 5.13.x series. For more details, refer to the online documentation 3 | included in this distribution. The documentation is also available online: 4 | 5 | https://doc.qt.io/qt-5/index.html 6 | 7 | The Qt version 5.14 series is binary compatible with the 5.13.x series. 8 | Applications compiled for 5.13 will continue to run with 5.14. 9 | 10 | Some of the changes listed in this file include issue tracking numbers 11 | corresponding to tasks in the Qt Bug Tracker: 12 | 13 | https://bugreports.qt.io/ 14 | 15 | Each of these identifiers can be entered in the bug tracker to obtain more 16 | information about a particular change. 17 | 18 | - This release contains only minor code improvements. 19 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsschemats/xmlpatternsschemats.pro: -------------------------------------------------------------------------------- 1 | TARGET = tst_xmlpatternsschemats 2 | CONFIG += testcase 3 | SOURCES += tst_xmlpatternsschemats.cpp \ 4 | ../qxmlquery/TestFundament.cpp 5 | 6 | include (../xmlpatterns.pri) 7 | 8 | HEADERS += ../xmlpatternsxqts/tst_suitetest.h 9 | SOURCES += ../xmlpatternsxqts/tst_suitetest.cpp 10 | 11 | PATTERNIST_SDK = QtXmlPatternsSDK 12 | if(!debug_and_release|build_pass):CONFIG(debug, debug|release) { 13 | win32: PATTERNIST_SDK = $${PATTERNIST_SDK}d 14 | else: PATTERNIST_SDK = $${PATTERNIST_SDK}_debug 15 | } 16 | 17 | LIBS += -L$$QT.xmlpatterns.libs -l$$PATTERNIST_SDK 18 | 19 | QT += xml testlib 20 | 21 | INCLUDEPATH += \ 22 | ../xmlpatternsxqts \ 23 | ../xmlpatternssdk 24 | 25 | requires(contains(QT_CONFIG,private_tests)) 26 | 27 | -------------------------------------------------------------------------------- /tests/auto/qquickxmllistmodel/data/groups.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /dist/changes-5.14.1: -------------------------------------------------------------------------------- 1 | Qt 5.14.1 is a bug-fix release. It maintains both forward and backward 2 | compatibility (source and binary) with Qt 5.14.0. 3 | 4 | For more details, refer to the online documentation included in this 5 | distribution. The documentation is also available online: 6 | 7 | https://doc.qt.io/qt-5/index.html 8 | 9 | The Qt version 5.14 series is binary compatible with the 5.13.x series. 10 | Applications compiled for 5.13 will continue to run with 5.14. 11 | 12 | Some of the changes listed in this file include issue tracking numbers 13 | corresponding to tasks in the Qt Bug Tracker: 14 | 15 | https://bugreports.qt.io/ 16 | 17 | Each of these identifiers can be entered in the bug tracker to obtain more 18 | information about a particular change. 19 | 20 | - [QTBUG-77620] Fixed a crash in XML validation. 21 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsxqts/xmlpatternsxqts.pro: -------------------------------------------------------------------------------- 1 | CONFIG += testcase 2 | SOURCES += tst_xmlpatternsxqts.cpp ../qxmlquery/TestFundament.cpp tst_suitetest.cpp 3 | 4 | include(../xmlpatterns.pri) 5 | 6 | HEADERS += tst_suitetest.h 7 | LIBS += -L$$QT.xmlpatterns.libs -l$$XMLPATTERNS_SDK 8 | 9 | # syncqt doesn't copy headers in tools/ so let's manually ensure 10 | # it works with shadow builds and source builds. 11 | INCLUDEPATH += $$(QTDIR)/include/QtXmlPatterns/private \ 12 | $$(QTSRCDIR)/include/QtXmlPatterns/private \ 13 | $$(QTSRCDIR)/tools/xmlpatterns \ 14 | $$(QTDIR)/tools/xmlpatterns \ 15 | ../xmlpatternssdk/ 16 | 17 | QT += xml testlib 18 | TARGET = tst_xmlpatternsxqts 19 | requires(contains(QT_CONFIG,private_tests)) 20 | 21 | -------------------------------------------------------------------------------- /dist/changes-5.12.1: -------------------------------------------------------------------------------- 1 | Qt 5.12.1 is a bug-fix release. It maintains both forward and backward 2 | compatibility (source and binary) with Qt 5.12.0. 3 | 4 | For more details, refer to the online documentation included in this 5 | distribution. The documentation is also available online: 6 | 7 | http://doc.qt.io/qt-5/index.html 8 | 9 | The Qt version 5.12 series is binary compatible with the 5.11.x series. 10 | Applications compiled for 5.11 will continue to run with 5.12. 11 | 12 | Some of the changes listed in this file include issue tracking numbers 13 | corresponding to tasks in the Qt Bug Tracker: 14 | 15 | https://bugreports.qt.io/ 16 | 17 | Each of these identifiers can be entered in the bug tracker to obtain more 18 | information about a particular change. 19 | 20 | - This release contains only minor code improvements. 21 | -------------------------------------------------------------------------------- /dist/changes-5.13.1: -------------------------------------------------------------------------------- 1 | Qt 5.13.1 is a bug-fix release. It maintains both forward and backward 2 | compatibility (source and binary) with Qt 5.13.0. 3 | 4 | For more details, refer to the online documentation included in this 5 | distribution. The documentation is also available online: 6 | 7 | https://doc.qt.io/qt-5/index.html 8 | 9 | The Qt version 5.13 series is binary compatible with the 5.12.x series. 10 | Applications compiled for 5.12 will continue to run with 5.13. 11 | 12 | Some of the changes listed in this file include issue tracking numbers 13 | corresponding to tasks in the Qt Bug Tracker: 14 | 15 | https://bugreports.qt.io/ 16 | 17 | Each of these identifiers can be entered in the bug tracker to obtain more 18 | information about a particular change. 19 | 20 | - This release contains only minor code improvements. 21 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsdiagnosticsts/xmlpatternsdiagnosticsts.pro: -------------------------------------------------------------------------------- 1 | TARGET = tst_xmlpatternsdiagnosticsts 2 | CONFIG += testcase 3 | SOURCES += tst_xmlpatternsdiagnosticsts.cpp \ 4 | ../qxmlquery/TestFundament.cpp 5 | 6 | include (../xmlpatterns.pri) 7 | 8 | TARGET = tst_xmlpatternsdiagnosticsts 9 | 10 | HEADERS += ../xmlpatternsxqts/tst_suitetest.h 11 | SOURCES += ../xmlpatternsxqts/tst_suitetest.cpp 12 | LIBS += -L$$QT.xmlpatterns.libs -l$$XMLPATTERNS_SDK 13 | 14 | QT += xml testlib 15 | 16 | INCLUDEPATH += $$(QTSRCDIR)/tests/auto/xmlpatternssdk \ 17 | $$(QTDIR)/include/QtXmlPatterns/private \ 18 | $$(QTSRCDIR)/tests/auto/xmlpatternsxqts \ 19 | ../xmlpatternsxqts \ 20 | ../xmlpatternssdk 21 | 22 | requires(contains(QT_CONFIG,private_tests)) 23 | 24 | -------------------------------------------------------------------------------- /dist/changes-5.11.3: -------------------------------------------------------------------------------- 1 | Qt 5.11.3 is a bug-fix release. It maintains both forward and backward 2 | compatibility (source and binary) with Qt 5.11.0 through 5.11.2. 3 | 4 | For more details, refer to the online documentation included in this 5 | distribution. The documentation is also available online: 6 | 7 | http://doc.qt.io/qt-5/index.html 8 | 9 | The Qt version 5.11 series is binary compatible with the 5.10.x series. 10 | Applications compiled for 5.10 will continue to run with 5.11. 11 | 12 | Some of the changes listed in this file include issue tracking numbers 13 | corresponding to tasks in the Qt Bug Tracker: 14 | 15 | https://bugreports.qt.io/ 16 | 17 | Each of these identifiers can be entered in the bug tracker to obtain more 18 | information about a particular change. 19 | 20 | - This release contains only minor code improvements. 21 | -------------------------------------------------------------------------------- /dist/changes-5.12.2: -------------------------------------------------------------------------------- 1 | Qt 5.12.2 is a bug-fix release. It maintains both forward and backward 2 | compatibility (source and binary) with Qt 5.12.0 through 5.12.1. 3 | 4 | For more details, refer to the online documentation included in this 5 | distribution. The documentation is also available online: 6 | 7 | https://doc.qt.io/qt-5/index.html 8 | 9 | The Qt version 5.12 series is binary compatible with the 5.11.x series. 10 | Applications compiled for 5.11 will continue to run with 5.12. 11 | 12 | Some of the changes listed in this file include issue tracking numbers 13 | corresponding to tasks in the Qt Bug Tracker: 14 | 15 | https://bugreports.qt.io/ 16 | 17 | Each of these identifiers can be entered in the bug tracker to obtain more 18 | information about a particular change. 19 | 20 | - This release contains only minor code improvements. 21 | -------------------------------------------------------------------------------- /dist/changes-5.12.3: -------------------------------------------------------------------------------- 1 | Qt 5.12.3 is a bug-fix release. It maintains both forward and backward 2 | compatibility (source and binary) with Qt 5.12.0 through 5.12.2. 3 | 4 | For more details, refer to the online documentation included in this 5 | distribution. The documentation is also available online: 6 | 7 | https://doc.qt.io/qt-5/index.html 8 | 9 | The Qt version 5.12 series is binary compatible with the 5.11.x series. 10 | Applications compiled for 5.11 will continue to run with 5.12. 11 | 12 | Some of the changes listed in this file include issue tracking numbers 13 | corresponding to tasks in the Qt Bug Tracker: 14 | 15 | https://bugreports.qt.io/ 16 | 17 | Each of these identifiers can be entered in the bug tracker to obtain more 18 | information about a particular change. 19 | 20 | - This release contains only minor code improvements. 21 | -------------------------------------------------------------------------------- /dist/changes-5.12.4: -------------------------------------------------------------------------------- 1 | Qt 5.12.4 is a bug-fix release. It maintains both forward and backward 2 | compatibility (source and binary) with Qt 5.12.0 through 5.12.3. 3 | 4 | For more details, refer to the online documentation included in this 5 | distribution. The documentation is also available online: 6 | 7 | https://doc.qt.io/qt-5/index.html 8 | 9 | The Qt version 5.12 series is binary compatible with the 5.11.x series. 10 | Applications compiled for 5.11 will continue to run with 5.12. 11 | 12 | Some of the changes listed in this file include issue tracking numbers 13 | corresponding to tasks in the Qt Bug Tracker: 14 | 15 | https://bugreports.qt.io/ 16 | 17 | Each of these identifiers can be entered in the bug tracker to obtain more 18 | information about a particular change. 19 | 20 | - This release contains only minor code improvements. 21 | -------------------------------------------------------------------------------- /dist/changes-5.12.5: -------------------------------------------------------------------------------- 1 | Qt 5.12.5 is a bug-fix release. It maintains both forward and backward 2 | compatibility (source and binary) with Qt 5.12.0 through 5.12.4. 3 | 4 | For more details, refer to the online documentation included in this 5 | distribution. The documentation is also available online: 6 | 7 | https://doc.qt.io/qt-5/index.html 8 | 9 | The Qt version 5.12 series is binary compatible with the 5.11.x series. 10 | Applications compiled for 5.11 will continue to run with 5.12. 11 | 12 | Some of the changes listed in this file include issue tracking numbers 13 | corresponding to tasks in the Qt Bug Tracker: 14 | 15 | https://bugreports.qt.io/ 16 | 17 | Each of these identifiers can be entered in the bug tracker to obtain more 18 | information about a particular change. 19 | 20 | - This release contains only minor code improvements. 21 | -------------------------------------------------------------------------------- /dist/changes-5.13.2: -------------------------------------------------------------------------------- 1 | Qt 5.13.2 is a bug-fix release. It maintains both forward and backward 2 | compatibility (source and binary) with Qt 5.13.0 through 5.13.1. 3 | 4 | For more details, refer to the online documentation included in this 5 | distribution. The documentation is also available online: 6 | 7 | https://doc.qt.io/qt-5/index.html 8 | 9 | The Qt version 5.13 series is binary compatible with the 5.12.x series. 10 | Applications compiled for 5.12 will continue to run with 5.13. 11 | 12 | Some of the changes listed in this file include issue tracking numbers 13 | corresponding to tasks in the Qt Bug Tracker: 14 | 15 | https://bugreports.qt.io/ 16 | 17 | Each of these identifiers can be entered in the bug tracker to obtain more 18 | information about a particular change. 19 | 20 | - This release contains only minor code improvements. 21 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsschemats/TESTSUITE/unifyCatalog.xsl: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /tests/README: -------------------------------------------------------------------------------- 1 | This directory contains autotests and benchmarks based on QTestlib. In order 2 | to run the autotests reliably, you need to configure a desktop to match the 3 | test environment that these tests are written for. 4 | 5 | Linux X11: 6 | 7 | * The user must be logged in to an active desktop; you can't run the 8 | autotests without a valid DISPLAY that allows X11 connections. 9 | 10 | * The tests are run against a KDE3 or KDE4 desktop. 11 | 12 | * Window manager uses "click to focus", and not "focus follows mouse". Many 13 | tests move the mouse cursor around and expect this to not affect focus 14 | and activation. 15 | 16 | * Disable "click to activate", i.e., when a window is opened, the window 17 | manager should automatically activate it (give it input focus) and not 18 | wait for the user to click the window. 19 | -------------------------------------------------------------------------------- /src/xmlpatterns/parser/winCEWorkaround.sed: -------------------------------------------------------------------------------- 1 | /\/\* Tokens\. \*\// i\ 2 | \/\* These tokens are defined to nothing on Windows because they\'re\ 3 | \* used in their documentation parser, for use in things like:\ 4 | \*\ 5 | \* int foo(IN char\* name, OUT char\* path);\ 6 | \*\ 7 | \* Hence this un-break fix. Note that this file was auto generated. *\/\ 8 | \#ifdef IN\ 9 | \# undef IN\ 10 | \#endif\ 11 | \#ifdef INSTANCE\ 12 | \# undef INSTANCE\ 13 | \#endif\ 14 | \#ifdef STRICT\ 15 | \# undef STRICT\ 16 | \#endif\ 17 | \#ifdef SELF\ 18 | \# undef SELF\ 19 | \#endif\ 20 | \/\* These tokens are defined in VxWorks kernel mode\ 21 | \*\ 22 | \* Hence this un-break fix. Note that this file was auto generated. *\/\ 23 | \#ifdef ERROR\ 24 | \# undef ERROR\ 25 | \#endif\ 26 | \#ifdef IMPORT\ 27 | \# undef IMPORT\ 28 | \#endif\ 29 | \#ifdef MAP\ 30 | \# undef MAP\ 31 | \#endif\ 32 | 33 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsvalidator/files/fractiondigits.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsxqts/summarizeBaseline.xsl: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | Failures: 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 26 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/SimpleContentExtension_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph SimpleContentExtension { 2 | mindist = 2.0 3 | 1 -> 2 [label="annotation"] 4 | 1 -> 4 [label="anyAttribute"] 5 | 1 -> 5 [label="assert"] 6 | 1 -> 3 [label="attribute"] 7 | 1 -> 3 [label="attributeGroup"] 8 | 2 -> 4 [label="anyAttribute"] 9 | 2 -> 5 [label="assert"] 10 | 2 -> 3 [label="attribute"] 11 | 2 -> 3 [label="attributeGroup"] 12 | 3 -> 4 [label="anyAttribute"] 13 | 3 -> 5 [label="assert"] 14 | 3 -> 3 [label="attribute"] 15 | 3 -> 3 [label="attributeGroup"] 16 | 4 -> 5 [label="assert"] 17 | 5 -> 5 [label="assert"] 18 | 1 [shape=doublecircle, style=filled, color=blue] 19 | 2 [shape=doublecircle, style=filled, color=green] 20 | 3 [shape=doublecircle, style=filled, color=green] 21 | 4 [shape=doublecircle, style=filled, color=green] 22 | 5 [shape=doublecircle, style=filled, color=green] 23 | } 24 | -------------------------------------------------------------------------------- /tests/auto/xmlpatternsvalidator/files/complex-type-including-anonymous-type.xsd: -------------------------------------------------------------------------------- 1 | 4 | 5 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /dist/changes-5.0.1: -------------------------------------------------------------------------------- 1 | Qt 5.0.1 is a bug-fix release. It maintains both forward and backward 2 | compatibility (source and binary) with Qt 5.0.0. 3 | 4 | For more details, refer to the online documentation included in this 5 | distribution. The documentation is also available online: 6 | 7 | http://qt-project.org/doc/qt-5.0/ 8 | 9 | Some of the changes listed in this file include issue tracking numbers 10 | corresponding to tasks in the Qt Bug Tracker: 11 | 12 | http://bugreports.qt-project.org/ 13 | 14 | Each of these identifiers can be entered in the bug tracker to obtain more 15 | information about a particular change. 16 | 17 | 18 | **************************************************************************** 19 | * General * 20 | **************************************************************************** 21 | 22 | - This release contains only minor code improvements. 23 | -------------------------------------------------------------------------------- /src/xmlpatterns/xmlpatterns.pro: -------------------------------------------------------------------------------- 1 | TARGET = QtXmlPatterns 2 | CONFIG += exceptions 3 | QT = core-private network 4 | 5 | DEFINES += QT_NO_USING_NAMESPACE QT_ENABLE_QEXPLICITLYSHAREDDATAPOINTER_STATICCAST 6 | win32-msvc*|win32-icc:QMAKE_LFLAGS += /BASE:0x61000000 7 | 8 | QMAKE_DOCS = $$PWD/doc/qtxmlpatterns.qdocconf 9 | 10 | include($$PWD/common.pri) 11 | include($$PWD/acceltree/acceltree.pri) 12 | include($$PWD/api/api.pri) 13 | include($$PWD/data/data.pri) 14 | include($$PWD/environment/environment.pri) 15 | include($$PWD/expr/expr.pri) 16 | include($$PWD/functions/functions.pri) 17 | include($$PWD/iterators/iterators.pri) 18 | include($$PWD/janitors/janitors.pri) 19 | include($$PWD/parser/parser.pri) 20 | include($$PWD/projection/projection.pri) 21 | 22 | qtConfig(xml-schema) { 23 | include($$PWD/schema/schema.pri) 24 | } 25 | include($$PWD/type/type.pri) 26 | include($$PWD/utils/utils.pri) 27 | include($$PWD/qobjectmodel/qobjectmodel.pri, "", true) 28 | 29 | load(qt_module) 30 | -------------------------------------------------------------------------------- /examples/xmlpatterns/schema/files/order.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /dist/changes-5.0.2: -------------------------------------------------------------------------------- 1 | Qt 5.0.2 is a bug-fix release. It maintains both forward and backward 2 | compatibility (source and binary) with Qt 5.0.0 and 5.0.1. 3 | 4 | For more details, refer to the online documentation included in this 5 | distribution. The documentation is also available online: 6 | 7 | http://qt-project.org/doc/qt-5.0/ 8 | 9 | Some of the changes listed in this file include issue tracking numbers 10 | corresponding to tasks in the Qt Bug Tracker: 11 | 12 | http://bugreports.qt-project.org/ 13 | 14 | Each of these identifiers can be entered in the bug tracker to obtain more 15 | information about a particular change. 16 | 17 | 18 | **************************************************************************** 19 | * General * 20 | **************************************************************************** 21 | 22 | General Improvements 23 | -------------------- 24 | 25 | - This release contains only minor code improvements. 26 | -------------------------------------------------------------------------------- /dist/changes-5.10.0: -------------------------------------------------------------------------------- 1 | Qt 5.10 introduces many new features and improvements as well as bugfixes 2 | over the 5.9.x series. For more details, refer to the online documentation 3 | included in this distribution. The documentation is also available online: 4 | 5 | http://doc.qt.io/qt-5/index.html 6 | 7 | The Qt version 5.10 series is binary compatible with the 5.10.x series. 8 | Applications compiled for 5.9 will continue to run with 5.10. 9 | 10 | Some of the changes listed in this file include issue tracking numbers 11 | corresponding to tasks in the Qt Bug Tracker: 12 | 13 | https://bugreports.qt.io/ 14 | 15 | Each of these identifiers can be entered in the bug tracker to obtain more 16 | information about a particular change. 17 | 18 | **************************************************************************** 19 | * Qt 5.10.0 Changes * 20 | **************************************************************************** 21 | 22 | - This release contains only minor code improvements. 23 | -------------------------------------------------------------------------------- /dist/changes-5.11.0: -------------------------------------------------------------------------------- 1 | Qt 5.11 introduces many new features and improvements as well as bugfixes 2 | over the 5.10.x series. For more details, refer to the online documentation 3 | included in this distribution. The documentation is also available online: 4 | 5 | http://doc.qt.io/qt-5/index.html 6 | 7 | The Qt version 5.11 series is binary compatible with the 5.10.x series. 8 | Applications compiled for 5.10 will continue to run with 5.11. 9 | 10 | Some of the changes listed in this file include issue tracking numbers 11 | corresponding to tasks in the Qt Bug Tracker: 12 | 13 | https://bugreports.qt.io/ 14 | 15 | Each of these identifiers can be entered in the bug tracker to obtain more 16 | information about a particular change. 17 | 18 | **************************************************************************** 19 | * Qt 5.11.0 Changes * 20 | **************************************************************************** 21 | 22 | - This release contains only minor code improvements. 23 | -------------------------------------------------------------------------------- /dist/changes-5.1.0: -------------------------------------------------------------------------------- 1 | Qt 5.1 introduces many new features and improvements as well as bugfixes 2 | over the 5.0.x series. For more details, refer to the online documentation 3 | included in this distribution. The documentation is also available online: 4 | 5 | http://qt-project.org/doc/qt-5.1 6 | 7 | The Qt version 5.1 series is binary compatible with the 5.0.x series. 8 | Applications compiled for 5.0 will continue to run with 5.1. 9 | 10 | Some of the changes listed in this file include issue tracking numbers 11 | corresponding to tasks in the Qt Bug Tracker: 12 | 13 | http://bugreports.qt-project.org/ 14 | 15 | Each of these identifiers can be entered in the bug tracker to obtain more 16 | information about a particular change. 17 | 18 | **************************************************************************** 19 | * General * 20 | **************************************************************************** 21 | 22 | - This release contains only minor code improvements. 23 | -------------------------------------------------------------------------------- /tests/auto/qxmlquery/pushBaselines/allAtomics.ref: -------------------------------------------------------------------------------- 1 | startOfSequence() 2 | atomicValue(xs:untypedAtomic) 3 | atomicValue(2002-10-10T23:02:11.000Z) 4 | atomicValue(2002-10-10) 5 | atomicValue() 6 | atomicValue() 7 | atomicValue() 8 | atomicValue() 9 | atomicValue(3000) 10 | atomicValue(40000) 11 | atomicValue(2) 12 | atomicValue(16) 13 | atomicValue(-6) 14 | atomicValue(-4) 15 | atomicValue(5) 16 | atomicValue(6) 17 | atomicValue(7) 18 | atomicValue(8) 19 | atomicValue(9) 20 | atomicValue(10) 21 | atomicValue(11) 22 | atomicValue(12) 23 | atomicValue(13) 24 | atomicValue(14) 25 | atomicValue() 26 | atomicValue() 27 | atomicValue() 28 | atomicValue() 29 | atomicValue() 30 | atomicValue(true) 31 | atomicValue(i��) 32 | atomicValue(��) 33 | atomicValue(http://example.com/) 34 | atomicValue() 35 | atomicValue(An xs:string) 36 | atomicValue(normalizedString) 37 | atomicValue(token) 38 | atomicValue(language) 39 | atomicValue(NMTOKEN) 40 | atomicValue(Name) 41 | atomicValue(NCName) 42 | atomicValue(ID) 43 | atomicValue(IDREF) 44 | atomicValue(ENTITY) 45 | endOfSequence() 46 | -------------------------------------------------------------------------------- /dist/changes-5.9.1: -------------------------------------------------------------------------------- 1 | Qt 5.9.1 is a bug-fix release. It maintains both forward and backward 2 | compatibility (source and binary) with Qt 5.9.0. 3 | 4 | For more details, refer to the online documentation included in this 5 | distribution. The documentation is also available online: 6 | 7 | http://doc.qt.io/qt-5/index.html 8 | 9 | The Qt version 5.9 series is binary compatible with the 5.8.x series. 10 | Applications compiled for 5.8 will continue to run with 5.9. 11 | 12 | Some of the changes listed in this file include issue tracking numbers 13 | corresponding to tasks in the Qt Bug Tracker: 14 | 15 | https://bugreports.qt.io/ 16 | 17 | Each of these identifiers can be entered in the bug tracker to obtain more 18 | information about a particular change. 19 | 20 | **************************************************************************** 21 | * Library * 22 | **************************************************************************** 23 | 24 | - This release contains only minor code improvements. 25 | -------------------------------------------------------------------------------- /dist/changes-5.9.2: -------------------------------------------------------------------------------- 1 | Qt 5.9.2 is a bug-fix release. It maintains both forward and backward 2 | compatibility (source and binary) with Qt 5.9.0. 3 | 4 | For more details, refer to the online documentation included in this 5 | distribution. The documentation is also available online: 6 | 7 | http://doc.qt.io/qt-5/index.html 8 | 9 | The Qt version 5.9 series is binary compatible with the 5.8.x series. 10 | Applications compiled for 5.8 will continue to run with 5.9. 11 | 12 | Some of the changes listed in this file include issue tracking numbers 13 | corresponding to tasks in the Qt Bug Tracker: 14 | 15 | https://bugreports.qt.io/ 16 | 17 | Each of these identifiers can be entered in the bug tracker to obtain more 18 | information about a particular change. 19 | 20 | **************************************************************************** 21 | * Qt 5.9.2 Changes * 22 | **************************************************************************** 23 | 24 | - This release contains only minor code improvements. 25 | -------------------------------------------------------------------------------- /dist/changes-5.9.3: -------------------------------------------------------------------------------- 1 | Qt 5.9.3 is a bug-fix release. It maintains both forward and backward 2 | compatibility (source and binary) with Qt 5.9.0. 3 | 4 | For more details, refer to the online documentation included in this 5 | distribution. The documentation is also available online: 6 | 7 | http://doc.qt.io/qt-5/index.html 8 | 9 | The Qt version 5.9 series is binary compatible with the 5.8.x series. 10 | Applications compiled for 5.8 will continue to run with 5.9. 11 | 12 | Some of the changes listed in this file include issue tracking numbers 13 | corresponding to tasks in the Qt Bug Tracker: 14 | 15 | https://bugreports.qt.io/ 16 | 17 | Each of these identifiers can be entered in the bug tracker to obtain more 18 | information about a particular change. 19 | 20 | **************************************************************************** 21 | * Qt 5.9.3 Changes * 22 | **************************************************************************** 23 | 24 | - This release contains only minor code improvements. 25 | -------------------------------------------------------------------------------- /dist/changes-5.9.5: -------------------------------------------------------------------------------- 1 | Qt 5.9.5 is a bug-fix release. It maintains both forward and backward 2 | compatibility (source and binary) with Qt 5.9.0. 3 | 4 | For more details, refer to the online documentation included in this 5 | distribution. The documentation is also available online: 6 | 7 | http://doc.qt.io/qt-5/index.html 8 | 9 | The Qt version 5.9 series is binary compatible with the 5.8.x series. 10 | Applications compiled for 5.8 will continue to run with 5.9. 11 | 12 | Some of the changes listed in this file include issue tracking numbers 13 | corresponding to tasks in the Qt Bug Tracker: 14 | 15 | https://bugreports.qt.io/ 16 | 17 | Each of these identifiers can be entered in the bug tracker to obtain more 18 | information about a particular change. 19 | 20 | **************************************************************************** 21 | * Qt 5.9.5 Changes * 22 | **************************************************************************** 23 | 24 | - This release contains only minor code improvements. 25 | -------------------------------------------------------------------------------- /dist/changes-5.6.3: -------------------------------------------------------------------------------- 1 | Qt 5.6.3 is a bug-fix release. It maintains both forward and backward 2 | compatibility (source and binary) with Qt 5.6.0. 3 | 4 | For more details, refer to the online documentation included in this 5 | distribution. The documentation is also available online: 6 | 7 | http://doc.qt.io/qt-5/index.html 8 | 9 | The Qt version 5.6 series is binary compatible with the 5.5.x series. 10 | Applications compiled for 5.5 will continue to run with 5.6. 11 | 12 | Some of the changes listed in this file include issue tracking numbers 13 | corresponding to tasks in the Qt Bug Tracker: 14 | 15 | https://bugreports.qt.io/ 16 | 17 | Each of these identifiers can be entered in the bug tracker to obtain more 18 | information about a particular change. 19 | 20 | **************************************************************************** 21 | * Library * 22 | **************************************************************************** 23 | 24 | - This release contains only minor code improvements. 25 | -------------------------------------------------------------------------------- /dist/changes-5.9.4: -------------------------------------------------------------------------------- 1 | Qt 5.9.4 is a bug-fix release. It maintains both forward and backward 2 | compatibility (source and binary) with Qt 5.9.0. 3 | 4 | For more details, refer to the online documentation included in this 5 | distribution. The documentation is also available online: 6 | 7 | http://doc.qt.io/qt-5/index.html 8 | 9 | The Qt version 5.9 series is binary compatible with the 5.8.x series. 10 | Applications compiled for 5.8 will continue to run with 5.9. 11 | 12 | Some of the changes listed in this file include issue tracking numbers 13 | corresponding to tasks in the Qt Bug Tracker: 14 | 15 | https://bugreports.qt.io/ 16 | 17 | Each of these identifiers can be entered in the bug tracker to obtain more 18 | information about a particular change. 19 | 20 | **************************************************************************** 21 | * Qt 5.9.4 Changes * 22 | **************************************************************************** 23 | 24 | - This release contains only minor code improvements. 25 | 26 | -------------------------------------------------------------------------------- /dist/changes-5.9.6: -------------------------------------------------------------------------------- 1 | Qt 5.9.6 is a bug-fix release. It maintains both forward and backward 2 | compatibility (source and binary) with Qt 5.9.0 through 5.9.5. 3 | 4 | For more details, refer to the online documentation included in this 5 | distribution. The documentation is also available online: 6 | 7 | http://doc.qt.io/qt-5/index.html 8 | 9 | The Qt version 5.9 series is binary compatible with the 5.8.x series. 10 | Applications compiled for 5.8 will continue to run with 5.9. 11 | 12 | Some of the changes listed in this file include issue tracking numbers 13 | corresponding to tasks in the Qt Bug Tracker: 14 | 15 | https://bugreports.qt.io/ 16 | 17 | Each of these identifiers can be entered in the bug tracker to obtain more 18 | information about a particular change. 19 | 20 | **************************************************************************** 21 | * Qt 5.9.6 Changes * 22 | **************************************************************************** 23 | 24 | - This release contains only minor code improvements. 25 | -------------------------------------------------------------------------------- /dist/changes-5.1.1: -------------------------------------------------------------------------------- 1 | Qt 5.1.1 is a bug-fix release. It maintains both forward and backward 2 | compatibility (source and binary) with Qt 5.1.0. 3 | 4 | For more details, refer to the online documentation included in this 5 | distribution. The documentation is also available online: 6 | 7 | http://qt-project.org/doc/qt-5.1/ 8 | 9 | The Qt version 5.1 series is binary compatible with the 5.0.x series. 10 | Applications compiled for 5.0 will continue to run with 5.1. 11 | 12 | Some of the changes listed in this file include issue tracking numbers 13 | corresponding to tasks in the Qt Bug Tracker: 14 | 15 | http://bugreports.qt-project.org/ 16 | 17 | Each of these identifiers can be entered in the bug tracker to obtain more 18 | information about a particular change. 19 | 20 | 21 | **************************************************************************** 22 | * General * 23 | **************************************************************************** 24 | 25 | - This release contains only minor code improvements. 26 | -------------------------------------------------------------------------------- /src/xmlpatterns/parser/parser.pri: -------------------------------------------------------------------------------- 1 | hpux-g++*:QMAKE_CXXFLAGS += -mbig-switch 2 | 3 | HEADERS += $$PWD/qparsercontext_p.h \ 4 | $$PWD/qmaintainingreader_p.h \ 5 | $$PWD/qquerytransformparser_p.h \ 6 | $$PWD/qtokenizer_p.h \ 7 | $$PWD/qtokenrevealer_p.h \ 8 | $$PWD/qtokensource_p.h \ 9 | $$PWD/qtokenvalue_p.h \ 10 | $$PWD/qxquerytokenizer_p.h \ 11 | $$PWD/qxslttokenizer_p.h \ 12 | $$PWD/qxslttokenlookup_p.h 13 | 14 | SOURCES += $$PWD/qquerytransformparser.cpp \ 15 | $$PWD/qparsercontext.cpp \ 16 | $$PWD/qtokenrevealer.cpp \ 17 | $$PWD/qtokensource.cpp \ 18 | $$PWD/qxquerytokenizer.cpp \ 19 | $$PWD/qxslttokenizer.cpp \ 20 | $$PWD/qxslttokenlookup.cpp 21 | 22 | OTHER_FILES += $$PWD/querytransformparser.ypp \ 23 | $$PWD/TokenLookup.gperf 24 | DEFINES += YYLTYPE_IS_DECLARED=1 25 | -------------------------------------------------------------------------------- /examples/xmlpatterns/schema/files/contact.xsd: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/stderrBaselines/PassinastylsheetfilewhichcontainsanXQueryquery.txt: -------------------------------------------------------------------------------- 1 | virtual QExplicitlySharedDataPointer QPatternist::ExpressionFactory::createExpression(QIODevice*, const QExplicitlySharedDataPointer&, QXmlQuery::QueryLanguage, const QExplicitlySharedDataPointer&, const QUrl&) QUrl( "file:///home/fenglich/dev/qt-xslt/tests/auto/xmlpatterns/stylesheets/queryAsStylesheet.xsl" ) 2 | PUSHED STATE 0 3 | void QPatternist::XSLTTokenizer::stateOutsideDocumentElement() 4 | Now at end of input. 5 | Reducing stack by rule 3 (line 1018): 6 | -> $$ = nterm VersionDecl (: ) 7 | Stack now 0 8 | Entering state 3 9 | Now at end of input. 10 | Reducing stack by rule 10 (line 1139): 11 | -> $$ = nterm Prolog (: ) 12 | Stack now 0 3 13 | Entering state 10 14 | Now at end of input. 15 | Error XPST0003 in file:///home/fenglich/dev/qt-xslt/tests/auto/xmlpatterns/stylesheets/queryAsStylesheet.xsl, at line -1212346368, column -1214801237: syntax error, unexpected end of file 16 | Tokens Revealed: "end of file " 17 | -------------------------------------------------------------------------------- /dist/changes-5.11.2: -------------------------------------------------------------------------------- 1 | Qt 5.11.2 is a bug-fix release. It maintains both forward and backward 2 | compatibility (source and binary) with Qt 5.11.0 through 5.11.1. 3 | 4 | For more details, refer to the online documentation included in this 5 | distribution. The documentation is also available online: 6 | 7 | http://doc.qt.io/qt-5/index.html 8 | 9 | The Qt version 5.11 series is binary compatible with the 5.10.x series. 10 | Applications compiled for 5.10 will continue to run with 5.11. 11 | 12 | Some of the changes listed in this file include issue tracking numbers 13 | corresponding to tasks in the Qt Bug Tracker: 14 | 15 | https://bugreports.qt.io/ 16 | 17 | Each of these identifiers can be entered in the bug tracker to obtain more 18 | information about a particular change. 19 | 20 | **************************************************************************** 21 | * Qt 5.11.2 Changes * 22 | **************************************************************************** 23 | 24 | - [QTBUG-62691] Fixed a cyclic reference that resulted in a memory leak in XSD. 25 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/LocalElement_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph LocalElement { 2 | mindist = 2.0 3 | 1 -> 3 [label="complexType"] 4 | 1 -> 4 [label="alternative"] 5 | 1 -> 2 [label="annotation"] 6 | 1 -> 5 [label="key"] 7 | 1 -> 3 [label="simpleType"] 8 | 1 -> 5 [label="keyref"] 9 | 1 -> 5 [label="unique"] 10 | 2 -> 3 [label="complexType"] 11 | 2 -> 4 [label="alternative"] 12 | 2 -> 5 [label="key"] 13 | 2 -> 3 [label="simpleType"] 14 | 2 -> 5 [label="keyref"] 15 | 2 -> 5 [label="unique"] 16 | 3 -> 4 [label="alternative"] 17 | 3 -> 5 [label="key"] 18 | 3 -> 5 [label="keyref"] 19 | 3 -> 5 [label="unique"] 20 | 4 -> 4 [label="alternative"] 21 | 4 -> 5 [label="key"] 22 | 4 -> 5 [label="keyref"] 23 | 4 -> 5 [label="unique"] 24 | 5 -> 5 [label="key"] 25 | 5 -> 5 [label="keyref"] 26 | 5 -> 5 [label="unique"] 27 | 1 [shape=doublecircle, style=filled, color=blue] 28 | 2 [shape=doublecircle, style=filled, color=green] 29 | 3 [shape=doublecircle, style=filled, color=green] 30 | 4 [shape=doublecircle, style=filled, color=green] 31 | 5 [shape=doublecircle, style=filled, color=green] 32 | } 33 | -------------------------------------------------------------------------------- /src/xmlpatterns/schema/doc/GlobalElement_diagram.dot: -------------------------------------------------------------------------------- 1 | digraph GlobalElement { 2 | mindist = 2.0 3 | 1 -> 3 [label="complexType"] 4 | 1 -> 4 [label="alternative"] 5 | 1 -> 2 [label="annotation"] 6 | 1 -> 5 [label="key"] 7 | 1 -> 3 [label="simpleType"] 8 | 1 -> 5 [label="keyref"] 9 | 1 -> 5 [label="unique"] 10 | 2 -> 3 [label="complexType"] 11 | 2 -> 4 [label="alternative"] 12 | 2 -> 5 [label="key"] 13 | 2 -> 3 [label="simpleType"] 14 | 2 -> 5 [label="keyref"] 15 | 2 -> 5 [label="unique"] 16 | 3 -> 4 [label="alternative"] 17 | 3 -> 5 [label="key"] 18 | 3 -> 5 [label="keyref"] 19 | 3 -> 5 [label="unique"] 20 | 4 -> 4 [label="alternative"] 21 | 4 -> 5 [label="key"] 22 | 4 -> 5 [label="keyref"] 23 | 4 -> 5 [label="unique"] 24 | 5 -> 5 [label="key"] 25 | 5 -> 5 [label="keyref"] 26 | 5 -> 5 [label="unique"] 27 | 1 [shape=doublecircle, style=filled, color=blue] 28 | 2 [shape=doublecircle, style=filled, color=green] 29 | 3 [shape=doublecircle, style=filled, color=green] 30 | 4 [shape=doublecircle, style=filled, color=green] 31 | 5 [shape=doublecircle, style=filled, color=green] 32 | } 33 | -------------------------------------------------------------------------------- /src/xmlpatterns/utils/utils.pri: -------------------------------------------------------------------------------- 1 | HEADERS += $$PWD/qautoptr_p.h \ 2 | $$PWD/qcommonnamespaces_p.h \ 3 | $$PWD/qcppcastinghelper_p.h \ 4 | $$PWD/qxmldebug_p.h \ 5 | $$PWD/qgenericnamespaceresolver_p.h \ 6 | $$PWD/qpatternistlocale_p.h \ 7 | $$PWD/qnamepool_p.h \ 8 | $$PWD/qnamespaceresolver_p.h \ 9 | $$PWD/qoutputvalidator_p.h \ 10 | $$PWD/qxpathhelper_p.h \ 11 | $$PWD/qdelegatingnamespaceresolver_p.h \ 12 | $$PWD/qnodenamespaceresolver_p.h 13 | 14 | SOURCES += $$PWD/qgenericnamespaceresolver.cpp \ 15 | $$PWD/qpatternistlocale.cpp \ 16 | $$PWD/qnamepool.cpp \ 17 | $$PWD/qnamespaceresolver.cpp \ 18 | $$PWD/qoutputvalidator.cpp \ 19 | $$PWD/qxpathhelper.cpp \ 20 | $$PWD/qdelegatingnamespaceresolver.cpp \ 21 | $$PWD/qnodenamespaceresolver.cpp 22 | -------------------------------------------------------------------------------- /dist/changes-5.10.1: -------------------------------------------------------------------------------- 1 | Qt 5.10.1 is a bug-fix release. It maintains both forward and backward 2 | compatibility (source and binary) with Qt 5.10.0. 3 | 4 | For more details, refer to the online documentation included in this 5 | distribution. The documentation is also available online: 6 | 7 | http://doc.qt.io/qt-5/index.html 8 | 9 | The Qt version 5.10 series is binary compatible with the 5.9.x series. 10 | Applications compiled for 5.9 will continue to run with 5.10. 11 | 12 | Some of the changes listed in this file include issue tracking numbers 13 | corresponding to tasks in the Qt Bug Tracker: 14 | 15 | https://bugreports.qt.io/ 16 | 17 | Each of these identifiers can be entered in the bug tracker to obtain more 18 | information about a particular change. 19 | 20 | This release contains all fixes included in the Qt 5.9.4 release. 21 | 22 | **************************************************************************** 23 | * Qt 5.10.1 Changes * 24 | **************************************************************************** 25 | 26 | - This release contains only minor code improvements. 27 | -------------------------------------------------------------------------------- /tests/auto/xmlpatterns/baselines/globals.xml: -------------------------------------------------------------------------------- 1 | Global variables report for globals.gccxml

The following global, complex variables were found:

  1. constComplex2 in globals.cpp at line 17
  2. constComplex1 in globals.cpp at line 16
  3. mutableComplex2 in globals.cpp at line 15
  4. mutableComplex1 in globals.cpp at line 14

The following mutable primitives were found:

  1. mutablePrimitive2 in globals.cpp at line 2
  2. mutablePrimitive1 in globals.cpp at line 1

This report was generated on

-------------------------------------------------------------------------------- /tests/auto/xmlpatternsview/view/view.pro: -------------------------------------------------------------------------------- 1 | TARGET = xmlpatternsview 2 | TEMPLATE = app 3 | DESTDIR = $$QT.xmlpatterns.bins 4 | 5 | include (../../xmlpatterns.pri) 6 | 7 | # We add gui here, since xmlpatterns.pri pull it out. 8 | QT += xmlpatterns xml gui 9 | 10 | LIBS += -l$$XMLPATTERNS_SDK 11 | 12 | HEADERS = FunctionSignaturesView.h \ 13 | MainWindow.h \ 14 | TestCaseView.h \ 15 | TestResultView.h \ 16 | TreeSortFilter.h \ 17 | UserTestCase.h \ 18 | XDTItemItem.h 19 | 20 | SOURCES = FunctionSignaturesView.cpp \ 21 | main.cpp \ 22 | MainWindow.cpp \ 23 | TestCaseView.cpp \ 24 | TestResultView.cpp \ 25 | TreeSortFilter.cpp \ 26 | UserTestCase.cpp \ 27 | XDTItemItem.cpp 28 | 29 | FORMS = ui_BaseLinePage.ui \ 30 | ui_MainWindow.ui \ 31 | ui_TestCaseView.ui \ 32 | ui_TestResultView.ui \ 33 | ui_FunctionSignaturesView.ui 34 | 35 | INCLUDEPATH += ../../xmlpatternsxqts/lib 36 | DEFINES += QT_DISABLE_DEPRECATED_UP_TO=0 37 | --------------------------------------------------------------------------------