Skip to content

Linkcheck#155

Closed
bkmgit wants to merge 37 commits intoprofanity-im:masterfrom
bkmgit:linkcheck
Closed

Linkcheck#155
bkmgit wants to merge 37 commits intoprofanity-im:masterfrom
bkmgit:linkcheck

Conversation

@bkmgit
Copy link
Copy Markdown
Contributor

@bkmgit bkmgit commented Apr 9, 2026

Builds on top of #154
Closes #148

pulkomandy and others added 30 commits July 13, 2019 13:33
Allows to refer to the XSL from outside this github repo.
Now we have a nice display of the XEP number, yay!
The idea would be to integrate this in the XSF XEP XSLT. However, it
doesn't work that well:
- xinclude does not work in browser XSLT engines.
This schema’s canonical URL is https://linkmauve.fr/ns/xmpp-doap but it
is also hosted here for ease of contribution.
For each implemented XEP, this:

* adds a column with the title of the XEP,
* the XEP abstract is injected in the "title" attribute;
* adds a column with the latest revision number,
* the date of the latest revision is injected in the "title"
  attribute;
* adds a "title" attribute to the implemented revision number
  with the publication date of that version; and
* styles the implemented revision column according to whether
  the project implements a current or outdated revision.

It does this by referencing the relevant XEP XMLs, not the
abridged list found at https://xmpp.org/extensions/xeplist.xml
as that one does not have full revision details (so we can extract
the date of the *implemented*, as opposed to latest, revision) and
it also makes matching marginally more awkward as the XEP numbers
are given with a varying number of digits. Lastly, that relies on
xeplist.xml being complete and up to date whereas taking the XEP
references entered by the user relies on the *.html and *.xml
versions being in the same path. One marginal advantage is that
this doesn't break if the author announces support for private
XMLs (which probably won't be in xmpp.org or in xeplist.xml).

Note 1: Generation with xsltproc will probably not work:
https://gitlab.gnome.org/GNOME/libxslt/-/issues/28 Use a better
tool instead, such as Saxon (http://saxon.sourceforge.net/).

Note 2: If the XEP XMLs were served with
`Access-Control-Allow-Origin: *`, the XML could be served directly
and the browser would apply the XSLT transformation itself.
- Use xeplist.xml instead of querying each XEP for name and version
- Show XEP number and name in the same column
- Show version and latest version in the same column
- Show only a Green Checkmark (TM) if the version is up to date
- Show a yellow badge with the latest version otherwise
* improve alignment of table elements
* show latest version only if it differs from implemented version
* add colors for remaining XEP status elements
* use color variables
@bkmgit bkmgit force-pushed the linkcheck branch 2 times, most recently from 81a64c3 to 7d80372 Compare April 9, 2026 17:51
@bkmgit
Copy link
Copy Markdown
Contributor Author

bkmgit commented Apr 11, 2026

Closing in favor of #159

@bkmgit bkmgit closed this Apr 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Check for broken links

5 participants