Scientific Application Using XML and Web Tools - PowerPoint PPT Presentation

1 / 33
About This Presentation
Title:

Scientific Application Using XML and Web Tools

Description:

Margaret Sullivan, Research Scientist, JISAO PMEL/FOCI ... html body bgcolor='#FFFFFF' xsl:for-each select='MoorList/Mooring' H1 center ... – PowerPoint PPT presentation

Number of Views:44
Avg rating:3.0/5.0
Slides: 34
Provided by: Sull99
Category:

less

Transcript and Presenter's Notes

Title: Scientific Application Using XML and Web Tools


1
Scientific Application Using XML and Web Tools
Margaret Sullivan, Research Scientist, JISAO
PMEL/FOCI
  • Pacific Marine Environmental Laboratory

2
Fisheries-Oceanography Coordinated Investigations
  • Physical oceanography (PMEL) and fisheries
    (NOAA/AFSC) interdisciplinary studies

Gulf of Alaska, Aleutian Islands, Bering Sea
and North Pacific
3
Mooring 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
4
XML Application 1
  • Overview of Mooring Work
  • Web Requirements, Goals
  • Explore Tools, Define Solutions
  • The Benefits
  • The Bigger Picture
  • Ending Information

5
Mooring Sites Map
Overview of Mooring Work
6
Mooring Work
Overview of Mooring Work
7
A 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

8
Mooring Plans Summary Table in Excel
Overview of Mooring Work
9
Tables for 3 Moorings in Excel
Overview of Mooring Work
10
Types 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

11
XML Application 2
  • Overview of Mooring Work
  • Web Requirements, Goals
  • Explore Tools, Define Solutions
  • The Benefits
  • The Bigger Picture
  • Ending Information

12
Basic Web Requirements
Web Requirements, Goals
  • Mooring Planning information to web
  • Web tables visible to all interested parties
  • Mooring information changes controlled

13
Enhanced 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

14
XML Application 3
  • Overview of Mooring Work
  • Web Requirements, Goals
  • Explore Tools, Define Solutions
  • The Benefits
  • The Bigger Picture
  • Ending Information

15
Flow of Logic
Explore Tools, Define Solutions
16
Acronyms
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

17
Web 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?.

18
XML 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

19
A 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

20
XSLT Choices
Explore Tools, Define Solutions
  • Xalan/Xercer (Java)
  • Perl CGI, XSLT, LibXML, LibXSLT
  • PHP
  • Javascript

21
Perl Mods for XML
Explore Tools, Define Solutions
  • CGI.pm
  • Expat (C, foundation)
  • XMLSimple
  • XMLXSLT
  • XMLLibXML
  • XMLLibXSLT
  • XMLParser

22
For Consideration
Explore Tools, Define Solutions
  • Get vs Post
  • Why XML
  • DTD vs Schema
  • DOM and SAX
  • Extensibility
  • Portability

23
XML Application 4
  • Overview of Mooring Work
  • Web Requirements, Goals
  • Explore Tools, Define Solutions
  • The Benefits
  • The Bigger Picture
  • Ending Information

24
Web Site
The Benefits
25
Excel
The Benefits
HTML/Web
?
26
Other
The Benefits
  • Security
  • input control, validation
  • regenerate content
  • Access at sea to pertinent subset (PDA)
  • XML as multi-purpose resource

27
XML Application 5
  • Overview of Mooring Work
  • Web Requirements, Goals
  • Explore Tools, Define Solutions
  • The Benefits
  • The Bigger Picture
  • Ending Information

28
The Bigger Picture
29
XML Application 6
  • Overview of Mooring Work
  • Web Requirements, Goals
  • Explore Tools, Define Solutions
  • The Benefits
  • The Bigger Picture
  • Ending Information

30
Technical 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

31
People
Ending Information
  • FOCI
  • B.Parker, C.Dewitt
  • P.Stabeno
  • C.Hadden
  • R.Reed, N. Merati
  • Engineering
  • H.V.Miller

32
Ending Information
33
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com