>> ...and this somewhat more complex-looking one...
>>
>>  "W3C RSS 1.0 News Feed Creation How-To"
>>  https://www.w3.org/2001/10/glance/doc/howto
>
> Great, but stops on <figure> and <figurecaption>, these are
> HTML5 tags:
>
>   http://html5doctor.com/the-figure-figcaption-elements/
>
> so either we must change the XSLT rules to make use of for
> example the caption at least, _or_ we must either make
> a rule or tell the tool to ignore them, if such an option
> exists...

Here is the Makefile [last] only one problem, the XSLT file or
xsltproc tool (?) doesn't seem to transform the HTML into RSS,
really, output is basically a text file with no markup
whatsoever except for the first line which is

  <?xml version="1.0" encoding="utf-8"?>

Maybe I do something wrong?

name = tree-house

src = ${name}.html

srcpp = ${name}-pp.html

trans = html2rss.xsl

dst = ${name}.rss

opts = --html

all: ${dst}

${srcpp}: ${src}
        sed -e 's/<\/*fig\(ure\|caption\)>//g' $< > $@

${dst}: ${srcpp}
        xsltproc -o $@ ${opts} ${trans} $<

-- 
underground experts united
https://dataswamp.org/~incal

Reply via email to