Changes between Version 19 and Version 20 of XsltTemplates


Ignore:
Timestamp:
06/30/12 13:00:50 (9 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • XsltTemplates

    v19 v20  
    3636== Debugging ==
    3737Basic stylesheet checking can be done outside Sahana using the same functions as-used internally:
    38 * {{{/static/scripts/tools/xsltransform.py}}}
    39 * {{{/static/scripts/tools/csv2xml.py}}}
     38* {{{static/scripts/tools/xsltransform.py}}}
     39* {{{static/scripts/tools/csv2xml.py}}}
     40{{{
     41cd eden
     42python static/scripts/tools/csv2xml.py private/templates/default/certificate.csv static/formats/s3csv/hrm/certificate.xsl
     43}}}
    4044
    4145Full debugging can be done using [http://xml.apache.org/xalan-j/ Xalan]. Start by converting smaller extracts in debug mode:
     46{{{
     47python static/scripts/tools/csv2xml.py private/templates/default/certificate.csv > certificate.xml
     48java -jar xalan.jar -param name certificate -tt -tg -ts -in certificate.xml -xsl static/formats/s3csv/hrm/certificate.xsl
     49}}}
     50or
    4251{{{
    4352java -jar xalan.jar -param name shelter -param xsltmode extended -tt -tg -ts -in japanquake2011_shelter_extract.kml -xsl web2py\applications\eden\static\formats\kml\import.xsl -out shelters.xml