On 5/19/07, <b class="gmail_sendername">James Britt</b> &lt;<a href="mailto:james@neurogami.com">james@neurogami.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Jeff, thanks for the help.<br><br><br>I followed your examples, but now get very peculiar HTML for my page<br>preview after importing the layout and regenerating the pages.<br><br>Here is an example.<br><br>The layout (example1.html
):<br><br>&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot;<br>&nbsp;&nbsp; &quot;<a href="http://localhost/TR/xhtml1/DTD/xhtml1-strict.dtd">http://localhost/TR/xhtml1/DTD/xhtml1-strict.dtd</a>&quot;&gt;<br>&lt;html xmlns=&quot;
<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>&quot; lang=&quot;en&quot;<br>&nbsp;&nbsp; xml:lang=&quot;en&quot; mv:generate=&#39;layouts/example1.rhtml&#39;&gt;<br>&nbsp;&nbsp;&lt;head&gt;&lt;title&gt;Foo&lt;/title&gt; &lt;/head&gt;
<br>&nbsp;&nbsp;&lt;body&gt;<br>&nbsp;&nbsp; &lt;div id=&quot;doc2&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;yui-gc&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;div class=&quot;yui-u first&quot; id=&quot;main&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&#39;main&#39; mv:content=&quot;yield&quot;&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;h4&gt;Welcome to my layout&lt;/h4&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;div class=&quot;yui-u&quot; id=&quot;sidebar&quot; mv:content=&quot;yield :sidebar&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;p&gt;This should be replaced by the actual sidebar&lt;/p&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/div&gt;<br>&nbsp;&nbsp; &lt;/div&gt;<br>&nbsp;&nbsp;&lt;/body&gt;<br>&lt;/html&gt;<br><br><br><br>Here is the initial page1.html<br><br>&lt;html mv:import=&quot;layouts/example1.rhtml&quot;&gt;<br>&nbsp;&nbsp;&lt;span mv:generate=&quot;example/page1.rhtml&quot;&gt;
<br>&nbsp;&nbsp; &lt;h2&gt;The Page 1 Subheader!&lt;/h2&gt;<br>&nbsp;&nbsp; &lt;div mv:block=&quot;content_for :sidebar do&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;h3&gt;Page 1 sidebar&lt;/h3&gt;<br>&nbsp;&nbsp; &lt;/div&gt;<br>&nbsp;&nbsp;&lt;/span&gt;<br>&lt;/html&gt;<br><br><br>
If I now tell MasterView to update the templates, the rhtml generation<br>is fine, but the new, auto-generated HTML for page1.html ends up with<br>two &lt;html&gt; sections (each one a copy of layouts/example.rhtml), with the
<br>original page1 html in the middle:<br><br><br>[All of example1.html]<br>[page1.html]<br>[All of example1.html]<br><br>The odd thing is, this resulting masterview template is not valid XML,<br>as it has mulitple root nodes, but it does not raise any errors.
<br><br>(I&#39;ve attached my HTML layout and page view as a tar file.)<br><br>Thanks,</blockquote><div><br><br><br></div></div>Hmm. I&#39;ll take your examples and test to see what is going on. I don&#39;t see anything obvious that is wrong. I should be able to get you a response tomorrow, getting ready to board a plane in a short while.
<br><br>Jeff<br>