Applying XSL on HTML/MathML bis

Subject: Applying XSL on HTML/MathML bis
From: Frederic Schwebel <schwebel@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 29 Oct 1999 10:39:56 +0200 (MET DST)
Hello

Thanks all of you for your replies. I know HTML and MathML is well-formed
XML, but there are 2 points I can't solve :
- First a practical one : I don't know how I can apply an XSL stylesheet
on an XML or HTML doc I have in my browser window (IE5)...
- And a theorical one : when I apply a stylesheet on a XML doc, every tag
that is NOT implemented by the stylesheet is ignored
For example :
XML doc :
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="./xslex2.xsl"?>
<xslTutorial>
 <bold>Hello</bold>    
 <red>I am </red> 
 <italic>fine</italic> 
 <msqrt>2x+3</msqrt>
 <B>I should be strong</B>
</xslTutorial>
---------
XSL stylesheet (xslex2.xsl)
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl";>
<xsl:template><xsl:apply-templates/></xsl:template>
<xsl:template match="text()"><xsl:value-of /></xsl:template>
<xsl:template match="bold"> 
 <P><B><xsl:value-of select="."/></B></P> 
</xsl:template> 
<xsl:template match="red"> 
 <P style="color:red"><xsl:value-of/></P> 
</xsl:template> 
<xsl:template match="italic"> 
 <P><i><xsl:value-of select="."/></i></P> 
</xsl:template>
<xsl:template match="msqrt"> 
 <P><B>Square root (<xsl:value-of select="."/>)</B></P> 
</xsl:template> 
</xsl:stylesheet>
----------

Everything works fine except that "I should be strong" is not strong !

Can you help me (again) ?
Thanks
Frederic


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


Current Thread