Erlang/OTP Forums

Author Message

<  Yaws mailing list  ~  ehtml for

Guest
Posted: Sat Sep 16, 2006 9:45 pm Reply with quote
Guest
Claes Wikstrom <klacke@tail-f.com> wrote:
> J
rsaccon
Posted: Sat Sep 16, 2006 10:41 pm Reply with quote
User Joined: 09 Aug 2006 Posts: 144
Very good point. My ehtml output of my stuff-in-development which is
supposed to be HTML (and not XHTML) is currently polluted with
closing tags </tagname> where there should be just .... />

>
> Why not make a similar function like ehtml_end_tag/1?
>
> ehtml_end_tag(input) -> [];
>
> ehtml_end_tag(Tag) -> ["</", atom_to_list(Tag), ">"];
>

How is this supposed to be used in a nested ehtml statement ?

>
> BTW: CL-WHO <http://weitz.de/cl-who/> can be set to a traditional
> SGML mode instead of XML. Could be a nice idea for yaws'
> ehtml, too. <http://weitz.de/cl-who/#html-mode>
> I really don't like XHTML in times where one of the top used
> browsers doesn't support it. And there's no real benefit.

I also don't like it, because some Javascript frameworks do not play
well with XHTML on certain browsers.

regards
--
Roberto Saccon

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
View user's profile Send private message
Guest
Posted: Sat Sep 16, 2006 11:28 pm Reply with quote
Guest
Roberto Saccon <rsaccon@gmail.com> wrote:
> Very good point. My ehtml output of my stuff-in-development which is
> supposed to be HTML (and not XHTML) is currently polluted with
> closing tags </tagname> where there should be just .... />
>>
>> Why not make a similar function like ehtml_end_tag/1?
>>
>> ehtml_end_tag(input) -> [];
>>
>> ehtml_end_tag(Tag) -> ["</", atom_to_list(Tag), ">"];
>>
>
> How is this supposed to be used in a nested ehtml statement ?

Changing the following code:


ehtml_expand({Tag, Attrs}) ->
NL = ehtml_nl(Tag),
[NL, "<", atom_to_list(Tag), ehtml_attrs(Attrs), "></",
atom_to_list(Tag), ">"];

to


ehtml_expand({Tag, Attrs}) ->
NL = ehtml_nl(Tag),
[NL, "<", atom_to_list(Tag), ehtml_attrs(Attrs),
ehtml_end_tag(Tag)];



And my example to

ehtml_end_tag(input) -> [">"];
ehtml_end_tag(Tag) -> ["></", atom_to_list(Tag), ">"];


Something like that. Not tested. Just an idea.


--
Web (en): http://www.no-spoon.de/ -*- Web (de): http://www.frell.de/


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
noss
Posted: Sun Sep 17, 2006 10:08 am Reply with quote
User Joined: 09 Oct 2005 Posts: 290
Yaws must[1] make a difference between HTML and XHTML. This must be
reflected either in having {ehtml, Tree} and {exhtml, Tree} or have
the meaning of 'ehtml' configured sitewide in yaws.conf (which might
be a good idea for configuring if pretty-printing with indentation is
desired or not). Another option is to introduce .xyaws suffixes to
make ehtml spit out XHTML.

Please do _not_ turn ehtml into a xhtml producer before anything like
the above is done.

[1]: IMHO anyway. I am not partial to any markups, but when i chose a
w3 doctype to comply with i want to target it 100% and not fall back
on tag-soup parser accepting the trailing xml slash for empty elements
as suggested from some xhtml appendix.

Using the validator is important for me and a timesaver when it comes
to creating websites that work across popular browsers on the
platforms used today.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
View user's profile Send private message
Guest
Posted: Sun Sep 17, 2006 3:12 pm Reply with quote
Guest
Christian S <chsu79@gmail.com> wrote:
> Please do _not_ turn ehtml into a xhtml producer before anything like
> the above is done.

This thread was started over a year ago. ehtml was a XHTML
producer back then and still ist.


--
Web (en): http://www.no-spoon.de/ -*- Web (de): http://www.frell.de/


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
Guest
Posted: Sun Sep 17, 2006 3:46 pm Reply with quote
Guest
Christian S wrote:
> Yaws must[1] make a difference between HTML and XHTML. This must be
> reflected either in having {ehtml, Tree} and {exhtml, Tree} or have
> the meaning of 'ehtml' configured sitewide in yaws.conf (which might
> be a good idea for configuring if pretty-printing with indentation is
> desired or not). Another option is to introduce .xyaws suffixes to
> make ehtml spit out XHTML.
>
> Please do _not_ turn ehtml into a xhtml producer before anything like
> the above is done.


This i almost already done. I do however truly agree that it should
be like you say above, where ehtml and then possibly exhtml produce
different output. Needs to be done.



