Name Description Size Coverage
__init__.py 108 -
parse.py Parse a .dtd file into a message resource. The metadata of the parsed resource may include references to other DTD files to include with the current one, as in: <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd"> %brandDTD; 4588 -
serialize.py Serialize a resource as the contents of a DTD file. Section identifiers will be prepended to their constituent message identifiers. Multi-part identifiers will be joined with `.` between each part. Metadata is only supported for the resource, which may include references to other DTD files to include with the current one, as in: <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd"> %brandDTD; Yields each entity, comment, and empty line separately. Re-parsing a serialized DTD file is not guaranteed to result in the same Resource, as the serialization may lose information about message sections and metadata. 4257 -