Blame Scripts/Functions/Render/Xhtml/xhtml.sh

f7eff0
#!/bin/bash
f7eff0
#
fedd65
# xhtml.sh -- This function performs base-rendition action
f7eff0
# for Xhtml files.
f7eff0
#
2d3646
# Copyright (C) 2009, 2010, 2011 The CentOS Project
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
fedd65
function xhtml {
f7eff0
f7eff0
    # Print action message.
f7eff0
    if [[ -f ${FILE}.xhtml ]];then
0ff158
        cli_printMessage "${FILE}.xhtml" --as-updating-line
f7eff0
    else
0ff158
        cli_doPrint "${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.
fedd65
    xhtml_convertToText
f7eff0
f7eff0
}