[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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)
applying xslt to html
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.