Complex sentence: STX only allows queries immediately surrounding the current node so it can quickly start transforming and outputting SAX event nodes as they arrive.
Split into simpler sentences: STX only allows queries immediately surrounding the current node. This architectural decision means it can quickly start transforming and outputting SAX event nodes as they arrive.