[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: newbie question: howto switch from english to dutch
Hello all, First I like to wish all readers a merry christmas and a happy new year. Below is my build script. It worked fine. Now I like to add dutch language support to my book. Changing <book> to <book lang="nl"> gives an error: Element '{http://docbook.org/ns/docbook}book', attribute 'lang': The attribute 'lang' is not allowed. So how do I go about adding the dutch language file to my build script? Any and all help greatly appreciated! kind regards, Jeroen Baten ===================================================================== #!/bin/bash xsl=/usr/share/xml/docbook/stylesheet/docbook-xsl-ns/fo/docbook.xsl xsd=/usr/share/xml/docbook/schema/xsd/5.0/docbook.xsd #xsdnl=/usr/share/xml/docbook/stylesheet/docbook-xsl-ns/common/nl.xml echo process xincludes time xmllint --xinclude --output tmp.xml $1 1> xmllint.log 2>&1 if [ $? -ne 0 ] then less xmllint.log exit fi echo "Validation" xmllint --format tmp.xml > tmp2.xml time xmlstarlet val --err --xsd $xsd tmp2.xml > xmlstarlet.log if [ $? -ne 0 ] then echo "less xmlstarlet.log" less xmlstarlet.log echo "vim tmp2.xml" vim tmp2.xml exit fi echo "xsltproc" rm xsltproc.log if [ ! -f $xsl ] then echo "$xsl not found" exit fi time xsltproc --xinclude $xsl tmp.xml > tmp.fo 2>xsltproc.log if [ $? -ne 0 ] then less xsltproc.log exit fi echo "format" xmllint --format tmp.fo > tmp2.fo echo "fop" rm fop.log time fop-1.0/fop -fo tmp2.fo -pdf $1.pdf 2>fop.log if [ $? -ne 0 ] then less fop.log exit fi -- Jeroen Baten | EMAIL : JBATEN@I2RS.NL ____ _ __ | web : www.i2rs.nl | )|_)(_ | tel : +31 (0)345 - 75 26 28 _|_/_| __) | Molenwindsingel 46, 4105 HK, Culemborg, the Netherlands
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]