[mobile-broadband-provider-info] dtd: allow "mms-internet-hipri" and "mms-internet-hipri-fota" types



commit 462691c73da57cacfc953c7a6e5ec58a95c965de
Author: huntekye <unsepttrium173 gmail com>
Date:   Sat Aug 20 19:22:20 2022 +0000

    dtd: allow "mms-internet-hipri" and "mms-internet-hipri-fota" types
    
    Update to the current AT&T APNs requires specifying multiple usages.
    
    I added the possibility of using a chain of usages in one usage i.e.
    usage="<usage1>-<usage2>-...". It's not a perfect system, but it will work
    until someone needs a larger number of combinations of usages, as the ones
    I use are hard-coded.
    
    https://gitlab.gnome.org/GNOME/mobile-broadband-provider-info/-/merge_requests/81

 apns-conf.xsl          | 4 +++-
 serviceproviders.2.dtd | 2 +-
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/apns-conf.xsl b/apns-conf.xsl
index f0b4f68..9c56b59 100644
--- a/apns-conf.xsl
+++ b/apns-conf.xsl
@@ -78,7 +78,7 @@ conceived.
             </xsl:attribute>
           </xsl:if>
 
-          <xsl:if test="usage/@type = 'mms'">
+          <xsl:if test="contains(usage/@type,'mms')">
             <xsl:attribute name="mmsc">
               <xsl:value-of select="mmsc" />
             </xsl:attribute>
@@ -104,6 +104,8 @@ conceived.
             <xsl:value-of select="'default'" />
             <xsl:if test="usage/@type = 'internet'">,supl</xsl:if>
             <xsl:if test="usage/@type = 'mms'">,mms</xsl:if>
+            <xsl:if test="usage/@type = 'mms-internet-hipri'">,mms,supl,hipri</xsl:if>
+            <xsl:if test="usage/@type = 'mms-internet-hipri-fota'">,mms,supl,hipri,fota</xsl:if>
           </xsl:attribute>
         </apn>
         <xsl:text>&#xa;</xsl:text>
diff --git a/serviceproviders.2.dtd b/serviceproviders.2.dtd
index 5bba12a..3048c58 100644
--- a/serviceproviders.2.dtd
+++ b/serviceproviders.2.dtd
@@ -121,7 +121,7 @@
 <!ATTLIST plan type (prepaid|postpaid) #REQUIRED>
 
 <!ELEMENT usage EMPTY>
-<!ATTLIST usage type (internet|mms|wap|ia) #REQUIRED>
+<!ATTLIST usage type (internet|mms|wap|ia|mms-internet-hipri|mms-internet-hipri-fota) #REQUIRED>
 
 <!ELEMENT cdma (name*,
                 username?,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]