New nameSpace

Thibaud Elzière <[email protected]>
Newsgroups gmane.text.xml.french.tech
Message-ID <[email protected]>
Bonjour,

Je travaille à partir de fichier RSS dans lequel je rajoute un namespace 
:example, bizarrement le namespace est bien déclaré est reconnu dans le 
XML et la feuille XSLT  mais XSLT ne lit pas les éléments :

XML simplifié
--------------

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://localhost/styles/style.xsl" 
type="text/xsl" media="screen"?>
<rss xmlns:example="http://localhost/~rss"  version="2.0">
  <channel>
<example:availableLanguages>
  <example:language domain="http://localhost/index.php?q=&amp;l=en" 
code="en">EN</example:language>
  <example:language domain="http://localhost/index.php?q=&amp;l=fr" 
code="fr">FR</example:language>
  <example:language domain="http://localhost/index.php?q=&amp;l=de" 
code="de">DE</example:language>
  <example:language domain="http://localhost/index.php?q=&amp;l=es" 
code="es">ES</example:language>
</example:availableLanguages>
</channel>
</rss>


Partie du XSLT
---------------

<xsl:template match="example:availableLanguages/example:language">
<a href="{./@domain}">
<xsl:value-of select="."/>
</a>
</xsl:template>



Est-ce que j'utilise bien le bon formalisme ?

Merci

Thibaud
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.