Customer Service | Training | Contact Us
You are here: Home > Downloads > ArcScripts > Search Results > Script Details Login | Feedback | Help

Metadata Stylesheets for the Web (ver 4)



contact author | download help | add bookmark | view bookmarks
Author Howie Sternberg
File Name Metadata_Stylesheets_For_Web.zip
Language JavaScript
Last Modified Feb 3 2007
Status of work Public Domain
Software ArcIMS
File Size 282.88 kb
Downloads 556

ArcScripts is intended for the free exchange of scripts and tools related to ESRI software products. Please alert the moderator if this script is a demo, trial-version, or an advertisement for a retail product.


Summary
Updated Feb 3, 2007 to include FGDC Plus (ver 2.0) metadata stylesheet.

Demonstrates example techniques for using XSLT stylesheets to transform metadata XML documents into HTML for display in a Web browser. These XSLT stylesheet define how to transform a metadata XML document exported from ArcGIS for display on the Web. Includes both ASP and JavaScript techniques for performing the transformation. Not all possible transformation techniques are demonstrated. All 4 example techniques demonstrate the use of following 3 Metadata stylesheets:

1. FGDC Classic for Web.xsl
2. FGDC FAQ for Web.xsl
3. FGDC Plus.xsl (ver 2.0)

The examples demonstrate how to provide a Web user with the ability to decide how to display metadata without you needing to export the corresponding HTML pages for each stylesheet from ArcCatalog in advance. All you need to do is export the metadata in XML format and place the file on the Website. The XSLT stylesheets dynamically create the HTML. This saves time and makes the Website easier to maintain if the metadata needs to be updated at a later date. Example 4 best demonstrates this technique because it uses just one HTML page to apply the 3 metadata styles to the metadata XML document when the Web user clicks on "FGDC Classic", "FGDC FAQ", "FGDC Plus", and "XML" links positioned across the top of the page.

These XSLT stylesheets have been modified so that they run in the latest versions of Internet Explorer, Netscape and Mozilla Firefox, which have built-in XML and XSLT support. "FGDC Classic for Web" and "FGDC FAQ for Web" stylesheets are based on the "FGDC Classic" and "FGDC FAQ" stylesheets included with ArcGIS. "FGDC Plus" is a new stylesheet that organizes metadata content into sections that expand and collapse. "FGDC Plus" is also available as a separate download from ArcScripts.

The examples demonstrate how to display a metadata XML document for the State Boundaries of the United States (statesp020.xml) with the three different stylesheets. The examples will work with all metadata XML documents exported from ArcCatalog.

From example 3, below demonstrates how to open three different HTML pages that run JavaScript window onload functions to process the three XSLT styleheets and transform the metadata XML document included in the query string into HTML format.

1. FGDC_Classic.htm?xmlfile=xml/statesp020.xml
2. FGDC_FAQ.htm?xmlfile=xml/statesp020.xml
3. FGDC_Plus.htm?xmlfile=xml/statesp020.xml

Additionally, the examples demonstrate how to display metadata in the current window, a target window, or popup window that can be sized and positioned on the screen.

Installation Instructions:

For best results, first open Internet Information Services (IIS) and create a new Virtual Directory on your Web site using this 'metadata' folder as the Web Site Content Directory. Then open your browser and open index.htm to use the examples.