1 | See the UserGuide for a tutorial and a reference to the |
---|
2 | SAX and stream XPATH parser APIs. |
---|
3 | |
---|
4 | The sax and xpath directories contain the source for the exercises in |
---|
5 | the User Guide. |
---|
6 | |
---|
7 | The new DOM interface is documented in file DOM.html. |
---|
8 | The WXML writing library and the "Jumbo90" (CML writer by Jon Wakelin) |
---|
9 | are documented in WXML.html |
---|
10 | |
---|
11 | |
---|
12 | GETTING STARTED QUICKLY |
---|
13 | |
---|
14 | You should really read the User Guide, but if you insist, here is the |
---|
15 | *minimum* you can do to get the parser working: |
---|
16 | |
---|
17 | * Define the environment variable FLIB_ROOT to point to the macros |
---|
18 | directory in the xmlf90 distribution |
---|
19 | (You could make it point anywhere, but this is the simplest setup, |
---|
20 | as you have everything under the same tree) |
---|
21 | |
---|
22 | FLIB_ROOT=/somewhere/xmlf90/macros ; export FLIB_ROOT (sh-like shells) |
---|
23 | setenv FLIB_ROOT /somewhere/xmlf90/macros (csh-like shells) |
---|
24 | |
---|
25 | * Go into macros, look through the fortran-XXXX.mk files, |
---|
26 | and see if one of them applies to your computer/compiler combination. |
---|
27 | If so, copy it or make a (symbolic) link to 'fortran.mk': |
---|
28 | |
---|
29 | ln -sf fortran-lf95.mk fortran.mk |
---|
30 | |
---|
31 | If none of the .mk files look useful, write your own, using the |
---|
32 | files provided as a guide. Basically you need to figure out the |
---|
33 | name and options for the compiler, the extension assigned to |
---|
34 | module files, and the flag used to identify the module search path. |
---|
35 | |
---|
36 | The above steps need only be done once. |
---|
37 | |
---|
38 | Go back to the top directory. |
---|
39 | |
---|
40 | If you have a Fortran95 compiler, simply type "sh build.sh" |
---|
41 | If not, edit build.sh and comment out the DOM sections as directed. |
---|
42 | |
---|
43 | * Go into subdirectory 'Examples' and explore. |
---|
44 | |
---|
45 | * Go into subdirectory 'Tutorial' and try the exercises in the User Guide |
---|
46 | (see the next section for compilation details). |
---|
47 | |
---|
48 | ** Compiling user programs |
---|
49 | |
---|
50 | After installation, the appropriate modules and library files should |
---|
51 | already be in $FLIB_ROOT/modules and |
---|
52 | $FLIB_ROOT/lib, respectively. To compile user programs, it |
---|
53 | is suggested that the user create a separate directory to hold the |
---|
54 | program files and prepare a Makefile following the templates in the |
---|
55 | Examples/ directory. |
---|