Enables RNA polymerase II transcription regulatory region sequence-specific DNA binding activity. Involved in several processes, including defense response to Gram-negative bacterium; determination of adult lifespan; and response to endoplasmic reticulum stress. Predicted to be located in nucleus. Expressed widely. Is an ortholog of human XBP1 (X-box binding protein 1).