🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fr.comp.text.xml
Article #9314

[XSL] Generation de namespace

#9314
From: Joel Fillon
Date: Fri, 27 Apr 2001 08:56
31 lines
1732 bytes
Bonjour,
j'aimerais generer, a partir d'un xml, un fichier xslt
via une transformation xslt !!
Or j'ai des pbs avec la generation du namespace xsl.

En ecrivant :
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   <xsl:template match="/">
      <xsl:element name="xsl:stylesheet"/>
   </xsl:template>
</xsl:stylesheet>

j'obtiens :
<xsl:stylesheet/>

Et en ecrivant :
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   <xsl:template match="/">
      <xsl:element name="xsl:stylesheet"                                      
namespace="http://www.w3.org/1999/XSL/Transform"/>
   </xsl:template>
</xsl:stylesheet>

j'obtiens :
<ns0:stylesheet xmlns:ns0="http://www.w3.org/1999/XSL/Transform"/>

J'utilise xalan, je voudrais obtenir :
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"/>

D'avance merci a qui pourra m'aider.
Joel
Technical Details
Message-ID: <3AE9342B.A6FE1E29@sophia.inria.fr>
Path: arc1-ca.pugleaf.net!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!213.56.195.71!fr.usenet-edu.net!usenet-edu.net!ciril.fr!ema.fr!bego.cma.fr!news-sop.inria.fr!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII-7-bit
X-Google-Thread: 114f60,c8d04928927d5d5f,start
X-Google-Attributes: gid114f60,public
X-Google-ArrivalTime: 2001-04-27 02:22:10 PST
Path: arc1-ca.pugleaf.net!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!213.56.195.71!fr.usenet-edu.net!usenet-edu.net!ciril.fr!ema.fr!bego.cma.fr!news-sop.inria.fr!not-for-mail
From: Joel Fillon <jfillon@sophia.inria.fr>
Newsgroups: fr.comp.text.xml
Subject: [XSL] Generation de namespace
Date: Fri, 27 Apr 2001 10:56:11 +0200
Organization: INRIA Sophia Antipolis
Lines: 31
Message-ID: <3AE9342B.A6FE1E29@sophia.inria.fr>
NNTP-Posting-Host: flambis.inria.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 4.6 [fr] (WinNT; I)
X-Accept-Language: fr-FR,en