summaryrefslogtreecommitdiffstats
path: root/src/xmlpatterns/environment
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmlpatterns/environment')
-rw-r--r--src/xmlpatterns/environment/createReportContext.xsl7
-rw-r--r--src/xmlpatterns/environment/qreportcontext.cpp1
-rw-r--r--src/xmlpatterns/environment/qreportcontext_p.h4
3 files changed, 11 insertions, 1 deletions
diff --git a/src/xmlpatterns/environment/createReportContext.xsl b/src/xmlpatterns/environment/createReportContext.xsl
index 89ed0b2..2c39aca 100644
--- a/src/xmlpatterns/environment/createReportContext.xsl
+++ b/src/xmlpatterns/environment/createReportContext.xsl
@@ -5,7 +5,7 @@
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** Contact: Nokia Corporation (qt-info@nokia.com)
**
-** This file is part of the Patternist project on Trolltech Labs.
+** This file is part of the Patternist project on Qt Labs.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commercial Usage
@@ -242,6 +242,11 @@ namespace QPatternist
*/]]></xsl:text>
enum ErrorCode
{
+ /**
+ * XML Schema error code.
+ */
+ XSDError,
+
<!-- The order of the calls is significant. The templates takes into account
to avoid the last comma(extractXSLT20 does this). -->
<xsl:call-template name="extractXQuery10"/>
diff --git a/src/xmlpatterns/environment/qreportcontext.cpp b/src/xmlpatterns/environment/qreportcontext.cpp
index 75ce722..f4b47a5 100644
--- a/src/xmlpatterns/environment/qreportcontext.cpp
+++ b/src/xmlpatterns/environment/qreportcontext.cpp
@@ -448,6 +448,7 @@ QString ReportContext::codeToString(const ReportContext::ErrorCode code)
case XTTE1545: result = "XTTE1545"; break;
case XTTE1550: result = "XTTE1550"; break;
case XTTE1555: result = "XTTE1555"; break;
+ case XSDError: result = "XSDError"; break;
}
Q_ASSERT_X(result, Q_FUNC_INFO, "Unknown enum value.");
diff --git a/src/xmlpatterns/environment/qreportcontext_p.h b/src/xmlpatterns/environment/qreportcontext_p.h
index f53a60f..0e4bd24 100644
--- a/src/xmlpatterns/environment/qreportcontext_p.h
+++ b/src/xmlpatterns/environment/qreportcontext_p.h
@@ -151,6 +151,10 @@ namespace QPatternist
*/
enum ErrorCode
{
+ /**
+ * XML Schema error code.
+ */
+ XSDError,
/**
* It is a static error if analysis of an expression relies on some