News for hackers. Stuff that matters.
Re:The evolution of the web, and a eulogy for XHTML2 by acdha on Sunday October 27, 2019 @08:29AM (#21369303)
I wish the XML community had given proper priority to usability along with quality tooling and examples. There was a solid decade where people would work on a spec which sounded cool but effectively never shipped from the perspective of working developers or did so with enough bugs/inconsistent support/poor performance/bad UX that it was a net cost. As a simple example, you still can’t use XPath 2 portably because libxml2 never implemented it – absolutely nothing that the XML standards community was working on had even 5% of the value that would have come from fixing that or countless similar problems which had a constant pressure to stop using XML. The same was true of good documentation and examples: the assumption was that other people would take time to learn these convoluted specs but most of them started using JSON instead because they could ship so much faster.
Re:The evolution of the web, and a eulogy for XHTML2 by zmix on Sunday October 27, 2019 @02:06PM (#21371362)
> you still can’t use XPath 2 portably because libxml2 never implemented it

That's not the fault of the XML community at large, but just a lack of resources for the implementation of an unpaid open source project.

You can happily use XPath 3.1 with Saxon, BaseX, eXist. All three use Java, so, it's not portable, but Saxon has a C library, that mirrors the Java version 1:1, and that C library is also available as open source, though, it lacks some XPath 3.x features, like higher order functions, then.

For the command line, there is a partial XPath 3.1 implementation with 'xidel'.

But I agree, libxml and libxslt being at XPath 1.0 for so long, did not serve XML well.

Re:The evolution of the web, and a eulogy for XHTML2 by acdha on Sunday October 27, 2019 @03:20PM (#21371799)
I classed that as something for the XML community to prioritize because implementations are so important to adoption for standards. If you design standards and want them to be used, at some point you need to figure out how to get resources to support development of key implementations, help major projects migrate to alternative implementations[1], or develop a replacement if nothing better is available.

The fragmentation you mentioned is part of what made this so frustrating: if everything you used was within certain toolchains, the experience was fairly good but then you'd need to use a different ecosystem and either drop back to good old XPath 1 or take on more technical debt. In many cases, the answer I saw people favor was leaving the XML world as quickly as possible, which is something the community has a strong interest in.

1. For example, Saxon added support for Python just a few days ago: https://www.saxonica.com/saxon-c/release-notes.xml Imagine if that had happened a decade ago and everyone who was stuck with libxml2 could have easily switched?

Re:The evolution of the web, and a eulogy for XHTML2 by zmix on Sunday October 27, 2019 @09:54PM (#21373688)
You are right. Too little, too late.

On a fair note, one should also take into account, that Saxonica is a rather small, even if highly skilled, shop and the program, they create, is a huge undertaking.

Re:The evolution of the web, and a eulogy for XHTML2 by acdha on Monday October 28, 2019 @07:03AM (#21375863)
I’m not faulting Saxonica in any way. It’s just a shame that they seem to be taking this on alone.