52 #ifndef Patternist_XSLTTokenizer_H 53 #define Patternist_XSLTTokenizer_H 129 virtual int commenceScanOnly();
134 virtual void resumeTokenizationFrom(
const int position);
144 virtual bool isAnyAttributeAllowed()
const;
147 inline void validateElement()
const;
149 YYLTYPE currentSourceLocator()
const;
155 InsideSequenceConstructor
170 const bool isDeclaration =
false);
172 inline void queueToken(
const Token &token,
175 void queueSequenceType(
const QString &expr);
181 const bool emptynessAllowed,
183 const bool selectOnlyFirst =
false);
188 void queueAVT(
const QString &expr,
191 void hasWrittenExpression(
bool &beacon);
192 void commencingExpression(
bool &hasWrittenExpression,
195 void outsideDocumentElement();
197 void insideFunction();
199 bool attributeYesNo(
const QString &localName)
const;
205 void parseFallbacksOnly();
214 bool isStylesheetElement()
const;
229 void queueTextConstructor(
QString &chars,
230 bool &hasWrittenExpression,
238 void insideStylesheetModule();
239 void insideTemplate();
246 void queueExpression(
const QString &expr,
248 const bool wrapWithParantheses =
true);
252 void queueParams(
const NodeName parentName,
258 void queueWithParams(
const NodeName parentName,
260 const bool initialAdvance =
true);
267 void queueVariableDeclaration(
const VariableType variableType,
279 bool skipSubTree(
const bool exitOnContent =
false);
300 const bool emptynessAllowed,
303 const bool queueEmptyOnEmpty =
true);
315 const bool initialAdvance =
true,
316 const bool queueEmptyOnEmpty =
true);
320 const bool initialAdvance =
true,
321 const bool queueEmptyOnEmpty =
true);
323 void insideAttributeSet();
324 void pushState(
const State nextState);
345 void handleStandardAttributes(
const bool isXSLTElement);
363 void handleValidationAttributes(
const bool isLRE)
const;
367 void checkForParseError()
const;
378 const bool isXSLTElement,
380 const bool generateCode =
true,
381 const bool setGlobalVersion =
false);
388 const bool isInstruction =
true,
412 void queueSorting(
const bool oneSortRequired,
414 const bool speciallyTreatWhitespace =
false);
425 bool readToggleAttribute(
const QString &attributeName,
437 inline bool whitespaceToSkip()
const;
469 inline bool isXSLT()
const;
TokenSource::Queue m_tokenSource
#define QT_END_NAMESPACE
This macro expands to.
const Tokenizer::Token m_token
static qreal position(QGraphicsObject *item, QDeclarativeAnchorLine::AnchorLine anchorLine)
virtual Tokenizer::Token nextToken(YYLTYPE *const sourceLocator)
The QExplicitlySharedDataPointer class represents a pointer to an explicitly shared object...
Tokenizes XSL-T 2.0 documents.
const NamePool::Ptr m_namePool
The QUrl class provides a convenient interface for working with URLs.
The QString class provides a Unicode character string.
The QHash class is a template class that provides a hash-table-based dictionary.
The QXmlStreamAttribute class represents a single XML attribute.
#define QT_BEGIN_NAMESPACE
This macro expands to.
A TokenSource which contains one Tokenizer::Token.
The namespace for the internal API of QtXmlPatterns.
QStack< ProcessMode > m_processingMode
The State element defines configurations of objects and properties.
Base class for tokenizers that reads XML formats. This is XSLTTokenizer, and the W3C XML Schema parse...
const QHash< QString, int > m_validationAlternatives
The QXmlStreamAttributes class represents a vector of QXmlStreamAttribute.
static QTestResult::TestLocation location
Base class for components that needs to return tokens.
Base class for all tokenizers.
The QIODevice class is the base interface class of all I/O devices in Qt.
SingleTokenContainer(const Tokenizer::Token &token, const YYLTYPE &location)
ParserContext::Ptr m_parseInfo
Contains functions and classes used by the parser and tokenizer.
virtual QUrl documentURI() const
Returns the location of the document that MaintainingReader is parsing. Used for error reporting...