On Oct 24, 2006, at 1:51 PM, Fred Drake wrote:
I got up today ready to tackle this. But, I may have succeeded by finding a trivial solution or I may have utterly failed.
To quickly get to the gist, if you add the namespace definitions in the first tag, then the nxml-mode in emacs is content. I have an example of this at the end of this note.
I bumped into two problems that stumped me. First, it is general practice to do:
Second, metal and tal constructs are attributes that are placed inside any tag.
The schema specifications imply that things are very strict. Zope and the key to the tag attributes is that these attributes can be put into the xml documents, effectively violate the base schemas, but since no one is checking, they produce the desired results. (Also, I have not looked but probably by the time the document is sent out, all the tal and metal attributes have been stripped.)
So, to really do this properly, each schema that the tal or metal are going to be used in would need to be modified to allow the tal and metal attributes. The RNC syntax does have a funny include construct that allows overriding constructs that are defined in the included file. But, that only means that it would be possible to create a maintenance nightmare if someone wanted to do that.
Fortunately, the emacs checker is as simple as all the other checkers. I discovered that I only need to change this:
(which emacs does not like) To this:
Which is probably a good idea anyhow. Maybe the first example is frowned upon. I got it from various tutorials. But, as we can see, the namespace of metal and tal is never defined in the examples that I've been looking at.
I hope this helps.
_______________________________________________ Zope3-users mailing list Zope3firstname.lastname@example.org http://mail.zope.org/mailman/listinfo/zope3-users