Edent,
@Edent@mastodon.social avatar

🆕 blog! “Let's build a website using XML!”

It is 2023. XHTML is dead and buried. HTML is a "living standard" with billions of users. So what kind of idiot would want to build a website using XML? Me. I am that idiot. Last year, I launched a "web page" which didn't use HTML. Called, appropriately enough, "YOU DON'T NEED HTML!" That (ab)used […]

👀 Read more: https://shkspr.mobi/blog/2023/08/lets-build-a-website-using-xml/

#webdev #XML

KenwoodChef,

@Edent

Okay but i actually do and not as a joke.

I want to include the semantic xml in my page source, and then a way to translate it to html client side, (per haps with js? perhaps as a template serverside?, idealy with some xml html trick idk about)

I think if people did that it would make the web more functional

tennoseremel,
@tennoseremel@lor.sh avatar

@Edent XHTML is not really dead, as living HTML5 thing has XML serialization (I used one just recently). Althô not many use it, I suppose. And people heavily dependant on JS frameworks likely will be in a world of pain… :blobcatgiggle:

tymwol,

@Edent In the early 2000s my grandfather wanted to have his academic resume as a web page. It was not that easy those days. He had a free access to a server where he could upload via FTP some files and host them. He asked me to help him to create his page that he could maintain by himself. I ended up creating a CSS and teaching him how to edit simple XML file in a notepad with just a few human-readable tags like <paragraph> ... </paragraph>. It worked for him for few several years.

box464,
@box464@mastodon.social avatar

@Edent This sure brought up memories of my early coding days. The company I worked for went all in with XSLT. We used this book, which I still own. Pages are highlighted, falling out, dog eared…it was truly our bible! Pretty hefty bible at that.

robUx4,

@Edent @mgiraldo how long until they remove XSLT from browsers?

karlaustin,

@Edent my dissertation, "Scalable software design with specific reference to web hosting automation" used XML and XSLT to convert config data to app conf files e.g. Apache conf, nginx conf depending on the desired output.

FeralRobots,
@FeralRobots@mastodon.social avatar

@Edent <slow-clap />

iamdavidobrien,
@iamdavidobrien@mastodon.social avatar

First website I built (using a CMS called Obtree) was 2008/9 when XHTML was the standard.

Site was about 2,000 pages which we whittled down, after much mud-wrestling, to ~600.

Friggin' nightmare. Had to run every single page through a parser before publishing.

And, of course, being XML, it just threw the dummy at error 0.

So you just had to fix each missing / or whatever and do it again, and again until you got zero errors.

@Edent

xgebi,
@xgebi@hachyderm.io avatar

@Edent posts like these make me check HTML’s acknowledgment page, there’s still only one Sara(h) on that page 😕

divclassbutton,
@divclassbutton@hachyderm.io avatar

@Edent One neat thing that you can do with XHTML is throw a processing instruction on your RSS feed, so readers will carry on as normal but anyone who opens it in a browser can have a nicely styled page, surprised we don't see it more.

Also, CSS namespaces are awesome.

Edent,
@Edent@mastodon.social avatar
colincogle,

@Edent @divclassbutton I was about to say you could style an RSS feed, for any humans that stumble across it, but you’ve thought of everything.

bencurthoys,
@bencurthoys@mastodon.social avatar

@Edent My software makes heavy use of XSL - generating reports and emails.

If you use a FOR XML query you can get complicated, nested data out of a SQL server database in a single query. And then an XSL Transform and some libraries can turn that into a spreadsheet, pdf, html, JSON feed, etc.

So I frequently have occasion to curse the fact that Microsoft never got round to supporting XSLT 2. Bastards.

Edent,
@Edent@mastodon.social avatar

@bencurthoys
Literally the worst thing they've (n)ever done. Bastards!

bencurthoys, (edited )
@bencurthoys@mastodon.social avatar

@Edent FWIW there was a phase about 10 years ago when Blizzard's WoW Armoury website served pure XML with a stylesheet to render it. It was like the API endpoint /was/ the website. Only major site I've ever seen that actually used the technology.

