Who would learn enouh to tell better right methods!

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 UTC