xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremias Maerki <...@jeremias-maerki.ch>
Subject Re: svn commit: r422509 - /xmlgraphics/fop/trunk/src/foschema/fop-configuration.xsd
Date Mon, 17 Jul 2006 20:48:55 GMT
The attached file fails to validate with the XSD as found in the repo.
But then, it's probably just one more of these cases that software does
not really want to just work. Probably just a bug in my editor.

On 17.07.2006 21:22:13 Simon Pepping wrote:
> On Mon, Jul 17, 2006 at 10:32:30AM +0200, Jeremias Maerki wrote:
> > Hmm, XML Schema might not be a suitable enough means to map our
> > configuration schema. I've just tried to make my main debug config file
> > validate with your schema. I've had to extend it a bit but still ended
> > up having a validation error I did not quite understand. It kept asking
> > for the "fonts" or "xml-handler" elements although they are both
> > optional. I've never done much XML Schema and never liked it much. I
> > don't know much about RelaxNG either, but I repeatedly hear that it's
> > more flexible. I know that you can define several variants of the same
> > element by chosing the type using an attribute (renderer with mime
> > attribute). I don't know if that can be done in XML Schema. Shrug.
> 
> I think XML Schema is the usual schema language for this sort of
> files. I would have been happy to use Relax-NG, but it is less
> popular, and the number of validators is smaller. In fact, Relax-NG
> allows one to express that filterList is only valid with the mime
> attribute value "application/pdf", etc.
> 
> In my version fonts is optional. xml-handler does not occur. What does
> your config file contain?


Jeremias Maerki

Mime
View raw message