From: Bernard.Fichaux@alcatel.fr
Date: 22/05/2002 - 15:04
Bonjour,
Je voudrais supprimer la déclaration d'un schema XML par une feuille de
style
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XML Spy v4.1 U (http://www.xmlspy.com) by FICHAUX Bernard
(Alcatel Cit) -->
<xsl:stylesheet version="1.0" xmlns:xsl="
http://www.w3.org/1999/XSL/Transform" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" exclude-result-prefixes="xsi">
<xsl:template match="*">
<xsl:if test="name(.)='NCO'">
<xsl:element name="NCO">
<xsl:copy-of select="./*"/>
</xsl:element>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
Dans le résultat le namespace a poussé sur tous les élément sauf la rcine
"NCO"
Quelqu'un peut il m'aider?
Le Fichier d'entrée est le suivant:
<!-- edited with XML Spy v4.1 U (http://www.xmlspy.com) by FICHAUX Bernard
(Alcatel Cit) -->
<?xml-stylesheet type="text/xsl" href="M:
\fichaux1_devmnt_RL40A\nec01_comtomas\extgp\customization\cleanXsi.xsl"?>
<NCO xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../CDEGeneric.xsd">
<CONFIGURATION_PHASE>CDEGeneric</CONFIGURATION_PHASE>
<nectarPlatform>
<lanioNet lan="LANIO_1">
<addressNetworkPart>139.54.103</addressNetworkPart>
</lanioNet>
<sharedLibs>
<NEC_SITE_STATION>128</NEC_SITE_STATION>
<NXA_DM_ENDRECON_TEMPO>16</NXA_DM_ENDRECON_TEMPO>
</sharedLibs>
<startParameters>
<debug_flag>debugFullyActivated</debug_flag>
<trace_all>traceActivated</trace_all>
</startParameters>
</nectarPlatform>
<nectarStation AdministrativeName="A">
<nectarHostname>STATION_A</nectarHostname>
<stationType>PILOT</stationType>
<lanio lan="LANIO_1">
<MachinePart>65</MachinePart>
<hostname>mypc</hostname>
</lanio>
<ntp>
<host>
<mode>server</mode>
<version>3</version>
<remote>TIMESERVER</remote>
</host>
<host>
<mode>peer</mode>
<version>3</version>
<nectar>STATION_B</nectar>
</host>
</ntp>
</nectarStation>
<nectarStation AdministrativeName="B">
<nectarHostname>STATION_B</nectarHostname>
<stationType>PILOT</stationType>
<ntp>
<host>
<mode>server</mode>
<version>3</version>
<remote>TIMESERVER</remote>
</host>
<host>
<mode>peer</mode>
<version>3</version>
<nectar>STATION_A</nectar>
</host>
</ntp>
</nectarStation>
<nectarStation AdministrativeName="C">
<stationType>NON_PILOT</stationType>
<ntp>
<host>
<mode>peer</mode>
<version>3</version>
<nectar>STATION_A</nectar>
</host>
<host>
<mode>peer</mode>
<version>3</version>
<nectar>STATION_B</nectar>
</host>
</ntp>
</nectarStation>
<nectarStation AdministrativeName="D">
<stationType>NON_PILOT</stationType>
<ntp>
<host>
<mode>peer</mode>
<version>3</version>
<nectar>STATION_A</nectar>
</host>
<host>
<mode>peer</mode>
<version>3</version>
<nectar>STATION_B</nectar>
</host>
</ntp>
</nectarStation>
</NCO>
--
Devenez redacteur <XML>fr et contribuez au developpement du
xml francophone (http://xmlfr.org/infos/redacteurs/) !
Liste de diffusion "xml-tech@xmlfr.org" (http://xmlfr.org).
Cette liste est a votre disposition pour discuter en francais de
tout sujet technique lie a XML.
Pour resilier votre abonnement, envoyez un message contenant
la commande "unsubscribe" a xml-tech-request@xmlfr.org
(mailto:xml-tech-request@xmlfr.org?Subject=unsubscribe)
Archive générée par hypermail 2.1.3 le 28/06/2004 - 11:06 UTC
webmaster@xmlfr.org
|