This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

like HTML


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]