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

Safari and rendering XML with XSL

  • To: xml-dev@l...
  • Subject: Safari and rendering XML with XSL
  • From: shri kanekal <kanekalsgk@y...>
  • Date: Thu, 15 Jan 2004 12:01:58 -0800 (PST)

safari xsl
I am trying to render simple XML using XSL 
on Safari ( see xml and XSL code below) browser
on a MAC (OSX panther). The XML is displayed
without the "table" format simply as 
John G Doe
but the XSl shows up fine as an empty table.
Any ideas as tyo what's going on ?
thanks,
Shri


<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet type="text/xsl" href="name.xsl"?>

<!DOCTYPE Names [
<!ELEMENT Names (name)*>
<!ELEMENT Name (first,middle,last)>
<!ELEMENT first (#PCDATA)>
<!ELEMENT middle (#PCDATA)>
<!ELEMENT last (#PCDATA)>
]>
<Names>
<Name>
 <first>John</first>
 <middle>G</middle>
 <last>Doe</last>
</Name>
*******************************
<?xml version="1.0" ?> 
<xsl:stylesheet version="1.1"
xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<!-- 
     ****************************
     The above line works for IE5
     **************************** 
-->
<!--
<xsl:stylesheet version="1.1"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-->
<!-- 
     *********************************
     The above line works for Mozilla
     ********************************* 
-->
<xsl:template match="/">
  <html>
  <body>
    <table border="2" bgcolor="yellow">
      <tr>
        <th>first</th>
        <th>middle</th>
        <th>last</th>
       </tr>
     <xsl:for-each select="Names">
       <xsl:for-each select="Name">
         <tr>
          <td><xsl:value-of select="first"/></td>
          <td><xsl:value-of select="middle"/></td>
          <td><xsl:value-of select="last"/></td>
        </tr>
      </xsl:for-each>
      </xsl:for-each>
    </table>
  </body>
  </html>
</xsl:template>
</xsl:stylesheet>

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.