otherjoel / splitflap

🔖⚛️ RSS / Atom feed generation library for Racket
Other
22 stars 2 forks source link

Could use support for XSLT stylesheets #6

Closed otherjoel closed 2 years ago

otherjoel commented 2 years ago

Add support for specifying a URL for a stylesheet in feed XML, allowing generated feeds to be styled (see, e.g., https://github.com/genmon/aboutfeeds/issues/8).

Methodology:

#lang racket/base

(require xml)

(display-xml
 (document
   (prolog (list (p-i 'racket 'racket 'xml "version=\"1.0\" encoding=\"UTF-8\"")
                 (p-i 'racket 'racket 'xml-stylesheet "href=\"/pretty-feed-v3.xsl\" type=\"text/xsl\""))
           #f '())
   (xexpr->xml '(div "hi"))
   '()))
otherjoel commented 2 years ago

Feature documentation