| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function docbook_convertToXhtml { |
| |
| local -a STYLE_TEMPLATE |
| local -a STYLE_INSTANCE |
| local STYLE_INSTANCE_FINAL='' |
| |
| |
| if [[ -f ${FILE}.xhtml ]];then |
| cli_printMessage "${FILE}.xhtml" --as-updating-line |
| else |
| cli_printMessage "${FILE}.xhtml" --as-creating-line |
| fi |
| |
| |
| |
| |
| local SRC=${INSTANCE} |
| |
| |
| |
| |
| local DST="${FILE}.xhtml" |
| |
| |
| docbook_prepareStyles $(cli_getFilesList \ |
| ${DOCBOOK_STYLES_DIR} --pattern='.*docbook2xhtml-(single|common)\.xsl') |
| |
| |
| xsltproc --output ${DST} ${STYLE_INSTANCE_FINAL} ${SRC} &> /dev/null |
| |
| |
| rm ${STYLE_INSTANCE[*]} |
| |
| } |