George wrote:
If you have both a DTD specified and a schema oXygen will validate by default against the schema. That can be controlled from Options->Preferences -- XML / XML Parser -- XML Parser Properties -- "Ignore the DTD for validation if a schema is specified". However, the DTD is still used and the default attributes as specified in the DTD appear in the document before that is validated against the specified schema.
This seems like a bug in Oxygen. Am I right about this? In other words, if the "Ignore the DTD for validation if a schema is specified" checkbox is ticked, then Oxygen should
not use the DTD, and therefore it should
not find the entry in
http://www.w3.org/MarkUp/DTD/xhtml-script-1.mod that assigns an xml:space attribute to the <script> element. And if it doesn't find that entry, then Aliman's document should validate, right (assuming it's extended with a valid body and closing html tag)?
Basically, I'm trying to work out what's at fault here. Is it the XHTML code that Aliman and I have been trying to write, or is it the validator(s), or is it the XHTML+RDFa spec, or even some combination of these?
All I want is to be able to write an XHTML+RDFa document that:
- validates in Oxygen, and
- validates in the W3C validator, and
- is capable of containing <style> and <script> elements and any other valid XHTML Strict elements (and, for that matter, XHTML Strict entities).
Is that too much to ask?

Sorry for expressing my frustration so frankly, but as you can see, I've been spending quite a bit of time on this!
Thanks again for all the help so far,
Sam