Skip to content

Instantly share code, notes, and snippets.

@mpicker0
Last active December 15, 2015 20:29
Show Gist options
  • Save mpicker0/5319122 to your computer and use it in GitHub Desktop.
Save mpicker0/5319122 to your computer and use it in GitHub Desktop.
Using a stylesheet also on Gist, batch convert all my GetSimple CMS XML files to Jekyll HTML files.
#!/usr/bin/env bash
for xmlfile in *xml
do
basename=${xmlfile%.*}
xsltproc ~/gs_to_jekyll.xsl ${xmlfile} \
| perl -MHTML::Entities -ne 'print decode_entities($_)' \
> /tmp/pages/${basename}.html
done
@mpicker0
Copy link
Author

mpicker0 commented Apr 5, 2013

Here is the stylesheet: gs_to_jekyll.xsl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment