diff options
author | Benjamin Franzke <bfr@qbus.de> | 2015-02-18 15:48:18 +0100 |
---|---|---|
committer | Benjamin Franzke <bfr@qbus.de> | 2015-02-18 15:54:24 +0100 |
commit | aceed71c01b9a25ee4fc70074d3edbd7c95042ad (patch) | |
tree | 04c1409cfc7449a03b37e47559acd5c3baf52c44 /update.sh | |
download | endnote-import-aceed71c01b9a25ee4fc70074d3edbd7c95042ad.tar.gz endnote-import-aceed71c01b9a25ee4fc70074d3edbd7c95042ad.tar.bz2 endnote-import-aceed71c01b9a25ee4fc70074d3edbd7c95042ad.zip |
Implement simple xml import using xsl and load xml
Diffstat (limited to 'update.sh')
-rwxr-xr-x | update.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/update.sh b/update.sh new file mode 100755 index 0000000..6ad1214 --- /dev/null +++ b/update.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +cd $(dirname $0) +cat "LIKAT Publications.xml" \ + | xsltproc convert-style-to-html.xsl - \ + | xsltproc endnote-to-dbxml.xsl - \ + | sed -f fix-empty-tags.sed \ + > dbxml.xml + +# sed -f cdata.sed | \ +# xmllint --pretty 1 - \ + +mysql -v -utypo3 -ptypo3 typo3 < update.sql |