Conventions for per-extension entities
masterWhen creating or migrating textual entities related to specific extensions (replacing the old language-snippets.ent format), follow these naming and structural conventions:
- Naming: Prefix all entity names with
ext.. - File Location: Place entities in
doc-en/reference/$extension/entities.ent. - Organization: Keep entities sorted by name, with one empty line separating each entity.
- Large Entities: If an entity is too large or complex for a shared file, create an individual file at
doc-en/entities/name.$extension.$entname.xml. The content must be a well-balanced XML fragment. DTD entity names are allowed, but XML declarations are not. - Namespaces: Define XML namespaces in the root
<entities>element only. Do not use namespaces within individual<entity>child elements.