Handling of source documents

Saxon-B is now capable of taking as input a source tree that contains typed elements and attributes, provided that the type annotations are restricted to the built-in types. Such input can be supplied, for example by sending the document to Saxon in the form of a sequence of Receiver events with type annotations included, or by creating a user-defined implementation of the NodeInfo interface. If it is known that all nodes will be untyped, it is useful to call the method Configuration.setAllNodesUntyped(true) because this information is useful to the compiler. This is done automatically when the XSLT or XQuery processor is invoked from the command line with Saxon-B.