W3C home > Mailing lists > Public > www-style@w3.org > June 1999

Who would learn enouh to tell better right methods!

From: Tapio Markula <tapio1@gamma.nic.fi>
Date: Fri, 11 Jun 1999 15:58:43 -0400 (EDT)
Message-Id: <3.0.5.32.19990612000146.0079b590@gamma.nic.fi>
To: www-style@w3.org
Tim Bray gave  this example:
<h:html xmlns:xdc="http://www.xml.com/books"
        xmlns:h="http://www.w3.org/HTML/1998/html4">
 <h:head><h:title>Book Review</h:title></h:head>
 <body>
  <xdc:bookreview>
   <xdc:title h:style="font-family: sans-serif;">
     XML: A Primer</xdc:title>

then this:
<html xmlns="http://www.w3.org/HTML/1998/html4"
      xmlns:xdc="http://www.xml.com/books">
 <head><title>Book Review</title></head>
 <body>
  <xdc:bookreview>
   <xdc:title>XML: A Primer</xdc:title>
   <table>
    <tr align="center">
     <td>Author</td><td>Price</td>
     <td>Pages</td><td>Date</td></tr>
    <tr align="left">
     <td><xdc:author>Simon St. Laurent</xdc:author></td>
     <td><xdc:price>31.98</xdc:price></td>
     <td><xdc:pages>352</xdc:pages></td>
     <td><xdc:date>1998/01</xdc:date></td>
    </tr>
   </table>
  </xdc:bookreview>
 </body>
</html>

BUT you don't explain how to define to the latter CSS definitions!


IE allows to use this style:
<xdc:title style="font-family: sans-serif;">

I tested
<!doctype html public "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/transitional.dtd">
<?xml version="1.0"?>
<?xml-stylesheet href="xml-sheet.css" type="text/css" ?>
<html xmlns="http://www.w3.org/TR/xhtml1"
           xmlns:author="xml-dtd.dtd"> 

DTD was defined all new elemets

BODY 
<author:container class="author2">
<author:nameclass="author">Tapio Markula</author:name></author:container>

BUT in this case IE 5.0 can't find css to 
this: <author:container class="author2"> from xml-sheet.css but it used
definition, which I made to

<link rel="STYLESHEET" type="text/css" href="sivusto2.css">

According to a worker of Mozilla this is illegal
<author:container class="author2">

But you and any don't tell, which is then the right method! Who would learn
enouh to tell better right methods!
Tapio Markula
tapio.markula@nic.fi
http://www.nic.fi/~tapio1/index.html
http://www.nic.fi/~tapio1/index_lahtotaso.html (Finnish)
kokeile http://gamma.nic.fi... jos edelliset eivšt toimi
Received on Saturday, 12 June 1999 17:15:24 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:53:59 GMT