Blame Scripts/Functions/Render/render_xhtml.sh

f7eff0
#!/bin/bash
f7eff0
#
3c8e4d
# render_xhtml.sh -- This function performs base-rendition action for
3c8e4d
# Xhtml files.
f7eff0
#
3b0984
# Copyright (C) 2009, 2010, 2011 The CentOS Artwork SIG
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.
7ac5a5
#
f7eff0
# ----------------------------------------------------------------------
f7eff0
# $Id$
f7eff0
# ----------------------------------------------------------------------
f7eff0
3c8e4d
function render_xhtml {
f7eff0
f7eff0
    # Print action message.
f7eff0
    if [[ -f ${FILE}.xhtml ]];then
0ff158
        cli_printMessage "${FILE}.xhtml" --as-updating-line
f7eff0
    else
d0674e
        cli_printMessage "${FILE}.xhtml" --as-creating-line
f7eff0
    fi
f7eff0
f7eff0
    # Create xhtml file from instance.
f7eff0
    cp $INSTANCE ${FILE}.xhtml
f7eff0
f7eff0
    # Produce plaintext output from html outout.
3c8e4d
    render_xhtml_convertToText
3a7b62
f7eff0
}