like HTML

Subject: like HTML
From: SAUREL Eric <Eric.SAUREL@xxxxxxxxxxx>
Date: Wed, 2 Aug 2000 10:23:42 +0200
hello,

i try to do like HTML for style.
i would like a result like :

<HTML>
  <BODY>
    premier paragraphe :
    texte normal
      <B>texte en gras</B>
      <I>texte en italique</I>
      <B><I>texte en gras et en italique</I></B>
    fin.
  </BODY>
</HTML>

XML file : 

<?xml version="1.0"?>
<?xml:stylesheet type="text/xsl" href="test.xsl"?>
<test>
  <para>
    premier paragraphe :
    texte normal
      <gras>texte en gras</gras>
      <italique>texte en italique</italique>
      <gras><italique>texte en gras et en italique</italique></gras>
    fin.
  </para>
</test>

XSL file :

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl";>
  <xsl:template match="/">
<HTML>
  <BODY>
	<xsl:for-each select="test">
		<xsl:apply-templates/>
	</xsl:for-each>
  </BODY>
</HTML>
  </xsl:template>
  <xsl:template match=".//italique">
	<I><xsl:value-of/></I>
  </xsl:template>
  <xsl:template match=".//gras">
	<B><xsl:value-of/></B>
  </xsl:template>
  <xsl:template match="para">
	<xsl:value-of/>
  </xsl:template>
</xsl:stylesheet>

this don't work 
can you help me ?

but i want to use the namespace : 
xmlns:xsl="http://www.w3.org/TR/WD-xsl";

thank for your help.


			Eric.

 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • like HTML
    • SAUREL Eric - Wed, 2 Aug 2000 10:23:42 +0200 <=
      • <Possible follow-ups>
      • Ben Robb - Wed, 2 Aug 2000 09:33:37 +0100