Re: [Refdb-users] User feedback 3
Status: Beta
                
                Brought to you by:
                
                    mhoenicka
                    
                
            | 
      
      
      From: David N. <dav...@bi...> - 2004-03-05 12:28:51
      
     | 
| Hi Markus,
>Hi David,
>
>David Nebauer writes:
> > At the end of this message please find:
> > 1. An init file for refdbxml: refdbxmlrc
> > 2. A re-written refdbxml to use the init file
> > 
>
>Thanks for that. I've added refdbxmlrc with some cosmetic changes to
>CVS. I've also integrated your refdbxml changes into the official
>version which also required some Makefile.am and configure.in
>hacking. I've fixed a few obvious typos in the file you sent and made
>some minor changes, like parametrizing the xep root variable. I've
>tested the updated script with xsltproc and FOP. I'm currently
>updating my xerces and Saxon installations, but I expect this will
>work too.
>  
>
I've now tested the Makefile against my new refdbxml and refdbxmlrc 
files using all the xslt and fo processors included to date.
This includes: xalan, xt, saxon, saxon-xerces, xsltproc, passivetex, 
fop, xep and jfor.
In every case (except jfor), the Makefile produced the desired output 
without error.
In another post I've mentioned the problem with jfor, which has to do 
with DocBook rather than refdb.
The only thing still bugging me is the theoretical possibility of 
invoking refdbxml with a mismatch between the fo processor and output 
type (eg. jfor processor with pdf output).  Something like the following 
code could be inserted at the start of process_print:
........................................................................
rtf_generators="jfor"
pdf_generators="fop xep passivetex"
case $outformat in
    rtf ) generators=$rtf_generators;;
    pdf ) generators=$pdf_generators;;
esac
processor_outformat_match=false
for generator in $generators ; do
    [ "$generator" = "$fo_processor" ] && processor_outformat_match=true
done
if [ ${processor_outformat_match} = false ] ; then
    echo "Specified FO processor: $fo_processor."
    echo "Specified output format: $outformat."
    echo "Error: $fo_processor does not produce $outformat output."
    exit 1
fi
........................................................................
The first two lines -- variable declarations -- could be placed near the 
top of refdbxml for ease of maintainability.  The remaining lines need 
no further editing even if the list of rtf and pdf FO processors changes.
Here is the output if I specify FO processor = jfor and output format = 
pdf :
........................................
Specified FO processor: jfor.
Specified output format: pdf.
Error: jfor does not produce pdf output.
........................................
Other than that, I think it might do for now :-) .
Regards,
David
 |