1234567891011121314151617181920212223242526272829303132333435363738394041(* YOCaml a static blog generator.
Copyright (C) 2024 The Funkyworkers and The YOCaml's developers
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, either version 3 of the License, or
(at your option) any later version.
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 <https://www.gnu.org/licenses/>. *)typet={title:string;description:string;name:string;link:string}letmake~title~description~name~link={title;description;name;link}moduleX=structopenXmllettitlex=leaf~name:"title"(escapex)letnamex=leaf~name:"name"(escapex)letlinkx=leaf~name:"link"(Somex)letdescriptionx=leaf~name:"description"(cdatax)letresourcex=Attr.string~ns:"rdf"~key:"resource"xendletto_rss1_channel{link;_}=Xml.leaf~name:"textinput"~attr:[X.resourcelink]Noneletto_rss1{title;description;name;link}=Xml.node~name:"textinput"~attr:[Xml.Attr.string~ns:"rdf"~key:"about"link][X.titletitle;X.descriptiondescription;X.namename;X.linklink]letto_rss2{title;description;name;link}=Xml.node~name:"textInput"[X.titletitle;X.descriptiondescription;X.namename;X.linklink]