Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mnot/RFCbootstrap

Bootstrap-based XML2RFC stylesheet
https://github.com/mnot/RFCbootstrap

bootstrap ietf rfc

Last synced: 28 days ago
JSON representation

Bootstrap-based XML2RFC stylesheet

Awesome Lists containing this project

README

        

# RFCbootstrap

This is an XSLT Stylesheet for transforming
[xml2rfc](http://greenbytes.de/tech/webdav/draft-reschke-xml2rfc-latest.html)
markup into [Bootstrap](http://getbootstrap.com)-based HTML (version 4). It is based upon
Julian Reschke's
[rfc2629.xslt](https://github.com/reschke/xml2rfc).

For an example of its output, see
[RFC7230](http://httpwg.github.io/specs/rfc7230.html).

A typical invocation might look like this (assuming use of
[Bower](http://bower.io) and [Jekyll](http://jekyllrb.com)):

java -classpath lib/saxon9.jar net.sf.saxon.Transform -novw -l \
input.xml rfcbootstrap.xslt \
bootstrapJsUrl='/components/bootstrap/dist/js/bootstrap.min.js' \
bootstrapCssUrl='/components/bootstrap/dist/css/bootstrap.min.css' \
jqueryJsUrl='/components/jquery/dist/jquery.min.js' \
siteCssUrl='/asset/site.css' \
navbar='../../_includes/navbar.html

By default, it will use CDN versions of bootstrap and jQuery; however, these
can be overridden with the `bootstrapJsUrl`, `bootstrapCssUrl` and
`jqueryJsUrl` parameters.

Additionally, the `pageUrl`, `pageImageUrl` and `siteName` variables can be used to set page
metadata.