Menu

#699 self-reference in macro.anyXML

AMBER
closed-invalid
nobody
None
5(default)
2014-11-18
2014-11-05
No

macro.anyXML is defined by reference to itself (tagdocs.rng line 1647).

The buck has to stop somewhere, I know, but this circularity had my laptop fan spinning like mad, and I wonder if it is a bug.

Discussion

  • Sebastian Rahtz

    Sebastian Rahtz - 2014-11-05

    thats entirely normal. similarly, <hi> can contain <hi> ad nauseam.</hi></hi>

    there are many problems with macro.anyXML, but this isn't one of them

     
  • Jens Østergaard Petersen

    Sorry then, please close. I was recursively dereferencing all define elements with a period in their @name and this was the only such definition that was circular.

     

    Last edit: Jens Østergaard Petersen 2014-11-05
  • Jens Østergaard Petersen

    What I was thinking was, since you can reference any text node as <text/>, and anyXML is any element node (not in the tei or teix namespace), it would be nice if you could express macro.anyXML as something like <element/> and be released from the circularity?

     

    Last edit: Jens Østergaard Petersen 2014-11-05
  • Sebastian Rahtz

    Sebastian Rahtz - 2014-11-05

    because its recursive, not circular. each of the <element> itself has a content model of element/text, and the element therein has the same content model. etc.

     
  • Syd Bauman

    Syd Bauman - 2014-11-18
    • status: open --> closed-invalid