Title: Scientific Application Using XML and Web Tools
1Scientific Application Using XML and Web Tools
Margaret Sullivan, Research Scientist, JISAO
PMEL/FOCI
- Pacific Marine Environmental Laboratory
2Fisheries-Oceanography Coordinated Investigations
- Physical oceanography (PMEL) and fisheries
(NOAA/AFSC) interdisciplinary studies
Gulf of Alaska, Aleutian Islands, Bering Sea
and North Pacific
3Mooring Plans Web Site
http//www.pmel.noaa.gov/foci/operations/mooring_p
lans/2004/mooring_plans_2004.html
This Presentation Web Site
http//www.pmel.noaa.gov/sullivan/webshop2004.htm
l
4XML Application 1
- Overview of Mooring Work
- Web Requirements, Goals
- Explore Tools, Define Solutions
- The Benefits
- The Bigger Picture
- Ending Information
5Mooring Sites Map
Overview of Mooring Work
6Mooring Work
Overview of Mooring Work
7A Year in Moorings
Overview of Mooring Work
- Design the years moorings and cruises based on
ongoing projects and data requirements - Create Excel tables for cruises/moorings
- Distribute spreadsheets to engineering
- Build moorings
- Transport moorings to ship(s)
- Deploy moorings
8Mooring Plans Summary Table in Excel
Overview of Mooring Work
9Tables for 3 Moorings in Excel
Overview of Mooring Work
10Types of Data Needed
Overview of Mooring Work
- Project and budget information
- Geographic - name, latitude, longitude, depth,
current speed - Instruments - itemized list with names and depths
- Instrument - tally per type, mooring, and cruise
- Past mooring information and design changes
11XML Application 2
- Overview of Mooring Work
- Web Requirements, Goals
- Explore Tools, Define Solutions
- The Benefits
- The Bigger Picture
- Ending Information
12Basic Web Requirements
Web Requirements, Goals
- Mooring Planning information to web
- Web tables visible to all interested parties
- Mooring information changes controlled
13Enhanced Requirements
Web Requirements, Goals
- System evolved from 1-person, Excel, paper,
desktop - Uniform information available to planners and
engineers - Data Changes are accountable and dated
- Web display/information similar to Excel format
- Main summary table, links to individual Mooring
tables - Data resource that is reusable and update-able
- Portable data subset on PDA for deploy/recovery
14XML Application 3
- Overview of Mooring Work
- Web Requirements, Goals
- Explore Tools, Define Solutions
- The Benefits
- The Bigger Picture
- Ending Information
15Flow of Logic
Explore Tools, Define Solutions
16Acronyms
Explore Tools, Define Solutions
- CGI Common Gateway Interface
- XML - eXtensible Markup Language (.xml)
- XSD - XML Schema Definition (.xsd)
- XSL - eXtensible Stylesheet Language (.xsl)
- XSLT - eXtensible Stylesheet Language
Transformations
17Web Input and CGI
Explore Tools, Define Solutions
- Input
- XForms, HTML (xhtml)
- Perl forms
- Javascript
- Applet or servlet (Java)
- Common Gateway Interface Protocol
- Perl
- PHP
- Java, Programming languages?.
18XML Design
Explore Tools, Define Solutions
- Â lt?xml version"1.0" ?gt
- Â lt?xml-stylesheet version"1.0"?gt
- - ltMoorList xmlnsxsi"http//www.w3.org/2001/
-
XMLSchema-instance" -
xsischemaLocation"my_test3.xsd"gt - - ltMooringgt
- Â ltMoorNamegt03GPP-32Blt/MoorNamegt
- Â ltMoorTypegtSubsurfacelt/MoorTypegt
- ltLocationInfogt
- ltProjectgt
- ltInstrumentsgt
- Â lt/Mooringgt
- - ltMooringgt
- Â ltMoorNamegt03GB-4Alt/MoorNamegt
- Â ltMoorTypegtSubsurfacelt/MoorTypegt
- ltLocationInfogt
- ltProjectgt
- ltInstrumentsgt
- Â lt/Mooringgt
19A Sample of Schema and Stylesheet
Explore Tools, Define Solutions
- lt?xml version"1.0"?gt
- ltxsschema version"1.0xmlnsxs"http//www.w3.or
g/2001/XMLSchema"gt - ltxselement name"MoorList"gt
- ltxscomplexTypegt
- ltxssequencegt
- ltxselement ref"Mooring
maxOccurs"unbounded"/gt - lt/xssequencegt
- lt/xscomplexTypegt
- lt/xselementgt
- lt?xml version'1.0' encoding"ISO-8859-1"?gt
- ltxslstylesheet version"1.0" xmlnsxsl"http//ww
w.w3.org/1999/XSL/Transform"gt - ltxsltemplate match"/"gt
- lthtmlgtltbody bgcolor"FFFFFF"gt
- ltxslfor-each select"MoorList/Mooring"gt
- ltH1gtltcentergt
- ltxslvalue-of select "Project/Month"/gt160
- ltxslvalue-of select"Project/Year"/gt160-
160 - lt/centergtlt/H1gt
- lth3gtltxslvalue-of select"MoorName"/gt160
- ltxslvalue-of select" MoorType "/gtlt/h3gt
20XSLT Choices
Explore Tools, Define Solutions
- Xalan/Xercer (Java)
- Perl CGI, XSLT, LibXML, LibXSLT
- PHP
- Javascript
21Perl Mods for XML
Explore Tools, Define Solutions
- CGI.pm
- Expat (C, foundation)
- XMLSimple
- XMLXSLT
- XMLLibXML
- XMLLibXSLT
- XMLParser
22For Consideration
Explore Tools, Define Solutions
- Get vs Post
- Why XML
- DTD vs Schema
- DOM and SAX
- Extensibility
- Portability
23XML Application 4
- Overview of Mooring Work
- Web Requirements, Goals
- Explore Tools, Define Solutions
- The Benefits
- The Bigger Picture
- Ending Information
24Web Site
The Benefits
25Excel
The Benefits
HTML/Web
?
26Other
The Benefits
- Security
- input control, validation
- regenerate content
- Access at sea to pertinent subset (PDA)
- XML as multi-purpose resource
27XML Application 5
- Overview of Mooring Work
- Web Requirements, Goals
- Explore Tools, Define Solutions
- The Benefits
- The Bigger Picture
- Ending Information
28The Bigger Picture
29XML Application 6
- Overview of Mooring Work
- Web Requirements, Goals
- Explore Tools, Define Solutions
- The Benefits
- The Bigger Picture
- Ending Information
30Technical References
Ending Information
- Books
- Perl XML, 2nd ed., E.T.Ray and J.McIntosh,
OReilly - XML for the World Wide Web, Visual Quickstart
Guide, E.Castro, Peachpit Press - XSLT (Mastering XML Transformations), D.Tidwell,
OReilly - Web Article
- XML DTDs vs XML Schema, Michael Jervis, Nov.26,
2002, www.sitepoint.com/print (search on
Jervis) - Web Sites
- CPAN Perl modules http//www.cpan.org/modules/i
ndex.html - World Wide Web Consortium (W3C)
http//www.w3.org/ - W3C tutorial http//www.w3schools.com/xml/defaul
t.asp
31People
Ending Information
- FOCI
- B.Parker, C.Dewitt
- P.Stabeno
- C.Hadden
- R.Reed, N. Merati
32Ending Information
33(No Transcript)