XSL

XSL - Programmation

Marsh Posté le 18-07-2001 à 10:31:59    

qu'est ce qui faut mettre au debut d'un fichier XSL pour declarer des names spaces ?
Merci !


---------------
PDG du Microsoft's DestructorClan.
Reply

Marsh Posté le 18-07-2001 à 10:31:59   

Reply

Marsh Posté le 18-07-2001 à 11:50:00    

voila mon fichier XSL. Qd je compile il dit qu'une erreur de namespaces est detecte. Mais je ne vois pas laquelle... peut etre quelqu'un aurait une idee...
 
<?xml version="1.0" encoding="ISO-8859-1" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transfrom">
 
<xsl:template match="/">
 <xsl:apply-templates />
</xsl:template>
 
<xsl:template match="text()|@*">
 <xsl:value-of select="."/>
</xsl:template>
 
<xsl:template match="suivi_conso">
 <table border="1">
  <tr>
   <th colspan="4">Référence abonné</th>
  </tr>
  <tr>
   <th>Nom</th>
   <th>Prenom</th>
   <th>Telephone</th>
   <th>Forfait</th>
  </tr>
  <tr>
   <td>
    <xsl:value-of select="./Nom"/>
   </td>
   <td>
    <xsl:value-of select="./Prenom"/>
   </td>
   <td>
    <xsl:value-of select="./Telephone"/>
   </td>
   <td>
    <xsl:value-of select="./Forfait"/>
   </td>
  </tr>
 </table>
 
 <table border="1">
  <tr>  
   <th colspan="3">Suivi conso</th>
  </tr>
  <tr>
   <th>Temps_restant</th>
   <th>Hors_forfaitF?</th>
   <th>Hors_forfaitE?</th>
  </tr>
  <tr>
   <td>
    <xsl:value-of select="./Temps_restant"/>
   </td>
   <td>
    <xsl:value-of select="./Hors_forfaitF"/>
   </td>
   <td>
    <xsl:value-of select="./Hors_forfaitE"/>
   </td>
  </tr>
  </table>
 </xsl:template>
</xsl:stylesheet>


---------------
PDG du Microsoft's DestructorClan.
Reply

Marsh Posté le 18-07-2001 à 13:03:57    

ptitbart a écrit a écrit :

voila mon fichier XSL. Qd je compile il dit qu'une erreur de namespaces est detecte. Mais je ne vois pas laquelle... peut etre quelqu'un aurait une idee...
 
<?xml version="1.0" encoding="ISO-8859-1" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transfrom">
</xsl:stylesheet>  




Transform que c'est.
A+,

 

[edtdd]--Message édité par gilou--[/edtdd]


---------------
There's more than what can be linked! --    Iyashikei Anime Forever!    --  AngularJS c'est un framework d'engulé!  --
Reply

Marsh Posté le 18-07-2001 à 13:43:01    

gilou a écrit a écrit :

 
Transform que c'est.
A+,
 
 




 
Ca fonctionne tjs pas.
Il me met :  Line 2; Column 66; Exception : javax.xml.transform.TransformerConfigurationException: xsl:stylesheet requires attribute: version
 
La colone 66 de la 2nd ligne est le 'Transform'


---------------
PDG du Microsoft's DestructorClan.
Reply

Marsh Posté le 18-07-2001 à 20:00:54    

ptitbart a écrit a écrit :

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">




 
la version

 

[edtdd]--Message édité par youdontcare--[/edtdd]

Reply

Marsh Posté le 19-07-2001 à 09:44:53    

youdontcare a écrit a écrit :

 
 
la version  
 
 



 
Na !! en fait, c'etait :  
<?xml version="1.0" encoding="ISO-8859-1" ?>  
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transfrom" version="1.0">  
Version="1.0" etait a rajouter !!


---------------
PDG du Microsoft's DestructorClan.
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed