xml: Embed module information into core XML documentation.

This change embeds the MODULEINFO block of modules
into the core XML documentation. This provides a shared
mechanism for use by both menuselect and Asterisk for
information and a definitive source of truth.

ASTERISK-29335

Change-Id: Ifbfd5c700049cf320a3e45351ac65dd89bc99d90
This commit is contained in:
Joshua C. Colp
2021-03-09 10:54:27 -04:00
committed by George Joseph
parent 7438586d8e
commit 149e5e5b86
12 changed files with 36 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
<!ELEMENT docs (application|function|agi|manager|managerEvent|info|configInfo)*>
<!ELEMENT docs (module|application|function|agi|manager|managerEvent|info|configInfo)*>
<!ATTLIST docs xmlns:xi CDATA #FIXED "http://www.w3.org/2001/XInclude">
<!ELEMENT xi:include (xi:fallback?) >
@@ -11,6 +11,24 @@
accept CDATA #IMPLIED
accept-language CDATA #IMPLIED >
<!ELEMENT module (depend*,use*,conflict*,defaultenabled?,support_level?,replacement?)>
<!ATTLIST module name CDATA #REQUIRED>
<!ATTLIST module language CDATA #REQUIRED>
<!ELEMENT support_level (#PCDATA)>
<!ELEMENT depend (#PCDATA)>
<!ATTLIST depend type CDATA #IMPLIED>
<!ELEMENT defaultenabled (#PCDATA)>
<!ELEMENT replacement (#PCDATA)>
<!ELEMENT use (#PCDATA)>
<!ATTLIST use type CDATA #IMPLIED>
<!ELEMENT conflict (#PCDATA)>
<!ELEMENT application (synopsis?,syntax?,description?,see-also?)>
<!ATTLIST application name CDATA #REQUIRED>
<!ATTLIST application language CDATA #REQUIRED>