From: <m....@fr...> - 2005-04-11 14:33:34
|
Hi again, I have a question about XML plugin validation features. Is it possible to use, if present, the XML Schema instead of the Doctype declaration. In many cases, I use XML schemas but need to use DOCTYPE declaration to declare external or internal entities. I can use a trick like: --- <!DOCTYPE fo:root SYSTEM "file:///F|/Public/xmlns/www.w3.org/1999/XSL/fop.xsd" [ <!ENTITY sample_ch SYSTEM "sample_ch.xml"> ]> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/1999/XSL/Format http://www.w3.org/1999/XSL/Format"> --- This works for XML plugin validation, but other tools, like FOP here, expect a DTD, not an xsd schema (1), when the SYSTEM clause is used . Thus I must correct the declaration to <!DOCTYPE fo:root [ ... ]> each time I want to compile the file ... and reset the SYSTEM clause to help editing it. Any idea ? Is such an option planned for future releases ? Thanks in advance. -- Michelle (1) That's what I imagine, when getting the message: org.apache.fop.apps.FOPException: The markup declarations contained or pointed to by the document type declaration must be well-formed. ---- Common sense is the collection of prejudices acquired by age eighteen. - Albert Einstein - |