How to validate an XSLFO document

To validate an XSLFO document, you must include the XSLFO XML Schema in your document:

<?xml version="1.0" encoding="utf-8"?>

<fo:root

      xmlns:fo="http://www.w3.org/1999/XSL/Format"

      xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance

      xsi:schemaLocation="http://www.xmlblueprint.com/documents/fop.xsd">

      <dw-tutorial>

      </dw-tutorial>

</fo:root>

XMLBlueprint XML Editor will automatically support XML Completion for your XSLFO document based on the XML Schema. To validate your XSLFO document, open it in XMLBlueprint XML Editor and click XML > Validate.

TIP -- In XMLBlueprint, choose File > New > XML Document with DTD, Relax NG Schema, or XML Schema and paste

http://www.ibm.com/developerWorks/schema/5.8/dw-document-5.8.xsd

in the edit box. Press the Next > button, choose "root" as root element and then press the Finish button. XMLBlueprint will automatically create an empty document with a reference to the XSLFO XML Schema.