[ 
https://issues.apache.org/jira/browse/TAPESTRY-2309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12582902#action_12582902
 ] 

Ivan Dubrov commented on TAPESTRY-2309:
---------------------------------------

I have the following templates:

Layout.tml (component):

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd";>
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
  <head>
    <title>Layout</title>
  </head>
  <body>
    <t:body/> 
  </body>
</html>

Start.tml (component):

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd";>
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
  <head>
    <title>Should be removed!</title>
  </head>
  <body>
    <t:container>
          <t:layout>
        Content!    
      </t:layout>
    </t:container>
  </body>
</html>

The idea is that I want to make Start.tml previewable in browser, so I've added 
outer tags html, head (with reference to the preview-friendly .css), body. But 
when application is running, I want these tags to be removed (since they are 
rendered by the layout component).

Expected result (formatted):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml";>
  <head>
    <link href="assets/tapestry/default.css" rel="stylesheet" type="text/css">
    <title>Layout</title>
  </head>
  <body>Content!</body>
</html>

But I get this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml";>
  <head>
    <link href="assets/tapestry/default.css" rel="stylesheet" type="text/css">
    <title>Should be removed!</title>
  </head>
  <body>
    <html xmlns="http://www.w3.org/1999/xhtml";>
      <head>
        <title>Layout</title>
      </head>
      <body>Content!</body>
    </html>
  </body>
</html>


> t:container should remove outer elements
> ----------------------------------------
>
>                 Key: TAPESTRY-2309
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2309
>             Project: Tapestry
>          Issue Type: Sub-task
>            Reporter: Ivan Dubrov
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to