Blame Scripts/Functions/Render/render_doXhtml.sh

f7eff0
#!/bin/bash
f7eff0
#
f7eff0
# render_doXhtml.sh -- This function performs base-rendition action
f7eff0
# for Xhtml files.
f7eff0
#
f7eff0
# Copyright (C) 2009-2011 Alain Reguera Delgado
fa95b1
#
fa95b1
# This program is free software; you can redistribute it and/or modify
fa95b1
# it under the terms of the GNU General Public License as published by
fa95b1
# the Free Software Foundation; either version 2 of the License, or
fa95b1
# (at your option) any later version.
fa95b1
#
f7eff0
# This program is distributed in the hope that it will be useful, but
f7eff0
# WITHOUT ANY WARRANTY; without even the implied warranty of
f7eff0
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
f7eff0
# General Public License for more details.
f7eff0
#
f7eff0
# You should have received a copy of the GNU General Public License
f7eff0
# along with this program; if not, write to the Free Software
f7eff0
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
f7eff0
# USA.
f7eff0
# ----------------------------------------------------------------------
f7eff0
# $Id$
f7eff0
# ----------------------------------------------------------------------
f7eff0
f7eff0
function render_doXhtml {
f7eff0
f7eff0
    # Print action message.
f7eff0
    if [[ -f ${FILE}.xhtml ]];then
f7eff0
        cli_printMessage "${FILE}.xhtml" 'AsUpdatingLine'
f7eff0
    else
f7eff0
        cli_printMessage "${FILE}.xhtml" 'AsCreatingLine'
f7eff0
    fi
f7eff0
f7eff0
    # Create xhtml file from instance.
f7eff0
    cp $INSTANCE ${FILE}.xhtml
f7eff0
f7eff0
    # Produce plaintext output from html outout.
f7eff0
    render_convertHtml2Text
f7eff0
f7eff0
}