Ok here's the problem stripped down. The merge happens but the <head>
node isn't being removed from the body
Let me know if you'd like it in some other format.

templates-hidden/outer.html:

<html>
  <head>
      <meta name="description" content="Head Merge Test" />
  </head>
  <body>
    <lift:bind name="content" />
  </body>
</html>


inner.html:

<lift:surround with="outer" at="content">
  <head>
    <title>Inner</title>
  </head>
</lift:surround>

renders:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
      <meta content="Head Merge Test" name="description" />


<title>Inner</title>


<script type="text/javascript" src="/ajax_request/liftAjax.js"></
script>
</head>
<body>

  <head>
    <title>Inner</title>
  </head>



<script type="text/javascript">
// <![CDATA[
jQuery(document).ready(function() {liftAjax.lift_successRegisterGC
();});
var lift_page = "F9839766178183WH";
// ]]>
</script></body>
</html>


On Aug 26, 9:58 pm, David Pollak <feeder.of.the.be...@gmail.com>
wrote:
> On Wed, Aug 26, 2009 at 8:32 PM, E. Biggs <tacoban...@gmail.com> wrote:
>
> > Thanks David! My pages now render - although broken...  the cause
> > appears to be a failed head merge between my template's head and the
> > surrounding template's head.
>
> Can you post an example of the failing use case and I'll roll it into our
> tests and get it works?
>
>
>
>
>
>
>
> > On Aug 26, 7:51 pm, David Pollak <feeder.of.the.be...@gmail.com>
> > wrote:
> > > I've just pushed a new version live that will behave more gracefully if
> > the
> > > xsd cannot be loaded.
>
> > > On Wed, Aug 26, 2009 at 7:39 PM, Justin Reardon <
> > justin.rear...@gmail.com>wrote:
>
> > > > Probably caused by this if you're in a dev environment:
> > > >http://groups.google.com/group/liftweb/t/90750187a6c29c2c
>
> > > > On Aug 26, 9:36 pm, "E. Biggs" <tacoban...@gmail.com> wrote:
> > > > > Hi there,
>
> > > > > I just did a mvn -U jetty:run
>
> > > > > and my site that I know was working fine before is now broken with
> > > > > this error displayed in the browser for any url:
>
> > > > > org.xml.sax.SAXParseException: schema_reference.4: Failed to read
> > > > > schema document 'http://www.w3.org/2002/08/xhtml/xhtml1-
> > > > > transitional.xsd', because 1) could not find the document; 2) the
> > > > > document could not be read; 3) the root element of the document is
> > not
> > > > > <xsd:schema>.
>
> > com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseE
> > > > xception
> > > > > (ErrorHandlerWrapper.java:236)
>
> > com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error
> > > > > (ErrorHandlerWrapper.java:172)
>
> > > > com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError
> > > > > (XMLErrorReporter.java:382)
>
> > > > com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError
> > > > > (XMLErrorReporter.java:316)
>
> > com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.reportSche
> > > > maError
> > > > > (XSDHandler.java:2245)
>
> > com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.getSchema
> > > > > (XSDHandler.java:1590)
>
> > com.sun.org.apache.xerces.internal.impl.xs.traversers.XSDHandler.parseSchem
> > > > a
> > > > > (XSDHandler.java:438)
>
> > > > com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadSchema
> > > > > (XMLSchemaLoader.java:556)
>
> > > > com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.loadGrammar
> > > > > (XMLSchemaLoader.java:523)
>
> > com.sun.org.apache.xerces.internal.jaxp.validation.xs.SchemaFactoryImpl.new
> > > > Schema
> > > > > (SchemaFactoryImpl.java:206)
>
> > > > javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:489)
>
> > > > javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:521)
> > > > >         net.liftweb.http.GenericValidtor.schema(LiftRules.scala:1116)
> > > > >         net.liftweb.http.GenericValidtor.apply(LiftRules.scala:1119)
> > > > >         net.liftweb.http.GenericValidtor.apply(LiftRules.scala:1101)
>
> > > > net.liftweb.http.LiftSession$$anonfun$8.apply(LiftSession.scala:607)
>
> > > > net.liftweb.http.LiftSession$$anonfun$8.apply(LiftSession.scala:607)
> > > > >         scala.List.flatMap(List.scala:1132)
> > > > >         net.liftweb.http.LiftSession.net
> > $liftweb$http$LiftSession$$merge
> > > > > (LiftSession.scala:607)
>
> > net.liftweb.http.LiftSession$$anonfun$10$$anonfun$apply$30.apply
> > > > > (LiftSession.scala:717)
>
> > net.liftweb.http.LiftSession$$anonfun$10$$anonfun$apply$30.apply
> > > > > (LiftSession.scala:714)
> > > > >         net.liftweb.util.EmptyBox.or(Box.scala:374)
>
> > > > net.liftweb.http.LiftSession$$anonfun$10.apply(LiftSession.scala:711)
>
> > > > net.liftweb.http.LiftSession$$anonfun$10.apply(LiftSession.scala:704)
> > > > >         net.liftweb.util.EmptyBox.or(Box.scala:374)
>
> > > > net.liftweb.http.LiftSession.processRequest(LiftSession.scala:704)
> > > > > ---SNIP---
>
> > > > > Anybody else getting this? Or know what the problem could be?
>
> > > --
> > > Lift, the simply functional web frameworkhttp://liftweb.net
> > > Beginning Scalahttp://www.apress.com/book/view/1430219890
> > > Follow me:http://twitter.com/dpp
> > > Git some:http://github.com/dpp
>
> --
> Lift, the simply functional web frameworkhttp://liftweb.net
> Beginning Scalahttp://www.apress.com/book/view/1430219890
> Follow me:http://twitter.com/dpp
> Git some:http://github.com/dpp

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to