Qt 4.8
|
Implements XSL-T's construction of simple content, which is different from XQuery's approach. More...
#include <qxsltsimplecontentconstructor_p.h>
Static Private Functions | |
static QString | processItem (const Item &item, bool &discard, bool &isText) |
Implements XSL-T's construction of simple content, which is different from XQuery's approach.
Definition at line 71 of file qxsltsimplecontentconstructor_p.h.
XSLTSimpleContentConstructor::XSLTSimpleContentConstructor | ( | const Expression::Ptr & | source | ) |
Definition at line 51 of file qxsltsimplecontentconstructor.cpp.
|
virtual |
Reimplemented from QPatternist::SimpleContentConstructor.
Definition at line 100 of file qxsltsimplecontentconstructor.cpp.
|
virtual |
Returns a list of Sequence Types, describing the type of each of the expression's operands. Hence, this function has a relationship to the operands() function:
- The lengths of the lists returned by expectedOperandTypes() and operands() should always be equal in length, since one cannot describe the type of a non-existent operand(and all operands must have type information). - A significant difference between the two functions is that while the type of objects in the list returned by operands() may vary between compilations/static context, simply because the particular Expression is part of different XPath expressions, the types in the list returned by expectedOperandTypes is always the same since the function/operator signature never changes.
This function should not be confused with staticType(), which returns the static type of the expression itself, not its operands. The function call is an expression where this is clear: the type of the return value is not the same as the arguments' types. The static type of the operands supplied to the expression can be determined via the staticType() function of the instances returned by operands().
If the expression has no operands, an empty list should be returned.
Reimplemented from QPatternist::SimpleContentConstructor.
Definition at line 146 of file qxsltsimplecontentconstructor.cpp.
|
inlinestaticprivate |
Definition at line 55 of file qxsltsimplecontentconstructor.cpp.
Referenced by evaluateSingleton().
|
virtual |
Reimplemented from QPatternist::SimpleContentConstructor.
Definition at line 153 of file qxsltsimplecontentconstructor.cpp.