summaryrefslogtreecommitdiff
path: root/examples/xmlpatterns/xquery/doc/src/globalVariables.qdoc
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@theqtcompany.com>2015-01-19 14:09:01 +0100
committerFrederik Gladhorn <frederik.gladhorn@theqtcompany.com>2015-01-19 14:09:01 +0100
commit8f012dd05873d33d0ce9dc7b076418cc3096106e (patch)
tree0f3b9876cd403ddb9ad5e7dad8491576009580be /examples/xmlpatterns/xquery/doc/src/globalVariables.qdoc
parent6c7ecc08666b33596ebb997adf6eccaeda311d4c (diff)
parentb2f9aaa6b05769dd5b07dce86af3d3fc0938d42e (diff)
downloadqtxmlpatterns-8f012dd05873d33d0ce9dc7b076418cc3096106e.tar.gz
Merge remote-tracking branch 'origin/5.4' into dev
Conflicts: .qmake.conf Change-Id: Id327fd1d5933b38c3fcc3f7e9edadb34aaf7a059
Diffstat (limited to 'examples/xmlpatterns/xquery/doc/src/globalVariables.qdoc')
-rw-r--r--examples/xmlpatterns/xquery/doc/src/globalVariables.qdoc29
1 files changed, 16 insertions, 13 deletions
diff --git a/examples/xmlpatterns/xquery/doc/src/globalVariables.qdoc b/examples/xmlpatterns/xquery/doc/src/globalVariables.qdoc
index bc5011c..a11a972 100644
--- a/examples/xmlpatterns/xquery/doc/src/globalVariables.qdoc
+++ b/examples/xmlpatterns/xquery/doc/src/globalVariables.qdoc
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the documentation of the Qt Toolkit.
@@ -26,10 +26,13 @@
****************************************************************************/
/*!
- \example xmlpatterns/xquery
+ \example xquery
\title C++ Source Code Analyzer Example
\ingroup xmlpattern_examples
+ \brief Using XQuery and the \c xmlpatterns command line utility to
+ query C++ source code.
+
This example uses XQuery and the \c xmlpatterns command line utility to
query C++ source code.
@@ -68,7 +71,7 @@
Consider the declarations in this hypothetical C++ application:
- \snippet xmlpatterns/xquery/globalVariables/globals.cpp 0
+ \snippet xquery/globalVariables/globals.cpp 0
\section3 The XML description of the C++ application
@@ -76,7 +79,7 @@
\l{http://public.kitware.com/GCC_XML/HTML/Index.html} {GCC-XML}
produces this XML description:
- \quotefromfile xmlpatterns/xquery/globalVariables/globals.gccxml
+ \quotefromfile xquery/globalVariables/globals.gccxml
\printuntil
\section3 The XQuery for finding global variables
@@ -85,7 +88,7 @@
description. Here is our XQuery source. We walk through it in
\l{XQuery Code Walk-Through}.
- \quotefromfile xmlpatterns/xquery/globalVariables/reportGlobals.xq
+ \quotefromfile xquery/globalVariables/reportGlobals.xq
\printuntil
\section3 Running the XQuery
@@ -93,7 +96,7 @@
To run the XQuery using the \c xmlpatterns command line utility,
enter the following command:
- \code
+ \badcode
xmlpatterns reportGlobals.xq -param fileToOpen=globals.gccxml -output globals.html
\endcode
@@ -128,7 +131,7 @@
\c{examples/xmlpatterns/xquery/globalVariables/reportGlobals.xq}
It begins with two variable declarations that begin the XQuery:
- \quotefromfile xmlpatterns/xquery/globalVariables/reportGlobals.xq
+ \quotefromfile xquery/globalVariables/reportGlobals.xq
\skipto declare variable
\printto (:
@@ -149,7 +152,7 @@
instructions for displaying the text, and then the \c{<body>}
element.
- \quotefromfile xmlpatterns/xquery/globalVariables/reportGlobals.xq
+ \quotefromfile xquery/globalVariables/reportGlobals.xq
\skipto <html xmlns
\printuntil
@@ -158,7 +161,7 @@
the two \c{return} clauses separated by the \e {comma operator}
about halfway down:
- \quotefromfile xmlpatterns/xquery/globalVariables/reportGlobals.xq
+ \quotefromfile xquery/globalVariables/reportGlobals.xq
\skipto declare function local:report()
\printuntil };
@@ -172,7 +175,7 @@
Here is the html generated for the \c{<body>} element. Compare
it with the XQuery code above:
- \quotefromfile xmlpatterns/xquery/globalVariables/globals.html
+ \quotefromfile xquery/globalVariables/globals.html
\skipto <body>
\printuntil </body>
@@ -181,21 +184,21 @@
returns true if the variable has a complex type. The variable can
be mutable or const.
- \quotefromfile xmlpatterns/xquery/globalVariables/reportGlobals.xq
+ \quotefromfile xquery/globalVariables/reportGlobals.xq
\skipto declare function local:isComplexType
\printuntil };
\c{isPrimitive()} returns true if the variable has a primitive
type. The variable must be mutable.
- \quotefromfile xmlpatterns/xquery/globalVariables/reportGlobals.xq
+ \quotefromfile xquery/globalVariables/reportGlobals.xq
\skipto declare function local:isPrimitive
\printuntil };
\c{location()} returns a text constructed from the variable's file
and line number attributes.
- \quotefromfile xmlpatterns/xquery/globalVariables/reportGlobals.xq
+ \quotefromfile xquery/globalVariables/reportGlobals.xq
\skipto declare function local:location
\printuntil };