Re: Questions about T5 html markup generated

2009-01-20 Thread Francois Armand

Joe Chen wrote:

Hi,

2) When using br/ , an addition attribute clear=none is added. So:

br/

becomes

br clear=none

3) Probably the most annoying one, when using a, shape=rect is
appended.  So:

a href=

becomes

a href= shape=rect

  


For the record : in Tapestry 5.0.15 (don't know for other versions), 
these bugs are somewhat links to the doctype used.
I met them with XHTML 1.0 Transitional, and they are gone with XHTML 1.0 
strict.
So, don't use: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 
Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;


Use:
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN 
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;


They seems to be link to the SAX parser, so perhaps it's a combination 
of both the Doctype and the xerces version I use...


Hope it will allows other to don't spend 3 hours on that stupid problem.

--
Francois Armand
Etudes  Développements J2EE
Groupe Linagora - http://www.linagora.com
Tél.: +33 (0)1 58 18 68 28
---
http://fanf42.blogspot.com
InterLDAP - http://interldap.org 
FederID - http://www.federid.org/

Open Source identities management and federation


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Questions about T5 html markup generated

2008-09-25 Thread Daniel Alonso Sanchez



Joe Chen wrote:
 
 Hi,
   I've noticed some quirks about the html generated by T5, and I was
 wondering how I could go about changes these things.  I would appreciate
 it
 if someone could point out how to fix these things.
 
 1) When using t:body/, an additional attribute xmlns=
 http://www.w3.org/1999/xhtml; is added to the parent of the t:body/. 
 For
 example:
 
 div id=foo
   t:body/
 /div
 
 generates the following html:
 
 div id=foo xmlns=http://www.w3.org/1999/xhtml;
  ...
 /div
 
 I would like to prevent the xmlns from being appended to the parent
 element.
 
 2) When using br/ , an addition attribute clear=none is added. So:
 
 br/
 
 becomes
 
 br clear=none
 
 3) Probably the most annoying one, when using  , shape=rect is
 appended.  So:
 
   
 
 becomes
 
   
 
 
 When I attempt to enable xhtml output as outlined in this wiki posting:
 http://wiki.apache.org/tapestry/Tapestry5HowToXhtml
 
 the rendered page has a bunch of glitches due to these extra parameters
 (especially the shape=rect).
 
 
 Any way to fix these issues?
 
 Thanks,
 Joe
 
 


Same to me. I have the same problem with the ActionLink's: tapestry generate 
shape=rect property :(
-- 
View this message in context: 
http://www.nabble.com/Questions-about-T5-html-markup-generated-tp17219447p19668099.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: Questions about T5 html markup generated

2008-09-25 Thread Filip S. Adamsen
Weird. I just noticed that. I can't find either shape or rect anywhere 
in the Tapestry source, though. Oh, and the shape attribute is defined 
alright, so it shouldn't be a problem, really.


-Filip

On 2008-09-25 14:01, Daniel Alonso Sanchez wrote:
Same to me. I have the same problem with the ActionLink's: tapestry generate 
shape=rect property :(


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



Re: Questions about T5 html markup generated

2008-09-25 Thread Daniel Alonso Sanchez



Filip S. Adamsen-2 wrote:
 
 Weird. I just noticed that. I can't find either shape or rect anywhere 
 in the Tapestry source, though. Oh, and the shape attribute is defined 
 alright, so it shouldn't be a problem, really.
 
 -Filip
 
 On 2008-09-25 14:01, Daniel Alonso Sanchez wrote:
 Same to me. I have the same problem with the ActionLink's: tapestry
 generate 
 shape=rect property :(
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


Yep, maybe is not a problem, but... i am expecting for our web designer por
testing the page through w3c accesibility. If it cries... we will have a
problem XD.

I have checked the source too, Filip, but the only thing i have found is a
gigantic headache :-(. 

I will post our results in a while
-- 
View this message in context: 
http://www.nabble.com/Questions-about-T5-html-markup-generated-tp17219447p19670375.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Questions about T5 html markup generated

2008-05-13 Thread Joe Chen
Hi,
  I've noticed some quirks about the html generated by T5, and I was
wondering how I could go about changes these things.  I would appreciate it
if someone could point out how to fix these things.

1) When using t:body/, an additional attribute xmlns=
http://www.w3.org/1999/xhtml; is added to the parent of the t:body/.  For
example:

div id=foo
  t:body/
/div

generates the following html:

div id=foo xmlns=http://www.w3.org/1999/xhtml;
 ...
/div

I would like to prevent the xmlns from being appended to the parent element.

2) When using br/ , an addition attribute clear=none is added. So:

br/

becomes

br clear=none

3) Probably the most annoying one, when using a, shape=rect is
appended.  So:

a href=

becomes

a href= shape=rect


When I attempt to enable xhtml output as outlined in this wiki posting:
http://wiki.apache.org/tapestry/Tapestry5HowToXhtml

the rendered page has a bunch of glitches due to these extra parameters
(especially the shape=rect).


Any way to fix these issues?

Thanks,
Joe