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
dcd347
# the Free Software Foundation; either version 2 of the License, or (at
dcd347
# your option) any later version.
fa95b1
#
74a058
# This program is distributed in the hope that it will be useful, but
74a058
# 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
dcd347
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, 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
}