Page 1 of 1

Errors generating schema documentation

Posted: Tue Feb 01, 2011 5:42 pm
by RogerP
When generating documentation from XSD (Ctrl-Alt-S), no matter which output style I select, I get the following error:

"-E The XML parser reported two validation errors"

This is for a valid schema, even the most trivial of schema gives me this error (the exact same eror). Please don't write and say "is your schema valid?" It is. Even with a schema containing just one untyped element I get the "two errors" message.

Is there any way of getting more information about these errors? There are no log files (can only find installation.log and files.log).

Under "XML Parser" I have "Saxon EE Validation" selected and have tired different options. I have tried the 1.0 and 1.1 versions of the above. (I always thought Saxon was a processor, I don't know which parser it uses -- Xerces or MK's own?) Anyway the schemas I'm talking about are valid (little box is green) schemas.

As far as XSL-FO goes, Apache-FOP is all there is (I know of no other freeware XSL-FO processor) and, clutching at straws, I have tried changing the XSLT processors.

Probably crucially I'm running (a fully paid for) 12.1 on Ubuntu 10.04. I didn't have this problem with v 11 and all earlier versions on Ubuntu and I don't have this issue on my Windows PC.

So what have I missed?

Re: Errors generating schema documentation

Posted: Tue Feb 01, 2011 6:01 pm
by RogerP
OK, sort of solved it but I don't know why it worked.
Did: Reset Global Options..

But nevertheless I would have liked something more meaningful than the "two errors" message.

I would also like to know what option I had set tha inadvertently caused the problem. I ended up going through each submenu in Preferences and resetting the defaults. The Saxon one made no difference BTW. Having exhausted that (but apparently not) I tried the above.

Re: Errors generating schema documentation

Posted: Tue Feb 01, 2011 6:34 pm
by adrian
Hello,

This problem could appear if you have changed the option DTD validation of the source to On(default is Off) in: Options -> Preferences -> XML -> XSLT-FO-XQuery -> XSLT -> Saxon -> Saxon-HE/PE/EE

Try to set this option and check if the problem reproduces.

Regards,
Adrian