IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

XSL/XSLT/XPATH XML Discussion :

Changement non appliqué dans un cas particulier [XSLT 2.0]


Sujet :

XSL/XSLT/XPATH XML

  1. #1
    Membre régulier
    Homme Profil pro
    Étudiant
    Inscrit en
    mai 2016
    Messages
    54
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 25
    Localisation : France, Vaucluse (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : mai 2016
    Messages : 54
    Points : 111
    Points
    111
    Par défaut Changement non appliqué dans un cas particulier
    Bonjour,

    Voilà je viens demander de l'aide car je ne comprends pas bien le problème. Je possède un document XML incomplet, et je dois rajouter une information à un endroit spécifique, sinon cela plante à la vérification. J'ai donc trouvé comment le faire, cependant cela ne tiens pas compte d'une autre instruction XSL, qui rend le resultat faux.

    Code XSL
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
     
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        xmlns:xs="http://www.w3.org/2001/XMLSchema"
        xmlns:fn="http://www.w3.org/2005/xpath-functions"
        xmlns:nc1ownsitrep="urn:fra:nc1:message:ownsitrep"
        exclude-result-prefixes="xs fn"
        version="2.0">
        <xsl:output
            method="xml"
            encoding="UTF-8"
            indent="yes"
            omit-xml-declaration="no"
        />
        <xsl:strip-space elements="*" />
     
        <!-- On cherche les documents XML entiers -->
        <xsl:template match="/">
            <!-- On cherche tous les documents XML dans le même répértoire -->
            <xsl:for-each select="collection('./?select=*.xml')" >
                <!-- On recopie les fichiers XML de sorties dans le dossier 'resultat' avec les mêmes noms que les fichiers de départ -->
                <xsl:result-document method="xml" href="resultat/{tokenize(document-uri(.), '/')[last()]}">
                    <xsl:copy>
                        <xsl:apply-templates select="node()|@*"/>
                    </xsl:copy>
                </xsl:result-document>
            </xsl:for-each>
        </xsl:template>
     
        <xsl:template match="node()|@*">
            <xsl:copy>
                <xsl:apply-templates select="node()|@*"/>
            </xsl:copy>    
        </xsl:template>  
     
        <!-- Remplace "context" par "situation" pour le message -->
        <xsl:template match="nc1ownsitrep:NC1_OWNSITREP//@context" priority="1">
            <xsl:attribute name="instance"><xsl:value-of select="."/></xsl:attribute>
        </xsl:template>
     
        <!-- Remplace "context" par "situation" pour les objets -->
        <xsl:template match="nc1ownsitrep:NC1_OWNSITREP/@context" priority="2">
            <xsl:attribute name="situation"><xsl:value-of select="."/></xsl:attribute>
        </xsl:template>
     
        <!-- Ajout de status lorsqu'il manque la section dans participant -->
        <xsl:template match="nc1ownsitrep:NC1_OWNSITREP//participant"> 
            <xsl:copy>
                <xsl:apply-templates select="@*"/>
                <xsl:choose>
                    <xsl:when test="not(./status)">
                        <xsl:variable name="elements-after" select="location"/>
                        <xsl:copy-of select="* except $elements-after"/>
                        <xsl:element name="status">
                            <xsl:element name="logisticStatus">
                                <xsl:element name="nicCode">FRMUSETTE</xsl:element>
                                <xsl:element name="count">2</xsl:element>
                            </xsl:element>
                        </xsl:element>
                        <xsl:copy-of select="$elements-after"/>
                    </xsl:when>
                    <xsl:otherwise>
                        <xsl:apply-templates select="node()"/>
                    </xsl:otherwise>
                </xsl:choose>
            </xsl:copy>
        </xsl:template>
     
        <!-- Remplace la valeur de "minorVersion" de 0 à 1 (8.1.0 vers 8.1.1) -->
        <xsl:template match="nc1ownsitrep:NC1_OWNSITREP//@minorVersion">
            <xsl:attribute name="minorVersion"><xsl:value-of select="1"/></xsl:attribute>
        </xsl:template>
     
        <!-- Suppression de certains éléments -->
        <xsl:template match="nc1ownsitrep:NC1_OWNSITREP//extFunction"/>
        <xsl:template match="nc1ownsitrep:NC1_OWNSITREP//extVersion"/>
    </xsl:stylesheet>
     
    <!-- Biraben-Bianchi Hugo -->
    <!-- Commencé le 29/07/19 -->
    <!-- Mis à jour le  le 16/09/19 -->
    Code XML d'entré
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
     
    <?xml version="1.0" encoding="UTF-8"?>
    <NC1_OWNSITREP xmlns="urn:fra:nc1:message:ownsitrep" classification="0" context="$" id="51589"
        lastChangeDatetime="2019-07-03T08:51:05.849Z" majorVersion="8" mediumVersion="1"
        minorVersion="0" urgencyLevel="0">
        <ownForcesTaskOrganizationAndPresence xmlns="">
            <participant xmlns:ns3="urn:fra:nc1:objet:groundparticipant"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="ns3:GroundParticipantType" activationChangeDatetime="2019-07-03T08:16:24.976Z"
                activationStatus="1" context="0" id="9:6229:0" isFull="1"
                lastChangeDatetime="2019-07-03T08:16:24.976Z" majorVersion="8" mediumVersion="1"
                minorVersion="0">
                <tacticalData>
                    <symbolCode>APP6B:SFZP-----------</symbolCode>
                    <distressIndicator>0</distressIndicator>
                    <referenceUnitId context="null" id="0:0:491"/>
                </tacticalData>
                <specificData>
                    <activity>0</activity>
                    <specificType>0</specificType>
                </specificData>
                <location>
                    <point>
                        <x>4.893208</x>
                        <y>49.409637</y>
                        <z>164</z>
                    </point>
                    <Qxy>0</Qxy>
                    <rotation>0E0</rotation>
                    <datetime>2019-07-03T08:15:10.383Z</datetime>
                    <quality>1</quality>
                </location>
            </participant>
            <participant xmlns:ns3="urn:fra:nc1:objet:groundparticipant"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="ns3:GroundParticipantType" activationChangeDatetime="2019-07-03T08:14:57.234Z"
                activationStatus="1" context="0" id="9:6810:0" isFull="1"
                lastChangeDatetime="2019-07-03T08:14:57.234Z" majorVersion="8" mediumVersion="1"
                minorVersion="0">
                <tacticalData>
                    <symbolCode>APP6B:SFGPEVAC--MP---</symbolCode>
                    <distressIndicator>0</distressIndicator>
                </tacticalData>
                <specificData>
                    <activity>0</activity>
                    <specificType>48</specificType>
                    <vehiclesCount>1</vehiclesCount>
                    <staffCount>0</staffCount>
                </specificData>
                <location>
                    <point>
                        <x>4.840851</x>
                        <y>49.431267</y>
                        <z>170</z>
                    </point>
                    <Qxy>0</Qxy>
                    <rotation>0E0</rotation>
                    <datetime>2019-07-03T08:14:57.233Z</datetime>
                    <quality>0</quality>
                </location>
            </participant>
            <participant xmlns:ns3="urn:fra:nc1:objet:groundparticipant"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="ns3:GroundParticipantType" activationChangeDatetime="2019-07-02T06:57:52.85Z"
                activationStatus="1" context="0" id="9:6450:0" isFull="1"
                lastChangeDatetime="2019-07-02T06:57:52.85Z" majorVersion="8" mediumVersion="1"
                minorVersion="0">
                <tacticalData>
                    <symbolCode>APP6B:SFGPEVAC--MP---</symbolCode>
                    <distressIndicator>0</distressIndicator>
                    <referenceUnitId context="null" id="0:6450:0"/>
                </tacticalData>
                <specificData>
                    <activity>0</activity>
                    <specificType>48</specificType>
                    <vehiclesCount>1</vehiclesCount>
                </specificData>
                <status>
                    <operationalStatus>
                        <fuel>3</fuel>
                        <ammunitions>3</ammunitions>
                        <rations>3</rations>
                    </operationalStatus>
                </status>
                <location>
                    <point>
                        <x>4.80039</x>
                        <y>49.387612</y>
                        <z>211</z>
                    </point>
                    <Qxy>0</Qxy>
                    <datetime>2019-07-03T07:13:23.195Z</datetime>
                    <quality>1</quality>
                </location>
            </participant>
            <participant xmlns:ns3="urn:fra:nc1:objet:groundparticipant"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="ns3:GroundParticipantType" activationChangeDatetime="2019-07-03T08:16:20.702Z"
                activationStatus="1" context="0" id="9:6476:0" isFull="1"
                lastChangeDatetime="2019-07-03T08:16:20.702Z" majorVersion="8" mediumVersion="1"
                minorVersion="0">
                <tacticalData>
                    <symbolCode>APP6B:SFGPEWMTL-MO---</symbolCode>
                    <distressIndicator>0</distressIndicator>
                    <referenceUnitId context="null" id="0:0:466"/>
                </tacticalData>
                <specificData>
                    <activity>0</activity>
                    <specificType>23</specificType>
                    <vehiclesCount>1</vehiclesCount>
                    <staffCount>0</staffCount>
                </specificData>
                <status>
                    <operationalStatus>
                        <fuel>3</fuel>
                        <ammunitions>3</ammunitions>
                        <rations>3</rations>
                    </operationalStatus>
                </status>
                <location>
                    <point>
                        <x>4.878445</x>
                        <y>49.405689</y>
                        <z>186</z>
                    </point>
                    <Qxy>0</Qxy>
                    <rotation>0E0</rotation>
                    <datetime>2019-07-03T08:12:47.332Z</datetime>
                    <quality>0</quality>
                </location>
            </participant>
            <participant xmlns:ns3="urn:fra:nc1:objet:groundparticipant"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="ns3:GroundParticipantType" activationChangeDatetime="2019-07-03T08:16:24.551Z"
                activationStatus="1" context="0" id="9:6224:0" isFull="1"
                lastChangeDatetime="2019-07-03T08:16:24.551Z" majorVersion="8" mediumVersion="1"
                minorVersion="0">
                <tacticalData>
                    <symbolCode>APP6B:SFZP-----------</symbolCode>
                    <distressIndicator>0</distressIndicator>
                    <referenceUnitId context="null" id="0:0:466"/>
                </tacticalData>
                <specificData>
                    <activity>0</activity>
                    <specificType>0</specificType>
                </specificData>
                <location>
                    <point>
                        <x>4.892521</x>
                        <y>49.406548</y>
                        <z>170</z>
                    </point>
                    <Qxy>0</Qxy>
                    <rotation>0E0</rotation>
                    <datetime>2019-07-03T08:15:13.12Z</datetime>
                    <quality>1</quality>
                </location>
            </participant>
            <participant xmlns:ns3="urn:fra:nc1:objet:groundparticipant"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="ns3:GroundParticipantType" activationChangeDatetime="2019-07-02T15:06:02.121Z"
                activationStatus="1" context="0" id="9:6448:0" isFull="1"
                lastChangeDatetime="2019-07-02T15:06:02.121Z" majorVersion="8" mediumVersion="1"
                minorVersion="0">
                <tacticalData>
                    <symbolCode>APP6B:SFGPEVAC--MP---</symbolCode>
                    <distressIndicator>0</distressIndicator>
                    <referenceUnitId context="null" id="0:6450:0"/>
                </tacticalData>
                <specificData>
                    <activity>0</activity>
                    <specificType>48</specificType>
                    <vehiclesCount>1</vehiclesCount>
                </specificData>
                <status>
                    <operationalStatus>
                        <fuel>3</fuel>
                        <ammunitions>3</ammunitions>
                        <rations>3</rations>
                    </operationalStatus>
                </status>
                <location>
                    <point>
                        <x>4.80039</x>
                        <y>49.387612</y>
                        <z>211</z>
                    </point>
                    <Qxy>0</Qxy>
                    <datetime>2019-07-03T07:14:15.728Z</datetime>
                    <quality>1</quality>
                </location>
            </participant>
            <participant xmlns:ns3="urn:fra:nc1:objet:groundparticipant"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="ns3:GroundParticipantType" activationChangeDatetime="2019-07-03T08:16:20.856Z"
                activationStatus="1" context="0" id="9:6479:0" isFull="1"
                lastChangeDatetime="2019-07-03T08:16:20.856Z" majorVersion="8" mediumVersion="1"
                minorVersion="0">
                <tacticalData>
                    <symbolCode>APP6B:SFGPEWMTL-MO---</symbolCode>
                    <distressIndicator>0</distressIndicator>
                    <referenceUnitId context="null" id="0:0:491"/>
                </tacticalData>
                <specificData>
                    <activity>0</activity>
                    <specificType>23</specificType>
                    <vehiclesCount>1</vehiclesCount>
                    <staffCount>0</staffCount>
                </specificData>
                <status>
                    <operationalStatus>
                        <fuel>3</fuel>
                        <ammunitions>3</ammunitions>
                        <rations>3</rations>
                    </operationalStatus>
                </status>
                <location>
                    <point>
                        <x>4.881535</x>
                        <y>49.404659</y>
                        <z>172</z>
                    </point>
                    <Qxy>0</Qxy>
                    <rotation>0E0</rotation>
                    <datetime>2019-07-03T08:15:05.791Z</datetime>
                    <quality>0</quality>
                </location>
            </participant>
            <participant xmlns:ns3="urn:fra:nc1:objet:groundparticipant"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="ns3:GroundParticipantType" activationChangeDatetime="2019-07-03T08:16:25.805Z"
                activationStatus="1" context="0" id="9:6468:0" isFull="1"
                lastChangeDatetime="2019-07-03T08:16:25.805Z" majorVersion="8" mediumVersion="1"
                minorVersion="0">
                <tacticalData>
                    <symbolCode>APP6B:SFGPEVAC--MP---</symbolCode>
                    <distressIndicator>0</distressIndicator>
                    <referenceUnitId context="null" id="0:0:466"/>
                </tacticalData>
                <specificData>
                    <activity>0</activity>
                    <specificType>48</specificType>
                    <vehiclesCount>1</vehiclesCount>
                </specificData>
                <location>
                    <point>
                        <x>4.873628</x>
                        <y>49.405865</y>
                        <z>183</z>
                    </point>
                    <Qxy>0</Qxy>
                    <datetime>2019-07-03T07:07:09.228Z</datetime>
                    <quality>1</quality>
                </location>
            </participant>
            <participant xmlns:ns3="urn:fra:nc1:objet:groundparticipant"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="ns3:GroundParticipantType" activationChangeDatetime="2019-07-03T08:16:21.591Z"
                activationStatus="1" context="0" id="9:6758:0" isFull="1"
                lastChangeDatetime="2019-07-03T08:16:21.591Z" majorVersion="8" mediumVersion="1"
                minorVersion="0">
                <tacticalData>
                    <symbolCode>APP6B:SFGPEVAL--MO---</symbolCode>
                    <distressIndicator>0</distressIndicator>
                    <referenceUnitId context="null" id="0:0:466"/>
                </tacticalData>
                <specificData>
                    <activity>0</activity>
                    <specificType>16</specificType>
                    <vehiclesCount>1</vehiclesCount>
                    <staffCount>0</staffCount>
                </specificData>
                <status>
                    <operationalStatus>
                        <fuel>3</fuel>
                        <ammunitions>3</ammunitions>
                        <rations>3</rations>
                    </operationalStatus>
                </status>
                <location>
                    <point>
                        <x>4.876041</x>
                        <y>49.408779</y>
                        <z>192</z>
                    </point>
                    <Qxy>0</Qxy>
                    <rotation>0E0</rotation>
                    <datetime>2019-07-03T08:15:05.874Z</datetime>
                    <quality>0</quality>
                </location>
            </participant>
            <participant xmlns:ns3="urn:fra:nc1:objet:groundparticipant"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xsi:type="ns3:GroundParticipantType" activationChangeDatetime="2019-07-03T08:16:21.92Z"
                activationStatus="1" context="0" id="9:6501:0" isFull="1"
                lastChangeDatetime="2019-07-03T08:16:21.92Z" majorVersion="8" mediumVersion="1"
                minorVersion="0">
                <tacticalData>
                    <name>MO 81</name>
                    <symbolCode>APP6B:SFGPEWOL--MO---</symbolCode>
                    <distressIndicator>0</distressIndicator>
                    <referenceUnitId context="null" id="0:0:466"/>
                </tacticalData>
                <specificData>
                    <activity>0</activity>
                    <specificType>38</specificType>
                    <vehiclesCount>1</vehiclesCount>
                    <staffCount>0</staffCount>
                </specificData>
                <status>
                    <operationalStatus>
                        <fuel>3</fuel>
                        <ammunitions>3</ammunitions>
                        <rations>3</rations>
                    </operationalStatus>
                </status>
                <location>
                    <point>
                        <x>4.884968</x>
                        <y>49.409294</y>
                        <z>174</z>
                    </point>
                    <Qxy>0</Qxy>
                    <rotation>0E0</rotation>
                    <datetime>2019-07-03T08:08:01.14Z</datetime>
                    <quality>0</quality>
                </location>
            </participant>
        </ownForcesTaskOrganizationAndPresence>
        <controlAndCoordinationMeans xmlns=""/>
    </NC1_OWNSITREP>
    Code XML de sorti
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
     
    <?xml version="1.0" encoding="UTF-8"?>
    <NC1_OWNSITREP xmlns="urn:fra:nc1:message:ownsitrep"
                   classification="0"
                   situation="$"
                   id="51589"
                   lastChangeDatetime="2019-07-03T08:51:05.849Z"
                   majorVersion="8"
                   mediumVersion="1"
                   minorVersion="1"
                   urgencyLevel="0">
       <ownForcesTaskOrganizationAndPresence xmlns="">
          <participant xmlns:ns3="urn:fra:nc1:objet:groundparticipant"
                       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                       xsi:type="ns3:GroundParticipantType"
                       activationChangeDatetime="2019-07-03T08:16:24.976Z"
                       activationStatus="1"
                       instance="0"
                       id="9:6229:0"
                       isFull="1"
                       lastChangeDatetime="2019-07-03T08:16:24.976Z"
                       majorVersion="8"
                       mediumVersion="1"
                       minorVersion="1">
             <tacticalData>
                <symbolCode>APP6B:SFZP-----------</symbolCode>
                <distressIndicator>0</distressIndicator>
                <referenceUnitId context="null" id="0:0:491"/>
             </tacticalData>
             <specificData>
                <activity>0</activity>
                <specificType>0</specificType>
             </specificData>
             <status>
                <logisticStatus>
                   <nicCode>FRMUSETTE</nicCode>
                   <count>2</count>
                </logisticStatus>
             </status>
             <location>
                <point>
                   <x>4.893208</x>
                   <y>49.409637</y>
                   <z>164</z>
                </point>
                <Qxy>0</Qxy>
                <rotation>0E0</rotation>
                <datetime>2019-07-03T08:15:10.383Z</datetime>
                <quality>1</quality>
             </location>
          </participant>
          <participant xmlns:ns3="urn:fra:nc1:objet:groundparticipant"
                       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                       xsi:type="ns3:GroundParticipantType"
                       activationChangeDatetime="2019-07-03T08:14:57.234Z"
                       activationStatus="1"
                       instance="0"
                       id="9:6810:0"
                       isFull="1"
                       lastChangeDatetime="2019-07-03T08:14:57.234Z"
                       majorVersion="8"
                       mediumVersion="1"
                       minorVersion="1">
             <tacticalData>
                <symbolCode>APP6B:SFGPEVAC--MP---</symbolCode>
                <distressIndicator>0</distressIndicator>
             </tacticalData>
             <specificData>
                <activity>0</activity>
                <specificType>48</specificType>
                <vehiclesCount>1</vehiclesCount>
                <staffCount>0</staffCount>
             </specificData>
             <status>
                <logisticStatus>
                   <nicCode>FRMUSETTE</nicCode>
                   <count>2</count>
                </logisticStatus>
             </status>
             <location>
                <point>
                   <x>4.840851</x>
                   <y>49.431267</y>
                   <z>170</z>
                </point>
                <Qxy>0</Qxy>
                <rotation>0E0</rotation>
                <datetime>2019-07-03T08:14:57.233Z</datetime>
                <quality>0</quality>
             </location>
          </participant>
          <participant xmlns:ns3="urn:fra:nc1:objet:groundparticipant"
                       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                       xsi:type="ns3:GroundParticipantType"
                       activationChangeDatetime="2019-07-02T06:57:52.85Z"
                       activationStatus="1"
                       instance="0"
                       id="9:6450:0"
                       isFull="1"
                       lastChangeDatetime="2019-07-02T06:57:52.85Z"
                       majorVersion="8"
                       mediumVersion="1"
                       minorVersion="1">
             <tacticalData>
                <symbolCode>APP6B:SFGPEVAC--MP---</symbolCode>
                <distressIndicator>0</distressIndicator>
                <referenceUnitId instance="null" id="0:6450:0"/>
             </tacticalData>
             <specificData>
                <activity>0</activity>
                <specificType>48</specificType>
                <vehiclesCount>1</vehiclesCount>
             </specificData>
             <status>
                <operationalStatus>
                   <fuel>3</fuel>
                   <ammunitions>3</ammunitions>
                   <rations>3</rations>
                </operationalStatus>
             </status>
             <location>
                <point>
                   <x>4.80039</x>
                   <y>49.387612</y>
                   <z>211</z>
                </point>
                <Qxy>0</Qxy>
                <datetime>2019-07-03T07:13:23.195Z</datetime>
                <quality>1</quality>
             </location>
          </participant>
          <participant xmlns:ns3="urn:fra:nc1:objet:groundparticipant"
                       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                       xsi:type="ns3:GroundParticipantType"
                       activationChangeDatetime="2019-07-03T08:16:20.702Z"
                       activationStatus="1"
                       instance="0"
                       id="9:6476:0"
                       isFull="1"
                       lastChangeDatetime="2019-07-03T08:16:20.702Z"
                       majorVersion="8"
                       mediumVersion="1"
                       minorVersion="1">
             <tacticalData>
                <symbolCode>APP6B:SFGPEWMTL-MO---</symbolCode>
                <distressIndicator>0</distressIndicator>
                <referenceUnitId instance="null" id="0:0:466"/>
             </tacticalData>
             <specificData>
                <activity>0</activity>
                <specificType>23</specificType>
                <vehiclesCount>1</vehiclesCount>
                <staffCount>0</staffCount>
             </specificData>
             <status>
                <operationalStatus>
                   <fuel>3</fuel>
                   <ammunitions>3</ammunitions>
                   <rations>3</rations>
                </operationalStatus>
             </status>
             <location>
                <point>
                   <x>4.878445</x>
                   <y>49.405689</y>
                   <z>186</z>
                </point>
                <Qxy>0</Qxy>
                <rotation>0E0</rotation>
                <datetime>2019-07-03T08:12:47.332Z</datetime>
                <quality>0</quality>
             </location>
          </participant>
          <participant xmlns:ns3="urn:fra:nc1:objet:groundparticipant"
                       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                       xsi:type="ns3:GroundParticipantType"
                       activationChangeDatetime="2019-07-03T08:16:24.551Z"
                       activationStatus="1"
                       instance="0"
                       id="9:6224:0"
                       isFull="1"
                       lastChangeDatetime="2019-07-03T08:16:24.551Z"
                       majorVersion="8"
                       mediumVersion="1"
                       minorVersion="1">
             <tacticalData>
                <symbolCode>APP6B:SFZP-----------</symbolCode>
                <distressIndicator>0</distressIndicator>
                <referenceUnitId context="null" id="0:0:466"/>
             </tacticalData>
             <specificData>
                <activity>0</activity>
                <specificType>0</specificType>
             </specificData>
             <status>
                <logisticStatus>
                   <nicCode>FRMUSETTE</nicCode>
                   <count>2</count>
                </logisticStatus>
             </status>
             <location>
                <point>
                   <x>4.892521</x>
                   <y>49.406548</y>
                   <z>170</z>
                </point>
                <Qxy>0</Qxy>
                <rotation>0E0</rotation>
                <datetime>2019-07-03T08:15:13.12Z</datetime>
                <quality>1</quality>
             </location>
          </participant>
          <participant xmlns:ns3="urn:fra:nc1:objet:groundparticipant"
                       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                       xsi:type="ns3:GroundParticipantType"
                       activationChangeDatetime="2019-07-02T15:06:02.121Z"
                       activationStatus="1"
                       instance="0"
                       id="9:6448:0"
                       isFull="1"
                       lastChangeDatetime="2019-07-02T15:06:02.121Z"
                       majorVersion="8"
                       mediumVersion="1"
                       minorVersion="1">
             <tacticalData>
                <symbolCode>APP6B:SFGPEVAC--MP---</symbolCode>
                <distressIndicator>0</distressIndicator>
                <referenceUnitId instance="null" id="0:6450:0"/>
             </tacticalData>
             <specificData>
                <activity>0</activity>
                <specificType>48</specificType>
                <vehiclesCount>1</vehiclesCount>
             </specificData>
             <status>
                <operationalStatus>
                   <fuel>3</fuel>
                   <ammunitions>3</ammunitions>
                   <rations>3</rations>
                </operationalStatus>
             </status>
             <location>
                <point>
                   <x>4.80039</x>
                   <y>49.387612</y>
                   <z>211</z>
                </point>
                <Qxy>0</Qxy>
                <datetime>2019-07-03T07:14:15.728Z</datetime>
                <quality>1</quality>
             </location>
          </participant>
          <participant xmlns:ns3="urn:fra:nc1:objet:groundparticipant"
                       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                       xsi:type="ns3:GroundParticipantType"
                       activationChangeDatetime="2019-07-03T08:16:20.856Z"
                       activationStatus="1"
                       instance="0"
                       id="9:6479:0"
                       isFull="1"
                       lastChangeDatetime="2019-07-03T08:16:20.856Z"
                       majorVersion="8"
                       mediumVersion="1"
                       minorVersion="1">
             <tacticalData>
                <symbolCode>APP6B:SFGPEWMTL-MO---</symbolCode>
                <distressIndicator>0</distressIndicator>
                <referenceUnitId instance="null" id="0:0:491"/>
             </tacticalData>
             <specificData>
                <activity>0</activity>
                <specificType>23</specificType>
                <vehiclesCount>1</vehiclesCount>
                <staffCount>0</staffCount>
             </specificData>
             <status>
                <operationalStatus>
                   <fuel>3</fuel>
                   <ammunitions>3</ammunitions>
                   <rations>3</rations>
                </operationalStatus>
             </status>
             <location>
                <point>
                   <x>4.881535</x>
                   <y>49.404659</y>
                   <z>172</z>
                </point>
                <Qxy>0</Qxy>
                <rotation>0E0</rotation>
                <datetime>2019-07-03T08:15:05.791Z</datetime>
                <quality>0</quality>
             </location>
          </participant>
          <participant xmlns:ns3="urn:fra:nc1:objet:groundparticipant"
                       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                       xsi:type="ns3:GroundParticipantType"
                       activationChangeDatetime="2019-07-03T08:16:25.805Z"
                       activationStatus="1"
                       instance="0"
                       id="9:6468:0"
                       isFull="1"
                       lastChangeDatetime="2019-07-03T08:16:25.805Z"
                       majorVersion="8"
                       mediumVersion="1"
                       minorVersion="1">
             <tacticalData>
                <symbolCode>APP6B:SFGPEVAC--MP---</symbolCode>
                <distressIndicator>0</distressIndicator>
                <referenceUnitId context="null" id="0:0:466"/>
             </tacticalData>
             <specificData>
                <activity>0</activity>
                <specificType>48</specificType>
                <vehiclesCount>1</vehiclesCount>
             </specificData>
             <status>
                <logisticStatus>
                   <nicCode>FRMUSETTE</nicCode>
                   <count>2</count>
                </logisticStatus>
             </status>
             <location>
                <point>
                   <x>4.873628</x>
                   <y>49.405865</y>
                   <z>183</z>
                </point>
                <Qxy>0</Qxy>
                <datetime>2019-07-03T07:07:09.228Z</datetime>
                <quality>1</quality>
             </location>
          </participant>
          <participant xmlns:ns3="urn:fra:nc1:objet:groundparticipant"
                       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                       xsi:type="ns3:GroundParticipantType"
                       activationChangeDatetime="2019-07-03T08:16:21.591Z"
                       activationStatus="1"
                       instance="0"
                       id="9:6758:0"
                       isFull="1"
                       lastChangeDatetime="2019-07-03T08:16:21.591Z"
                       majorVersion="8"
                       mediumVersion="1"
                       minorVersion="1">
             <tacticalData>
                <symbolCode>APP6B:SFGPEVAL--MO---</symbolCode>
                <distressIndicator>0</distressIndicator>
                <referenceUnitId instance="null" id="0:0:466"/>
             </tacticalData>
             <specificData>
                <activity>0</activity>
                <specificType>16</specificType>
                <vehiclesCount>1</vehiclesCount>
                <staffCount>0</staffCount>
             </specificData>
             <status>
                <operationalStatus>
                   <fuel>3</fuel>
                   <ammunitions>3</ammunitions>
                   <rations>3</rations>
                </operationalStatus>
             </status>
             <location>
                <point>
                   <x>4.876041</x>
                   <y>49.408779</y>
                   <z>192</z>
                </point>
                <Qxy>0</Qxy>
                <rotation>0E0</rotation>
                <datetime>2019-07-03T08:15:05.874Z</datetime>
                <quality>0</quality>
             </location>
          </participant>
          <participant xmlns:ns3="urn:fra:nc1:objet:groundparticipant"
                       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                       xsi:type="ns3:GroundParticipantType"
                       activationChangeDatetime="2019-07-03T08:16:21.92Z"
                       activationStatus="1"
                       instance="0"
                       id="9:6501:0"
                       isFull="1"
                       lastChangeDatetime="2019-07-03T08:16:21.92Z"
                       majorVersion="8"
                       mediumVersion="1"
                       minorVersion="1">
             <tacticalData>
                <name>MO 81</name>
                <symbolCode>APP6B:SFGPEWOL--MO---</symbolCode>
                <distressIndicator>0</distressIndicator>
                <referenceUnitId instance="null" id="0:0:466"/>
             </tacticalData>
             <specificData>
                <activity>0</activity>
                <specificType>38</specificType>
                <vehiclesCount>1</vehiclesCount>
                <staffCount>0</staffCount>
             </specificData>
             <status>
                <operationalStatus>
                   <fuel>3</fuel>
                   <ammunitions>3</ammunitions>
                   <rations>3</rations>
                </operationalStatus>
             </status>
             <location>
                <point>
                   <x>4.884968</x>
                   <y>49.409294</y>
                   <z>174</z>
                </point>
                <Qxy>0</Qxy>
                <rotation>0E0</rotation>
                <datetime>2019-07-03T08:08:01.14Z</datetime>
                <quality>0</quality>
             </location>
          </participant>
       </ownForcesTaskOrganizationAndPresence>
       <controlAndCoordinationMeans xmlns=""/>
    </NC1_OWNSITREP>
    Ici, on devrait avoir
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    <referenceUnitId context="null" id="0:0:466"/>
    avec instance à la place de context, ce qui n'est pas le cas !

    Je souhaiterais avoir une explication de ce que je fais mal. Merci d'avance !

  2. #2
    Membre régulier
    Homme Profil pro
    Étudiant
    Inscrit en
    mai 2016
    Messages
    54
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 25
    Localisation : France, Vaucluse (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : mai 2016
    Messages : 54
    Points : 111
    Points
    111
    Par défaut
    J'ai trouvé, il ne faut pas utiliser value-of mais apply-templates.

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. [XL-2007] Quelle est la formule à appliquer dans ce cas ?
    Par Abdelinho dans le forum Excel
    Réponses: 3
    Dernier message: 07/08/2010, 23h13
  2. Aide sur python et CGI dans un cas particulier
    Par Papaillou dans le forum Réseau/Web
    Réponses: 0
    Dernier message: 11/04/2009, 17h37
  3. [URL Rewriting] CSS non appliquée dans l'url réécrite
    Par guigui5931 dans le forum Apache
    Réponses: 2
    Dernier message: 06/12/2007, 15h07
  4. [VBA-E]Tester si une cellule est vide dans un cas particulier
    Par tonnick dans le forum Macros et VBA Excel
    Réponses: 3
    Dernier message: 26/09/2007, 10h12
  5. Erreur d'exécution dans un cas particulier
    Par danbern dans le forum ASP.NET
    Réponses: 5
    Dernier message: 08/02/2007, 17h16

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo