Community
Participate
Working Groups
PDE allows an element to declare either element content or character content; but, not mixed content (both element and character content). Element content is declared for an element by specifying compositors and element references (children) on it. Character content is declared for an element by NOT specifying any compositors or element references (no children) on it. The "Translatable" field in the "Element Details" section should be disabled (and false) if the element specifies element content. If any children are added to an element, then the field should be disabled and set to false. If all children are removed from an element, then the field should be enabled.
Created attachment 73600 [details] patch
Comment on attachment 73600 [details] patch Great patch, Adam. Thanks.
Patch applied to HEAD. Target: 3.4 M1 Adam, I just realized I forgot a requirement in Comment # 0: If an element defines an attribute then the field should be disabled and set to false as well. If all children and attributes are removed from an element, then the field should be enabled. So, essentially the field should be enabled only when the DTD approximation is (#PCDATA). Sorry about that.
Created attachment 73623 [details] patch that meets the additional requirement in comment 3
Comment on attachment 73623 [details] patch that meets the additional requirement in comment 3 Thanks Adam.
Patch applied to HEAD.