Ignore:
Timestamp:
06/27/07 14:32:59 (17 years ago)
Author:
pinsard
Message:

saxon was replaced by xalan in makehtml.sh because of better results on callouts in HTML files produced for XML/DocBook files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Documentation/xmldoc/makehtml.sh

    r188 r255  
    11#!/bin/bash -x 
    22# 
    3 # update :  
     3# update : 
    44# $Id$ 
    55# 
    66# ++ one day we can add accessibility check with tidy with -access 3 
    7 # diagnostics are not so good so far because tidy (HTML Tidy for Mac OS X  
     7# diagnostics are not so good so far because tidy (HTML Tidy for Mac OS X 
    88# released on 1 September 2005) doesn't handle carriage returns 
    99# 
     10# fplod 2007-06-27T11:54:26Z aedon.locean-ipsl.upmc.fr (Darwin) 
     11# replacing saxon by xalan because of better results on callouts 
    1012# fplod 2006-09-20T16:28:32Z aedon.locean-ipsl.upmc.fr (Darwin) 
    1113# remove ?format=raw 
     
    2426# fplod 2006-07-11T08:25:30Z aedon.locean-ipsl.upmc.fr (Darwin) 
    2527# use of tidy and titlepage.saxo.xml 
    26 # replace /sw/share/xml/xsl/docbook-xsl/html/docbook.xsl  
     28# replace /sw/share/xml/xsl/docbook-xsl/html/docbook.xsl 
    2729# by saxo_html.xsl 
    2830# fplod 2006-07-05T13:18:56Z aedon.locean-ipsl.upmc.fr (Darwin) 
     
    3234# add infoupdatekwd 
    3335# fplod 2006-06-02T14:37:47Z aedon.locean-ipsl.upmc.fr (Darwin) 
    34 # take only one tar file : the most recent using modification time  
     36# take only one tar file : the most recent using modification time 
    3537# fplod 2006-06-02T10:00:41Z aedon.locean-ipsl.upmc.fr (Darwin) 
    36 # http://forge.ipsl.jussieu.fr/saxo/download/ is the new directory reference  
    37 # for tar file instead of ~/SAXO_SRC/ ie home of Sebatien Masson on  
     38# http://forge.ipsl.jussieu.fr/saxo/download/ is the new directory reference 
     39# for tar file instead of ~/SAXO_SRC/ ie home of Sebatien Masson on 
    3840# arete.lodyc.jussieu.fr 
    3941# !!! saxo@forge.ipsl.jussieu.fr password is needed 
     
    4143# . add creation of all_plots.html using firststeps.html 
    4244# . remplace ~/SAXO_SRC/SRC/Documentation/xmldoc/figpng by ./figpng/ 
    43 # we suppose that this shell script is launched when we are in  
     45# we suppose that this shell script is launched when we are in 
    4446# <working space of saxo>/SRC/Documentation/xmldoc/ 
    4547# 
     
    7072      szdatasvn=${szdatasvn%*M} 
    7173      echo "iii : you will be asked ${lgforge}@forge.ipsl.jussieu.fr passwd two times" 
    72       # find the most recent SAXO_SRC_yyyymmddrxxx.tar.gz in  
     74      # find the most recent SAXO_SRC_yyyymmddrxxx.tar.gz in 
    7375      # /ipsl/forge/projets/saxo/download/ 
    7476      infosrc=$(ssh ${lgforge}@forge.ipsl.jussieu.fr ls -lht /ipsl/forge/projets/saxo/download/SAXO_SRC_*.tar.gz  | head -n 1) 
     
    7880      ndate=${filesrc##*_} 
    7981      ndate=${ndate%.tar.gz} 
    80       # find the most recent SAXO_DATA_yyyymmddrxxx.tar.gz in  
     82      # find the most recent SAXO_DATA_yyyymmddrxxx.tar.gz in 
    8183      # /ipsl/forge/projets/saxo/download/ 
    8284      infodata=$(ssh ${lgforge}@forge.ipsl.jussieu.fr ls -lht /ipsl/forge/projets/saxo/download/SAXO_DATA_*.tar.gz | head -n 1) 
     
    211213# 
    212214# production of titlepage.saxo.xsl 
    213 #  
     215# 
    214216# si pb reseau remplacer sur mac par la ligne suivante 
    215217titlepagexsl=http://docbook.sourceforge.net/release/xsl/current/template/titlepage.xsl 
     
    237239          -e s/"\&szsrcsvn\;"/${szsrcsvn}/g \ 
    238240          -e s/"\&szdatasvn\;"/${szdatasvn}/g \ 
    239           ${1}.xml > ${1}_${$}.xml  
     241          ${1}.xml > ${1}_${$}.xml 
    240242   ;; 
    241243   firststeps) 
     
    258260          -e s/"\&figspltt_orca2_stride\;"/"${figspltt_orca2_stride}"/g \ 
    259261          -e s/"\&figspltt_orca05_stride\;"/"${figspltt_orca05_stride}"/g \ 
    260           ${1}.xml > ${1}_${$}.xml  
     262          ${1}.xml > ${1}_${$}.xml 
    261263   ;; 
    262264   infoupdatekwd) 
    263265      sed -e "/-- rows from updatekwd.pro --/r /tmp/rowskwd.xml" \ 
    264           ${1}.xml > ${1}_${$}.xml  
     266          ${1}.xml > ${1}_${$}.xml 
    265267      /bin/rm /tmp/rowskwd.xml 
    266268   ;; 
    267269   infoupdatecm) 
    268270      sed -e "/-- rows from updateold.pro --/r /tmp/rowscm.xml" \ 
    269           ${1}.xml > ${1}_${$}.xml  
     271          ${1}.xml > ${1}_${$}.xml 
    270272      /bin/rm /tmp/rowscm.xml 
    271273   ;; 
    272274   faqsaxo|websaxo) 
    273       # resolve xinclude  
     275      # resolve xinclude 
    274276      xmllint --xinclude \ 
    275277              --output ${1}_${$}.xml ${1}.xml 
     
    282284   ;; 
    283285   *) 
    284       cp ${1}.xml ${1}_${$}.xml  
     286      cp ${1}.xml ${1}_${$}.xml 
    285287      echo "iii : no xml transformation needed" 
    286288   ;; 
    287289esac 
    288290# 
    289 CLASSPATH="${CLASSPATH}:\ 
    290 /sw/share/java/saxon/saxon.jar:\ 
    291 /sw/share/xml/xsl/docbook-xsl/extensions/saxon653.jar" 
     291CLASSPATH=$CLASSPATH:/usr/Xalan/xalan.jar:/usr/Xalan/xml-apis.jar:\ 
     292/usr/Xalan/xercesImpl.jar:/usr/docbook-xsl/extensions/xalan25.jar 
    292293export CLASSPATH 
    293294# 
    294 java com.icl.saxon.StyleSheet -o ${1}.html ${1}_${$}.xml  \ 
    295 saxo_html.xsl \ 
    296 section.autolabel=1 html.stylesheet="style.css saxo.css" css.decoration=1 \ 
    297 callout.graphics.extension=".png" \ 
    298 callout.graphics="1" \ 
    299 callout.graphics.path="images/callouts/" \ 
    300 use.extensions=1 \ 
    301 callouts.extension=1 
     295java org.apache.xalan.xslt.Process -out ${1}.html -in ${1}_${$}.xml  \ 
     296-xsl saxo_html.xsl \ 
     297-param section.autolabel 1 \ 
     298-param html.stylesheet "style.css saxo.css" \ 
     299-param css.decoration 1 
    302300status=${?} 
    303301if [ ${status} -ne 0 ] 
     
    321319          -e s?"../../saxo/browser/trunk/SRC/Documentation/idldoc_html_output/"?"../idldoc_html_output/"?g \ 
    322320          -e s?"../../saxo/browser/trunk"?"http://forge.ipsl.jussieu.fr/saxo/browser/trunk"?g \ 
    323           ${1}.html > ${1}_${$}.html  
     321          ${1}.html > ${1}_${$}.html 
    324322      mv ${1}_${$}.html ${1}.html 
    325323      ;; 
    326324esac 
    327 #  
     325# 
    328326# use of tidy to have a W3C compliant html file 
    329327tidy -m ${1}.html 
Note: See TracChangeset for help on using the changeset viewer.