Right. And just to be clear: the ".xhtml" is not necessary for XHTML, not just for Tapestry, but in *any* content -- and I don't think the "text/xml" mime type is necessary either. It's the DOCTYPE that has the last word.

Use the W3C validator when in doubt! Use it when not in doubt, too.

Cheers,

Paul


On May 29, 2006, at 2:11 AM, Kristian Marinkovic wrote:

hi,

to use XHTML it is NOT necessary to rename the .html file to .xhtml. all
you
have to do is to add the dtd and the <?xml....>. the only reason i could
imagine you want to rename it to .xhtml is because you could configure
your webserver to set the correct mime-type (text/xml). but if you do so
IE6 (and before) won't be able to display your document correctly.

btw. if you put <?xml version="1.0" encoding="UTF-8"?> into
your document IE6 will run in quirksmode and not in standard compliant
mode! this may cause some misbehaviours when using css :) (boxmodel...)
 although it is not absolutly correct you may omit
<?xml version="1.0" encoding="UTF-8"?>
completly (or you generate it depending on the current
browser :)).


regards,
kris





             Galam
             <[EMAIL PROTECTED]
om> An
                                        "Tapestry users"
             29.05.2006 04:32           <users@tapestry.apache.org>
K opie

Bitte antworten Thema
                    an                  Does Tapestry work with XHTML?
             "Tapestry users"
             <[EMAIL PROTECTED]
                pache.org>







Hi all,

Does Tapestry work with XHTML?

I renamed "Home.html" to "Home.xhtml" in my test application, but I got an
exception saying that

"Could not find template for page Home in locale en_US."


-----------

org.apache.hivemind.ApplicationRuntimeException Could not find template for
page Home in locale en_US. component: [EMAIL PROTECTED]  location:
context:/WEB-INF/Home.page,
line 4, column 55
1 <?xml version="1.0" encoding="UTF-8"?> 2 <!DOCTYPE page- specification PUBLIC "-//Apache Software Foundation//Tapestry Specification 4.0// EN" 3 "
http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";> 4
<page-specification
class="com.ttdev.HelloWorld.Home"> 5 <component id="subject" type="Insert">
6 <binding name="value" value="greetingSubject"/> 7 </component> 8
</page-specification>



Thanks!



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



_________________________________________________________________
Piano music podcast: http://inthehands.com
Other interesting stuff: http://innig.net



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

Reply via email to