Re: NU’s polyglot possibilities (Was: The non-polyglot elephant in the room)

On Fri, Jan 25, 2013 at 11:08 AM, Karl Dubost <karl@la-grange.net> wrote:

> Alex,
>
> Le 24 janv. 2013 à 17:14, Alex Russell a écrit :
> > who benefits from the creation of polyglot documents?
>
> I'm not sure I have the answer, but let's share a personal use case. To be
> honest I'm not sure it is entirely in the polyglot paradigm, but first of
> all:
>
> > I don't understand why that ecosystem doesn't protect its borders by
> transforming HTML documents (via an HTML parser->DOM->XML serialization) to
> XML.
>
> complexity and knowledge/habits with regards to one techno.
>
> Now for my own use case (not mainstream, very specific and honestly, it's
> working for me as it is without really being polyglot).
>
> In the spirit of bake not fried, I serve static files. The Web site is
> managed off the grid with scripts on my local computer. All the files are
> in "HTML5 with a king of xhtml syntax" no empty elements, double quotes.
> This allows me two very simple things:
>
> * a poor man well-formed check in the browser when I'm editing the
> document. (application/xhtml+xml)
>

What is well-formedness buying you that devtools, linting, or visual
inspection don't?


> * a possibility to use an xml toolchain to parse the document and produces
> a few things such as a feed, etc.
>

But can't you still do this with an HTML document and a front for your XML
pipeline that transforms it first? domjs under node, etree.HTML in
python...i could keep going. I don't see how the transformation argument
demands XML in the source document.


> then when the document is synced online, I can just serve it as text/html
>
> As I said, not a point on promoting polyglot, just an explanation
> (triggered by your comment) on why some people may use both content-types
> at the level of the document itself.
>

Thanks. Much appreciated.


> /me is returning to the evasnescence of internet limbos.
>
>
> --
> Karl Dubost, a Web opener to hire
> http://www.la-grange.net/karl/
>
>

Received on Friday, 25 January 2013 19:58:47 UTC