[Zope-dev] Extending dtml entity syntax

Steve Alexander steve@cat-box.net
Thu, 17 Aug 2000 19:50:29 +0100


Chris Withers has suggested extending the DTML Entity syntax to include
traversal information.

For example: &dtml-foo/bar/baz;

I just checked the XML standard. This isn't allowed in XML entities.

  http://www.w3.org/TR/1998/REC-xml-19980210#NT-Nmtoken

  EntityRef ::= '&' Name ';'

  NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | CombiningChar
               | Extender
  
  Name ::= (Letter | '_' | ':') (NameChar)*

However, we could consider &dtml-foo.bar.baz; instead.

I can't think of a nice alternative to mean &dtml-/foo/bar/baz; "from
the root, traverse as follows".

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net