Hey did anyone invent an XSL analogue for JSON yet? I bet that would go down a storm.

marxjohnson,

@Edent When I started working there, oss-watch.ac.uk was XML (specifically TEI). I got fed up with it and wrote a TEI-to-Markdown converter, which used XSLT plus some scripts to tidy things up.

simevidas,
@simevidas@mastodon.social avatar

@Edent What’s up with <ul class="pure-menu-list">? It’s two empty list items with no text in it.

edit: I noticed because I checked the page with no CSS (View > Page Style > No Style, in Firefox), and those two empty list items stood out.

Edent,
@Edent@mastodon.social avatar

@simevidas
Ah, they're a vestigial experiment with a top menu.

Pay no attention to the man behind the curtain 😄

scudderfish,
@scudderfish@ohai.social avatar

@Edent There is far too much "JSON is the answer! What was your problem again?" I even used to like SOAP.

karlaustin,

@scudderfish @Edent my memories of soap were 20kb of markup for 1kb of data.

Edent,
@Edent@mastodon.social avatar

@karlaustin
@scudderfish
You say that like it is a bad thing 😆

karlaustin,

@Edent @scudderfish don't, I don't need even more things to keep me awake at night lol. I've managed to blank out what hellish service it was I had to use soap for.

realms,

@Edent this is my kind of idiocy.

Edent,
@Edent@mastodon.social avatar

@realms
Who are you calling an idio...

Oh. Yeah. Fair enough.

DamonHD,
@DamonHD@mastodon.social avatar

@Edent hey I write all my source as if XHTML nominally to make it possible to syntax check for all the things without knowing millions of HTML tags' cruft. Not that I do. Then I run my output through vnu for realz!

Edent,
@Edent@mastodon.social avatar

@DamonHD
Soon the whole world will be converts!

DamonHD,
@DamonHD@mastodon.social avatar

@Edent we should agree to let them down gently on DTDs, right?

tc001,

@Edent I get presented a captcha but the content of it is getting parsed as XML and fails 🤔

This is why Content-Type is important people!

(Got it both chrome and ff mobile)

image/png

Edent,
@Edent@mastodon.social avatar

@tc001
Are you accessing via a VPN or TOR?

tc001,

@Edent I am!

sue,
@sue@glasgow.social avatar

@Edent clicked this hoping to find xslt and was not disappointed 🥳

Edent,
@Edent@mastodon.social avatar

@sue
I aim to please 😀

tanepiper,
@tanepiper@tane.codes avatar

@Edent I always like to imagine there's a world where XSLT won, we improved it and never built SPAs.

tomw,
@tomw@mastodon.social avatar

@tanepiper @Edent I strongly dislike SPAs but sorry, this would be even worse

doug,
@doug@union.place avatar

deleted_by_author

  • Loading...
  • tanepiper,
    @tanepiper@tane.codes avatar

    @doug @Edent When I look back at the last 20-30 years I have to think what technologies benefited those who wanted to profit from them, or have more control over user data - those are the ones that won out.

    Thankfully a few of these techs are still around - but things like RDF 1.2 still isn't out is telling where the focus in the industry goes.

    divclassbutton,
    @divclassbutton@hachyderm.io avatar

    @doug @tanepiper @Edent Version 4 of XSLT is being specced right now.

    https://github.com/qt4cg/qtspecs

    danjac,
    @danjac@masto.ai avatar

    @Edent been a long time since I've looked at XSLT.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • webdev
  • DreamBathrooms
  • mdbf
  • ethstaker
  • magazineikmin
  • GTA5RPClips
  • rosin
  • thenastyranch
  • Youngstown
  • osvaldo12
  • slotface
  • khanakhh
  • kavyap
  • InstantRegret
  • Durango
  • megavids
  • everett
  • tester
  • cisconetworking
  • Leos
  • cubers
  • modclub
  • ngwrru68w68
  • tacticalgear
  • anitta
  • provamag3
  • normalnudes
  • JUstTest
  • lostlight
  • All magazines