{'fraction_non_alphanumeric': 0.015985790408525755, 'fraction_numerical': 0.0, 'mean_word_length': 4.423076923076923, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Extending xQuery with transformation operators

In this paper, we propose to extend XQuery - the XML query language - with a set of transformation operators which will produce a copy of an XML tree in which some subtrees will be inserted, replaced or deleted. These operators - very similar to the ones proposed for updating an XML document - greatly simplify the expression of some queries in making it possible to express only the modified part of a tree instead of its whole reconstruction. We compare the expressivity of XQuery extended in this way with XSLT.