joseph.vallot@bnpparibas.com wrote:
>Hi all,
>
>
Bonjour dans le monde francophone du XML :-)
>I wrote some xslt, using some java extensions used via their namespaces,
>like "util" below:
>
><xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:util="http://foo.com/bar"
> xmlns="http://foo.com/myml/0.1">
>
>in the target file, I get:
>
><?xml version="1.0" encoding="UTF-8"?>
><Tfoo xmlns="http://foo.com/myml/0.1" xmlns:util="http://foo.com/bar">
><Tbar/>
></Tfoo>
>
>the "util" namespace is useless, and I would like to avoid it.
>
>How ?
>
>
Il existe un attribut spécifiquement pour cela :
exclude-result-prefixes, sur l'élément xsl:stylesheet. Cela donne :
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:util="http://foo.com/bar"
xmlns="http://foo.com/myml/0.1"
exclude-result-prefixes="util" >
Cordialement,
--
Paul TERRAY - Ingénieur Systèmes Documentaires
4Dconcept
Centre d'affaires - 22, rue Etienne de Jouy
78353 Jouy en Josas CEDEX
(Plan : http://www.4dconcept.fr/site4d/documents/planAcces01.pdf)
Tel. 01 34 58 70 70 - Fax. 01 39 46 06 90
email : terray@4dconcept.fr
--
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)
Received on Mon Dec 13 14:17:11 2004