Hi, Clay...
You got me. 🙂 I sent that suggestion off the cuff, based on my
recollections that, somewhere in the past, I had gotten a tool which
supported SGML catalogs (probably SP or Jade) to work with DOCTYPE entries.
Seeing it mentioned in the help center made me relatively confident it
would work, but I had not taken the time to confirm it.
I like the purely declarative solution of using a DOCTYPE entry in the
catalog, but in lieu of proper support from Editor, your ACL solution would
be my next choice. Extra credit, though, for Sirko's tweak of using the
Public ID to let the catalogs do their thing, thus avoiding path-fiddling
headaches, such as cases where APTCUSTOM contains a list of paths, rather
than just one. Better yet might be to use the catalog_resolve function to
look up a DOCTYPE entry for the root element, so the mapping from element
name to Public ID could be maintained in the catalog, rather than in ACL
code.
Off hand, I'd say it's a toss-up whether it's better to put the code in an
editinit script or a document create callback. The latter is a bit more
work and I can't think of a case it'd catch that the former wouldn't, but
Editor hasn't been occupying my aging brain much, lately. 😛
-Brandon 🙂