To ensure the efficiency of document circulation and administration in generic enterprise day-to-day operations, appropriate workflow management systems (WFMS) are necessary. This paper aims at investigating on an appropriate framework that allows the definition of workflows for collaborative document procedures, to be used in a multiplatform and decentralized enterprise environment. This framework, called XFlow, is based on a complete independence between workflow definition and engine, and supports the simultaneous collaborative document processing. Workflows are described by means of a new XML application called XFlowML (XFlow Markup Language) largely based on XSLT Processing Model. XFlowML describes the document workflow using an agent-based approach. Each agent can participate to the workflow with one or more roles defined as XPath expressions based on a hierarchical role chart. An XFlowML document contains as many templates as agent roles participating to the workflow. The selection of the templates will establish the order with which the agents will receive the document. The document workflow engine constitutes the run-time execution support for the document processing by implementing the XFlowML constructs. A prototype of XFlow has been implemented with an extensive use of XML technologies (XSLT, XPath, XForms, SVG) and open-source tools (Cocoon, Tomcat, mySQL).