| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function docbook { |
| |
| |
| |
| local DOCBOOK_XSL="${TCAR_WORKDIR}/Identity/Webenv/Themes/Default/Docbook/1.69.1/Xsl" |
| |
| |
| |
| |
| local DOCBOOK_MODELS="$(dirname ${TEMPLATE})" |
| |
| |
| cli_checkFiles ${DOCBOOK_MODELS} -d |
| |
| |
| cp ${TEMPLATE} ${INSTANCE} |
| |
| |
| docbook_setExpansionLicenses ${INSTANCE} |
| |
| |
| |
| |
| |
| |
| |
| |
| docbook_setExpansionSystemEntities ${INSTANCE} |
| |
| |
| cli_printMessage "${INSTANCE}" --as-validating-line |
| |
| |
| |
| |
| |
| |
| |
| xmllint --valid --noent ${INSTANCE} > ${INSTANCE}.tmp |
| if [[ $? -ne 0 ]];then |
| cli_printMessage "`gettext "Validation failed."`" --as-error-line |
| fi |
| |
| |
| mv ${INSTANCE}.tmp ${INSTANCE} |
| |
| |
| |
| cli_expandTMarkers ${INSTANCE} |
| |
| |
| |
| |
| if [[ -f ${TRANSLATION} ]];then |
| docbook_setTranslation ${INSTANCE} |
| fi |
| |
| |
| docbook_setConversionXhtmlChunks ${INSTANCE} |
| docbook_setConversionXhtml ${INSTANCE} |
| docbook_setConversionText |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| docbook_setPostRendition |
| |
| |
| docbook_setLastRendition |
| |
| } |