Syntax FACTORY_DEF XQueryFactory2 [FACTORY_NAME ] [INPUT [DOCUMENT_FEATURE|QUERY_FEATURE] FEATURE_TYPE [ ]* []*]* [COLLECT_CONTEXT_ITEM_NAMESPACES (YES|NO)] [CONTEXT_ITEM_ATTR ] [QUERY_FILE ] [QUERY_EXPR ] [GENERATE_QUERY ((DELETE|DELETE_CONTENTS|REPLACE_WITH_CONTENTS) ) | ((INSERT_AFTER|INSERT_BEFORE|INSERT_FIRST|INSERT_LAST|RENAME| REPLACE_NODE|REPLACE_CONTENTS) )] [GROUP_BY []+]* [RESULT_ATTRIBUTE ] [SEPARATE_DOCUMENT_FEATURES (YES|NO)] [(XML_FILE ) | (XML_TEXT )] [OUTPUT OUTPUT FEATURE_TYPE [ ]* []*]* Overview To be documented. Output Tags The XQueryFactory2 supports the following output tag. OUTPUT To be documented. TO BE RESOLVED Overview and Output Tags sections need to be documented.