On 2021-05-10 at 20:23, David Wright wrote: > On Tue 11 May 2021 at 00:30:24 (+0200), Emanuel Berg wrote: > >> After having limited success with XSLT after a lot of work, and >> after failing doing a grammar that would add two ints, I don't feel >> like doing all HTML to RSS :D LOL - have a look >> >> https://dataswamp.org/~incal/rss/parser/add.grm >> >> What's wrong? Looks right to me! That's SML BTW, maybe it's the >> very right thing as the M is "Meta", a language to describe a >> language, is this situation what that refers to? :O >> >> Anyway, it is for the ml-yacc (there is also GNU Bison, the bison >> tool represents the old yacc, and with an option you can do POSIX >> yacc, even) >> >> OK so no XSLT, no yacc for me, I got another idea, can you use the >> static generators, get the RSS, then discard everything else and >> use the RSS on the regular or real site? > > AFAICT no trees will be destroyed or animals be harmed when you throw > away any output that is generated in excess of what you want. I parsed the question as being about whether the resulting rss.xml would be compatible with the input data, rather than with the rest of the output data generated by the static generator. That is: if you write a set of HTML files completely by hand (using no generators at all), then run a generator over them to produce a rss.xml file, can you drop that file into place in your Website structure and have things Just Work? (I say that knowing next to nothing about how RSS functions internally; for all I know it could be static enough and independent enough in its own right, once generated, for that to be a nonsensically obvious question.) -- The Wanderer The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. -- George Bernard Shaw
Attachment:
signature.asc
Description: OpenPGP digital signature