/klacke

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
Guest
Posted: Sun Sep 17, 2006 3:47 pm Reply with quote
Guest
Christian S wrote:
> Yaws must[1] make a difference between HTML and XHTML. This must be
> reflected either in having {ehtml, Tree} and {exhtml, Tree} or have
> the meaning of 'ehtml' configured sitewide in yaws.conf (which might
> be a good idea for configuring if pretty-printing with indentation is
> desired or not). Another option is to introduce .xyaws suffixes to
> make ehtml spit out XHTML.
>
> Please do _not_ turn ehtml into a xhtml producer before anything like
> the above is done.


This is almost already done.

I do however truly agree that it should
be like you say above, where ehtml and then possibly exhtml produce
different output. Needs to be done, no rocket science, just a bit of
legwork.



/klacke

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
noss
Posted: Sun Sep 17, 2006 4:08 pm Reply with quote
User Joined: 09 Oct 2005 Posts: 290
On 9/17/06, Claes Wikstrom <klacke@tail-f.com> wrote:
> This is almost already done.
>
> I do however truly agree that it should
> be like you say above, where ehtml and then possibly exhtml produce
> different output. Needs to be done, no rocket science, just a bit of
> legwork.

The next step of the discussion is then to pick the solution that
steps on minimal amount of toes, or however to put it.

Another parameter to the problem is that xhtml should be served under
its own mimetype. Except for IE which instead will chew it almost fine
with its text/html tagsoup parser. Is *.yaws vs *.xyaws files the
best idea, so yaws can differ the mime type automagically? Some sites
will likely want to have mixed html and xhtml content.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
View user's profile Send private message
Guest
Posted: Sun Sep 17, 2006 7:16 pm Reply with quote
Guest
Christian S wrote:
> On 9/17/06, Claes Wikstrom <klacke@tail-f.com> wrote:
>> This is almost already done.
>>
>> I do however truly agree that it should
>> be like you say above, where ehtml and then possibly exhtml produce
>> different output. Needs to be done, no rocket science, just a bit of
>> legwork.
>
> The next step of the discussion is then to pick the solution that
> steps on minimal amount of toes, or however to put it.
>


If I was to build a new app/site today - I cannot see one single
reason why I would like to ship HTML instead of XHTML today.

Can anyone on the list give me a _good_ reason to ship
HTML content. A _good_ reason, not a lame reason.

/klacke

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
Guest
Posted: Sun Sep 17, 2006 9:52 pm Reply with quote
Guest
Claes Wikstrom <klacke@tail-f.com> wrote:
> If I was to build a new app/site today - I cannot see one single
> reason why I would like to ship HTML instead of XHTML today.
>
> Can anyone on the list give me a _good_ reason to ship
> HTML content. A _good_ reason, not a lame reason.

Oh, no, please! No need for another flame war on XHTML.

IMHO it's best to give a choice when generating HTML.


--
Web (en): http://www.no-spoon.de/ -*- Web (de): http://www.frell.de/


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
rsaccon
Posted: Mon Sep 18, 2006 3:49 am Reply with quote
User Joined: 09 Aug 2006 Posts: 144
I believe, the document below lists some good reasons why to ship HTML:

http://codinginparadise.org/weblog/2005/08/xhtml-considered-harmful.html

On 9/17/06, Claes Wikstrom <klacke@tail-f.com> wrote:
> Christian S wrote:
> > On 9/17/06, Claes Wikstrom <klacke@tail-f.com> wrote:
> >> This is almost already done.
> >>
> >> I do however truly agree that it should
> >> be like you say above, where ehtml and then possibly exhtml produce
> >> different output. Needs to be done, no rocket science, just a bit of
> >> legwork.
> >
> > The next step of the discussion is then to pick the solution that
> > steps on minimal amount of toes, or however to put it.
> >
>
>
> If I was to build a new app/site today - I cannot see one single
> reason why I would like to ship HTML instead of XHTML today.
>
> Can anyone on the list give me a _good_ reason to ship
> HTML content. A _good_ reason, not a lame reason.
>
> /klacke
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Erlyaws-list mailing list
> Erlyaws-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/erlyaws-list
>


--
Roberto Saccon

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
View user's profile Send private message
Guest
Posted: Mon Sep 18, 2006 7:18 am Reply with quote
Guest
Roberto Saccon wrote:
> I believe, the document below lists some good reasons why to ship HTML:
>
> http://codinginparadise.org/weblog/2005/08/xhtml-considered-harmful.html

Good,

I had no idea the topic was this inflamed. Thanks.
Thus the solution for yaws is thus to have two separate
output modes. HTML and XHTML. Will do.



/klacke



--
Claes Wikstrom -- Caps lock is nowhere and
http://www.tail-f.com -- everything is under control
cellphone: +46 70 2097763

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
ugglan
Posted: Wed Sep 20, 2006 9:58 pm Reply with quote
User Joined: 17 Sep 2006 Posts: 16
On 9/16/06, Stefan Scholl <stesch@no-spoon.de (stesch@no-spoon.de)> wrote:
>
> Claes Wikstrom <klacke@tail-f.com (klacke@tail-f.com)> wrote:
> > J=E9r=F4me Desquilbet wrote:
> >>> How can I have ehtml generate
> >>>
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum