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
f7eff0
# 
f7eff0
# This program is free software; you can redistribute it and/or
f7eff0
# modify it under the terms of the GNU General Public License as
f7eff0
# published by the Free Software Foundation; either version 2 of the
f7eff0
# License, or (at your option) any later version.
f7eff0
# 
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
# ----------------------------------------------------------------------
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
}