EML BETA 6 - FULL SET OF XSL STYLESHEETS AVAILABLE

Matthew Brooke brooke at nceas.ucsb.edu
Fri Jun 21 15:19:30 PDT 2002


EML BETA 6 - FULL SET OF XSL STYLESHEETS AVAILABLE

A full set of XSL stylesheets has been developed for displaying EML
Beta6 documents in HTML format.  They can be obtained from the eml
module in CVS, where they are tagged as "RELEASE_EML_2_0_0_BETA_6_REV1".
They are in the "eml/style" subdirectory.

(Check out of cvs using "cvs co -r RELEASE_EML_2_0_0_BETA_6_REV1 eml" -
see http://cvs.ecoinformatics.org/cvs/cvsweb.cgi/ for further
instructions)


*** INSTALLATION NOTES:

* General:

All the installation-specific settings are contained in the file
"eml/style/eml-settings-2.0.0beta6.xsl", which must be edited for your
particular installation.  Instructions and examples are shown in the
comments within this file.


* To install in an existing Metacat installation:

1) copy the *.xsl files directly into the "/style" folder in metacat's
web context root folder (for example, if you are running Tomcat, and you
access metacat using the "knb" context (as in:
http://myhostname.edu/knb/...etc...etc...), then the xsl files would be
in the folder "$TOMCAT_HOME/webapps/knb/style"). 

2) In the web context root folder, there is an xml file that provides
mappings between doctypes and their corresponding xsl files; this file
should be edited to map Beta6 doctypes to the new stylesheets.  As an
example, for the knb site, this mappings file is called "knb.xml"; the
newest version of "knb.xml" is included at the end of this email,
showing the new entries that are required.


B) NEW METACAT INSTALLATIONS:

The metacat cvs source has been changed so that metacat's Ant build
script ("build.xml") will install these new stylesheets automatically
during a new installation.  The version of metacat that is currently
available for download on the KNB site does *not* yet include this
updated build script, but it will be included in the next release of
Metacat. 

If you have any questions, please feel free to contact me.  Scroll down
for knb.xml...

Regards

Matthew

---------------------------------
 Matthew Brooke
 National Center for Ecological
 Analysis and Synthesis (NCEAS)
 735 State St. Ste. 300
 Santa Barbara, CA 93101
 805-892-2531
 email:   brooke at nceas.ucsb.edu
 web: http://www.nceas.ucsb.edu
---------------------------------

***** EXAMPLE OF MAPPING DOCTYPES-->XSL FILES: knb.xml
************************

<?xml version="1.0"?>
<style-set name="knb">
<!-- beta6 modules -->
  <doctype publicid="-//ecoinformatics.org//eml-access-2.0.0beta6//EN">
    <target
publicid="-//W3C//HTML//EN">http://www.myhostname.edu/myMetacatContext/s
tyle/eml-access-2.0.0beta6.xsl</target>
  </doctype>
  <doctype
publicid="-//ecoinformatics.org//eml-attribute-2.0.0beta6//EN">
    <target
publicid="-//W3C//HTML//EN">http://www.myhostname.edu/myMetacatContext/s
tyle/eml-attribute-2.0.0beta6.xsl</target>
  </doctype>
  <doctype
publicid="-//ecoinformatics.org//eml-constraint-2.0.0beta6//EN">
    <target
publicid="-//W3C//HTML//EN">http://www.myhostname.edu/myMetacatContext/s
tyle/eml-constraint-2.0.0beta6.xsl</target>
  </doctype>
  <doctype
publicid="-//ecoinformatics.org//eml-coverage-2.0.0beta6//EN">
    <target
publicid="-//W3C//HTML//EN">http://www.myhostname.edu/myMetacatContext/s
tyle/eml-coverage-2.0.0beta6.xsl</target>
  </doctype>
  <doctype publicid="-//ecoinformatics.org//eml-dataset-2.0.0beta6//EN">
    <target
