Den tis 14 juli 2026 kl 14:52 skrev C. Michael Pilato <[email protected]>:

> On Tue, Jul 14, 2026 at 5:14 AM Thomas Åkesson <[email protected]> wrote:
>
>> Hi,
>>
>>
>> I was unable to find any discussion on this deprecation of XSLT in the
>> browsers.
>>
>>
>> https://developer.chrome.com/docs/web-platform/deprecating-xslt
>>
>>
>> I suspect this deprecation will break the Subversion web ui (folder
>> listing and Collection of Repositories) and the customization point for
>> these UIs (SVNIndexXSLT).
>>
>>
>> We use this XSLT extensively so I am interested if anyone has
>> experimented with server-side transformation?
>>
>
httpd supports output filters (
https://httpd.apache.org/docs/current/en/developer/output-filters.html) and
the documentation mentions XSLT transformations as one use case. I would
probably investigate this a bit.

mod_transform (https://github.com/OutOfOrder/mod_transform) claims to do
this but the code was last updated 15 years ago so I have no idea how much
bitrot it has accumulated (I didn't try it).


>
> This is unfortunate, but hopefully the situation isn't quite as bad as you
> might think.
>
> IIRC, the XSLT variant of the mod_dav_svn directory listing feature is
> entirely optional.  When a GET request arrives aimed at a versioned
> directory, if SVNIndexXSLT is set, an XML response referencing the template
> is generated; but otherwise, an HTML response is still generated.  So this
> deprecation might force admins to turn off the SVNIndexXSLT "flavor",
> resulting in some ... undecorated directory listings.  But at least I
> expect the listings will still "work" (for the most basic of definitions of
> "work").
>

Your memory is accurate compared to what I'm reading in the code. The
problem is of course if someone is doing very fancy transformations in the
XSLT file.


>
> It does cause me to wonder though...  Would a SVNIndexCSS feature be
> interesting -- where we generate that HTML with quite a bit more structure
> (divs, ids, etc.) and allow folks to point to a CSS file that at least
> pretties it up?
>

Interesting idea. If we also provide a way of injecting some custom HTML
first (or last) in the response, it should be possible to use javascript to
manipulate the DOM enough to transform the basic directory listing into
whatever form desired by the server admin. I would suggest we do as little
as possible on our side (an id on the outer <ul> and some classes on the
<li>s).

Cheers,
Daniel

Reply via email to