Add ICBM XSD

This commit is contained in:
~lucidiot 2023-09-04 11:52:34 +02:00
parent 1efdd5639f
commit 0ef6f55871
3 changed files with 54 additions and 1 deletions

View File

@ -15,6 +15,7 @@
xmlns:webfeeds="http://webfeeds.org/rss/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="xsd/rss.xsd"
xsi:schemaLocation="http://postneo.com/icbm xsd/icbm.xsd"
>
<channel>
<title>RSRSSS</title>

49
xsd/icbm.xsd Normal file
View File

@ -0,0 +1,49 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
RSS ICBM address extension schema
Copyright (c) 2023 ~lucidiot
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, version 3.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<xs:schema
targetNamespace="http://postneo.com/icbm"
version="1.0"
elementFormDefault="qualified"
xmlns="http://postneo.com/icbm"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
>
<xs:simpleType name="Latitude">
<xs:restriction base="xs:decimal">
<xs:minInclusive value="-90" ></xs:minInclusive>
<xs:maxInclusive value="90" ></xs:maxInclusive>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="Longitude">
<xs:restriction base="xs:decimal">
<xs:minInclusive value="-180" ></xs:minInclusive>
<xs:maxInclusive value="180" ></xs:maxInclusive>
</xs:restriction>
</xs:simpleType>
<xs:element name="latitude" type="Latitude">
<xs:annotation>
<xs:documentation>Latitude of the location being referred to by this channel or item, in WGS84.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="longitude" type="Longitude">
<xs:annotation>
<xs:documentation>Longitude of the location being referred to by this channel or item, in WGS84.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:schema>

View File

@ -14,7 +14,10 @@
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:webfeeds="http://webfeeds.org/rss/1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xsi:schemaLocation="http://postneo.com/icbm ../xsd/icbm.xsd"
>
<xsl:output method="html" doctype-system="about:legacy-compat" />
<xsl:template match="/">