publicid="-//W3C//HTML//EN">http://www.myhostname.edu/myMetacatContext/s
tyle/eml-dataset-2.0.0beta6.xsl</target>
  </doctype>
  <doctype publicid="-//ecoinformatics.org//eml-entity-2.0.0beta6//EN">
    <target
publicid="-//W3C//HTML//EN">http://www.myhostname.edu/myMetacatContext/s
tyle/eml-entity-2.0.0beta6.xsl</target>
  </doctype>
  <doctype
publicid="-//ecoinformatics.org//eml-literature-2.0.0beta6//EN">
    <target
publicid="-//W3C//HTML//EN">http://www.myhostname.edu/myMetacatContext/s
tyle/eml-literature-2.0.0beta6.xsl</target>
  </doctype>
  <doctype
publicid="-//ecoinformatics.org//eml-physical-2.0.0beta6//EN">
    <target
publicid="-//W3C//HTML//EN">http://www.myhostname.edu/myMetacatContext/s
tyle/eml-physical-2.0.0beta6.xsl</target>
  </doctype>
  <doctype publicid="-//ecoinformatics.org//eml-project-2.0.0beta6//EN">
    <target
publicid="-//W3C//HTML//EN">http://www.myhostname.edu/myMetacatContext/s
tyle/eml-project-2.0.0beta6.xsl</target>
  </doctype>
  <doctype
publicid="-//ecoinformatics.org//eml-protocol-2.0.0beta6//EN">
    <target
publicid="-//W3C//HTML//EN">http://www.myhostname.edu/myMetacatContext/s
tyle/eml-protocol-2.0.0beta6.xsl</target>
  </doctype>
  <doctype
publicid="-//ecoinformatics.org//eml-software-2.0.0beta6//EN">
    <target
publicid="-//W3C//HTML//EN">http://www.myhostname.edu/myMetacatContext/s
tyle/eml-software-2.0.0beta6.xsl</target>
  </doctype>
<!-- general login & search -->
 
<default-style>http://www.myhostname.edu/myMetacatContext/style/ascii-tr
eeview.xsl</default-style>
  <doctype publicid="-//NCEAS//login//EN">
    <target
publicid="-//W3C//HTML//EN">http://www.myhostname.edu/myMetacatContext/s
tyle/login.xsl</target>
  </doctype>
  <doctype publicid="-//NCEAS//resultset//EN">
    <target
publicid="-//W3C//HTML//EN">http://www.myhostname.edu/myMetacatContext/s
tyle/resultset.xsl</target>
  </doctype>
  <doctype publicid="-//NCEAS//eml-generic//EN">
    <target
publicid="-//W3C//HTML//EN">http://www.myhostname.edu/myMetacatContext/s
tyle/generic-morpho.xsl</target>
  </doctype>
<!-- pre-beta6 modules -->
  <doctype publicid="-//NCEAS//eml-dataset//EN">
    <target
publicid="-//W3C//HTML//EN">http://www.myhostname.edu/myMetacatContext/s
tyle/eml-dataset-2.0.0beta4.xsl</target>
  </doctype>
  <doctype publicid="-//NCEAS//eml-dataset-2.0//EN">
    <target
publicid="-//W3C//HTML//EN">http://www.myhostname.edu/myMetacatContext/s
tyle/eml-dataset-2.0.0beta4.xsl</target>
  </doctype>
  <doctype publicid="-//NCEAS//eml-resource//EN">
    <target
publicid="-//W3C//HTML//EN">http://www.myhostname.edu/myMetacatContext/s
tyle/eml-dataset-2.0.0beta4.xsl</target>
  </doctype>
  <doctype publicid="-//ecoinformatics.org//eml-dataset-2.0.0beta4//EN">
    <target
publicid="-//W3C//HTML//EN">http://www.myhostname.edu/myMetacatContext/s
tyle/eml-dataset-2.0.0beta4.xsl</target>
  </doctype>
</style-set>




More information about the Eml-dev mailing list