1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:ms="urn:schemas-microsoft-com:xslt">
<xsl:output encoding="UTF-8" method="text"></xsl:output>
<xsl:variable name="newline">
<xsl:text>
</xsl:text>
</xsl:variable>
<xsl:template match="/">Detail Restriction:<xsl:value-of select="$newline"/><xsl:apply-templates></xsl:apply-templates>
</xsl:template>
<xsl:template match="RestrictionAll">
<xsl:if test="ListeRestrictionTel/RestrictionTel"><xsl:for-each select="ListeRestrictionTel/RestrictionTel">
<xsl:call-template name="ListeRestrictionTel"></xsl:call-template>
</xsl:for-each>
</xsl:if>
<xsl:if test="RestrictionVOD">
<xsl:call-template name="RestrictionVOD"></xsl:call-template>
</xsl:if>
<xsl:if test="RestrictionData">
<xsl:call-template name="RestrictionData"></xsl:call-template>
</xsl:if>
</xsl:template>
<xsl:template name="ListeRestrictionTel" match="ListeRestrictionTel/RestrictionTel">Restriction Téléphonique:<xsl:value-of select="$newline"/>
<xsl:if test="ClientID">Identifiant client: <xsl:value-of select="ClientID"></xsl:value-of><xsl:value-of select="$newline"/>
</xsl:if>
<xsl:if test="KitID">Identifiant Kit: <xsl:value-of select="KitID"></xsl:value-of><xsl:value-of select="$newline"/>
</xsl:if>
<xsl:if test="CodeServiceRestriction">Code service restriction: <xsl:value-of select="CodeServiceRestriction"></xsl:value-of><xsl:value-of select="$newline"/>
</xsl:if>
<xsl:if test="UniqueID">Identifiant service: <xsl:value-of select="UniqueID"></xsl:value-of><xsl:value-of select="$newline"/>
</xsl:if>
<xsl:if test="LienDeco">Lien de déconnexion: <xsl:value-of select="LienDeco"></xsl:value-of><xsl:value-of select="$newline"/>
</xsl:if>
<xsl:if test="Action">Action restriction: <xsl:choose>
<xsl:when test="Action = 'ACTIVE'">Activer la restriction (ajouter le service de restriction)</xsl:when>
<xsl:when test="Action = 'DESACTIVE'">Désactiver la restriction (annuler le service de restriction)</xsl:when>
<xsl:when test="Action = 'ACTIVE_INTERNATIONAL_SPECIAUX'">Activer la restriction International et numéros spéciaux</xsl:when>
<xsl:when test="Action = 'ACTIVE_MAGHREB'">Activer la restriction Maghreb</xsl:when>
<xsl:otherwise><xsl:value-of select="Action"></xsl:value-of></xsl:otherwise>
</xsl:choose><xsl:value-of select="$newline"/>
</xsl:if>
</xsl:template>
<xsl:template name="RestrictionVOD">Restriction VOD:<xsl:value-of select="$newline"/>
<xsl:if test="RestrictionVOD/ClientID">Identifiant client: <xsl:value-of select="RestrictionVOD/ClientID"></xsl:value-of><xsl:value-of select="$newline"/>
</xsl:if>
<xsl:if test="RestrictionVOD/CodeRaisonRestriction">Code raison restriction VOD: <xsl:value-of select="RestrictionVOD/CodeRaisonRestriction"></xsl:value-of><xsl:value-of select="$newline"/>
</xsl:if>
<xsl:if test="RestrictionVOD/Action">Action restriction: <xsl:choose>
<xsl:when test="RestrictionVOD/Action = 'ACTIVE'">Activer la restriction VOD</xsl:when>
<xsl:when test="RestrictionVOD/Action = 'DESACTIVE'">Désactiver la restriction VOD</xsl:when>
<xsl:otherwise><xsl:value-of select="Action"></xsl:value-of></xsl:otherwise>
</xsl:choose><xsl:value-of select="$newline"/>
</xsl:if>
</xsl:template>
<xsl:template name="RestrictionData">Restriction Data:<xsl:value-of select="$newline"/>
<xsl:if test="RestrictionData/ClientID">Identifiant client: <xsl:value-of select="RestrictionData/ClientID"></xsl:value-of><xsl:value-of select="$newline"/>
</xsl:if>
<xsl:if test="RestrictionData/KitID">Identifiant Kit: <xsl:value-of select="RestrictionData/KitID"></xsl:value-of><xsl:value-of select="$newline"/>
</xsl:if>
<xsl:if test="RestrictionData/UniqueID != 0">Identifiant service: <xsl:value-of select="RestrictionData/UniqueID"></xsl:value-of><xsl:value-of select="$newline"/>
</xsl:if>
<xsl:if test="RestrictionData/CodeService">Code service restriction: <xsl:value-of select="RestrictionData/CodeService"></xsl:value-of><xsl:value-of select="$newline"/>
</xsl:if>
<xsl:if test="RestrictionData/LienDeco">Lien de déconnexion: <xsl:value-of select="RestrictionData/LienDeco"></xsl:value-of><xsl:value-of select="$newline"/>
</xsl:if>Type de Restriction :<xsl:choose>
<xsl:when test="RestrictionData/TypeData = 'TROISG'">DataRoaming 3G</xsl:when>
<xsl:when test="RestrictionData/TypeData = 'MVNO'">DataRoaming MVNO</xsl:when>
<xsl:when test="RestrictionData/TypeData = 'WIFI'">WIFI OFF LOAD</xsl:when>
<xsl:otherwise>
<xsl:value-of select="RestrictionData/TypeData"></xsl:value-of>
</xsl:otherwise>
</xsl:choose><xsl:value-of select="$newline"/>
<xsl:if test="RestrictionData/Action">Action restriction: <xsl:choose>
<xsl:when test="RestrictionData/Action = 'ACTIVE'">Activer la restriction</xsl:when>
<xsl:when test="RestrictionData/Action = 'DESACTIVE'">Désactiver la restriction</xsl:when>
<xsl:otherwise>
<xsl:value-of select="RestrictionData/Action"></xsl:value-of>
</xsl:otherwise>
</xsl:choose><xsl:value-of select="$newline"/>
</xsl:if>
</xsl:template>
</xsl:stylesheet> |
Partager