This is an internal XQUERY function and you will probably never need to call it explicitely. It is not a part of library of standard XQUERY 1.0 functions.
This function creates an XML entity of sort "processing instruction". If pivalue is an empty string, the resulting processing instruction will have no value at all, exactly as if the pivalue is not passed at all.
XML tree entity of type "processing instruction"