https://github.com/dpobel/opml-utils
A set of XSLT stylesheets to transform OPML files
https://github.com/dpobel/opml-utils
opml xslt
Last synced: 3 months ago
JSON representation
A set of XSLT stylesheets to transform OPML files
- Host: GitHub
- URL: https://github.com/dpobel/opml-utils
- Owner: dpobel
- Created: 2019-01-23T17:15:17.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2020-12-28T16:42:38.000Z (over 5 years ago)
- Last Synced: 2025-03-06T17:17:42.886Z (over 1 year ago)
- Topics: opml, xslt
- Language: XSLT
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OPML Utils
OPML? According to http://dev.opml.org/
> OPML an XML-based format that allows exchange of outline-structured
> information between applications running on different operating systems and
> environments.
OPML files are used as a way to export (and import) subscriptions in feed reader
applications.
Those XSLT files have been tested with
[xslproc](http://xmlsoft.org/XSLT/xsltproc2.html) but should work with any XSLT
1.0 processor. Given you have an OPML file called `feeds.opml`, here is how to
use them.
## Convert an OPML file to an HTML page
`convert-to-html.xsl` is able to convert the OPML file to an HTML5 document.
```
xslproc convert-to-html.xsl feeds.opml
```
## Convert an OPML file to an HTML fragment
`convert-to-html-fragment.xsl` does pretty much the same of
`convert-to-html.xsl` except that it omits the `html`, `head` and `body`
elements.
```
xslproc convert-to-html-fragment.xsl feeds.opml
```
## Filter feeds from a category
`filter.xsl` allows you to filter feeds from a category to produce another OPML
file. Feeds from sub-categories are also included. This stylesheet expects the
name of the category in parameter.
```
xsltproc --stringparam text "My category" filter.xsl feeds.opml
```