openlcb / documents

The OpenLCB specification: standards, recommended practices and other documentation.
3 stars 7 forks source link

links in CDI standard #132

Open balazsracz opened 3 days ago

balazsracz commented 3 days ago

We have two problems: 1) the link in the CDI standard (the new, adopted version) which should point to openlcb.org/schema/1/3/cdi.xsd actually points to /1/1/cdi.xsd. So the link needs to be updated. The change detection made this worse, as there is one link, then some plain text, then another link. This should be fixed as well. 2) the /1/3/cdi.xsd is a dead link. It is not served by the webserver.

bobjacobsen commented 3 days ago

Should it be at "schema/1/3/cdi.xsd" or "/schema/cdi/1/3/cdi.xsl"? That 2nd one is a live link.

balazsracz commented 3 days ago

The standard says xsd. [image: image.png]

The git repo also contains xsd files.

balazsracz commented 3 days ago

idk, both of these fail for me actually:

$ wget https://openlcb.org/schema/cdi/1/3/cdi.xsd
--2024-07-04 13:02:41--  https://openlcb.org/schema/cdi/1/3/cdi.xsd
Resolving openlcb.org (openlcb.org)... 103.248.176.140
Connecting to openlcb.org (openlcb.org)|103.248.176.140|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2024-07-04 13:02:46 ERROR 404: Not Found.

$ wget https://openlcb.org/schema/cdi/1/3/cdi.xsl
--2024-07-04 13:02:47--  https://openlcb.org/schema/cdi/1/3/cdi.xsl
Resolving openlcb.org (openlcb.org)... 103.248.176.140
Connecting to openlcb.org (openlcb.org)|103.248.176.140|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2024-07-04 13:02:49 ERROR 404: Not Found.

whereas 1.2 exists:

$ wget https://openlcb.org/schema/cdi/1/2/cdi.xsd
--2024-07-04 13:03:58--  https://openlcb.org/schema/cdi/1/2/cdi.xsd
Resolving openlcb.org (openlcb.org)... 103.248.176.140
Connecting to openlcb.org (openlcb.org)|103.248.176.140|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 14046 (14K)
Saving to: ‘cdi.xsd’

cdi.xsd                    100%[========================================>]
 13.72K  46.0KB/s    in 0.3s

2024-07-04 13:03:59 (46.0 KB/s) - ‘cdi.xsd’ saved [14046/14046]
bobjacobsen commented 3 days ago

Sorry, typo in my post. I was referring to whether the top of the path should be "schema/1" or "schema/cdi/I".

bobjacobsen commented 3 days ago

You're right about the link. https://openlcb.org/schema/cdi/1/2/cdi.xsd is there, but /1/3 is not