Re: Framesets

Jacob Kjome <[email protected]>
Newsgroups gmane.comp.java.enhydra.xmlc
Message-ID <[email protected]>
Hi Ben,

Just wanted to mention that I tried your document out and finally noticed 
that you are using XML syntax and, most likely, you are using the html 
parser which is, rightly so, trying to fix up your document to be valid 
html.  Try this...

<!DOCTYPE html
   PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
   "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
     <title>Frameset Test</title>
     <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<frameset rows="*" cols="300, *">
         <frameset rows="50%, 50%" cols="*">
                 <frame name="sites" src="sites.html">
                 <frame name="items" src="items.html">
         </frameset>
         <frame name="maindisplay" src="main.html">
</frameset>
</html>

In the future, you should probably make sure to verify that you have a 
valid document before assuming it is a bug in XMLC.  I always check my 
documents here:
http://validator.w3.org/

Of course, if you define the dtd to be the XHTML 1.0 Framset DTD and use 
the xhtml parser, then your markup is fine, except for all the invalid 
attributes such as frameborder, border, and bordercolor.  You should use 
CSS to perform styling.

later,

Jake

At 07:12 PM 8/24/2003 -0500, Ben Sinclair wrote:
>I'm trying to compile a document that contains a frameset, like this:
>
>         <frameset rows="*" cols="300, *" frameborder="yes" border="1" 
> bordercolor="#000000">
>                 <frameset rows="50%, 50%" cols="*" frameborder="yes" 
> border="1" bordercolor="#000000">
>                         <frame name="sites" src="sites.html"/>
>                         <frame name="items" src="items.html"/>
>                 </frameset>
>                 <frame name="maindisplay" src="main.html"/>
>         </frameset>
>
>When I stream the compiled class to the browser, I get this:
>
>         <frameset rows="*" cols="300, *" frameborder="yes" border="1" 
> bordercolor="#000000">
>                 <frameset rows="50%, 50%" cols="*" frameborder="yes" 
> border="1" bordercolor="#000000">
>                         <frame name="sites" src="sites.html"/>
>                         <frame name="items" src="items.html"/>
>                         <frame name="maindisplay" src="main.html"/>
>                 </frameset>
>         </frameset>
>
>Of course, putting the third frame inside the first frameset isn't what I 
>want. Is there any way to get around this?
>
>
>_______________________________________________
>XMLC mailing list
>[email protected]
>http://www.enhydra.org/mailman/listinfo.cgi/xmlc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.