You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Tapestry <ma...@tapestryforums.com> on 2005/11/04 13:07:31 UTC
Can Tapestry 4.0 generate the XML prolog?
I am using Tapestry 4.0 beta12 and
I need to generate the following HTML header (with the XML prolog):
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Title</title>
<meta name="Description" content="Description of the project" />
<link rel="stylesheet" type="text/css" href="./css/standard/base.css" title="Standard" />
<link rel="alternate stylesheet" type="text/css" href="./css/flat/base.css" title="Flat" />
<script type="text/javascript" src="./javascript/lib.js"></script>
</head>
I couldn't produce the exact same HTML output with Tapestry.
Using the @Shell component I can set only the doctype but not the XML prolog! Moreover Tapestry adds additional newline before the doctype:
Output starts after the line
-----------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
....
Is it a bug?
And how do I set the attributes on the html tag?
I need this attributes:
xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"
What is the best solution? Do I need to write my own @Shell implementation? And if so, why is it not configurable?
Thanks for your time!
-------------------- m2f --------------------
Sent from www.TapestryForums.com
Read this topic online here: <<topic_link>>
http://www.tapestryforums.com/viewtopic.php?p=10313#10313
-------------------- m2f --------------------
RE: Can Tapestry 4.0 generate the XML prolog?
Posted by sdeby <ma...@tapestryforums.com>.
Hi,
We can use the @Shell delegate.
--------
--
Serge
-------------------- m2f --------------------
Sent from www.TapestryForums.com
Read this topic online here: <<topic_link>>
http://www.tapestryforums.com/viewtopic.php?p=10315#10315
-------------------- m2f --------------------
RE: Can Tapestry 4.0 generate the XML prolog?
Posted by Tapestry <ma...@tapestryforums.com>.
Nearly perfect solution found:
Thank you for your time!
-------------------- m2f --------------------
Sent from www.TapestryForums.com
Read this topic online here: <<topic_link>>
http://www.tapestryforums.com/viewtopic.php?p=10323#10323
-------------------- m2f --------------------