Manuel Collado wrote: > As DTDs and CSSs are not XML documents, and hence they can't be edited > with XXE, it's worth to have external validation facilities for this stuff. > > Is it possible to call some XXE Java code from the command line in order > to validate a DTD or CSS file alone?. > > I'm aware of 'dtdvalid', but in fact it validates an XML document > against its DTD. It validates also the DTD, but to validade the DTD > alone we are forced to write some dummy XML document.
You are not forced to write a dummy XML document. Simply use "dtdvalid -d dtd_file". For XML Schemas, use "xsdvalid -s schema_file". (xsdvalid is included in Standard Edition.) > A similar facility for CSS validation seems to be missing. Of course, we have such command line utility for our non-regression tests. But this command line utility is not included in XXE distribution. What is important when writing a CSS is to see if the document looks good with it. In order to do this, open a test document in XXE and after modifying the CSS, reload the modified CSS by simply selecting its name from the Style menu. > I'm using XXE Standard Edition. Are the mentioned facilities available > in the Professional Edition? Professional Edition has no additional utilities.

