XML/DTD (1) XML (Markup) SGML HTML XML XML XML 2004 All Rights Reserved 2
SGML Standard Generalized Markup Language ( ) XML Extensible Markup Language HTML HyperText Markup Language 2004 All Rights Reserved 3 (Markup) (Procedural Markup) : Microsoft Word PDF (Descriptive Markup) : SGML XML 2004 All Rights Reserved 4
(Procedural Markup) Microsoft Word (What You See Is What You Get) ex. binary code) 2004 All Rights Reserved 5 (Descriptive Markup) SGML XML (stylesheet) ASCII code 2004 All Rights Reserved 6
SGML XML (stylesheet) 2004 All Rights Reserved 7 (SGML XML) (stylesheet) PC, PDA, 2004 All Rights Reserved 8
SGML (Standard Generalized Markup Language) 2004 All Rights Reserved 9 (flexibility) : SGML 1986 ISO ISO 8879 SGML metalanguage DTD Document Type Definition meta-language language language document (non-proprietary) (platform-independence) (systemindependence) ASCII code (re-usability) 2004 All Rights Reserved 10
SGML SGML SGML 100% SGML SGML Web SGML Web Web (IE, Netscape) SGML 2004 All Rights Reserved 11 HTML HTML (predefined) HTML <head>,<meta>,<title>,<body>,<p> ( ) HTML HTML Extension 2004 All Rights Reserved 12
XML Web Web HTML SGML SGML Web SGML HTML XML 2004 All Rights Reserved 13 XML Extensible Markup Language) W3C 1996 W3C : World Wide Web Consortium, Web SGML (meta-language) 1998/2 XML1.0 Recommendation (W3C ) Microsoft, IBM, Sun Microsystems, Oracle, Adobe, ArborText,... 2004 All Rights Reserved 14
W3C XML XML XML Web (SGML ) SGML XML SGML XML XML ( ) XML ( XML ). 2004 All Rights Reserved 15 XML XML <customer-details id="acpharm39156"> <name>acme Pharmaceuticals Co.</name> <address country="us"> <street>7301 Smokey Boulevard</street> <city>smallville</city> <state>indiana</state> <postal>94571</postal> </address> </customer-details> HTML 2004 All Rights Reserved 16
SGML HTML XML SGML(1986) HTML SGML 1989 invented by Tim Berners-Lee 1996, HTML 3.2 XML SGML (1998, XML 1.0) XML HTML SGML XML meta-language HTML language XML SGML HTML 2004 All Rights Reserved 17 W3C ex. XHTML meta-language meta-language 2004 All Rights Reserved 18
XML SGML meta-language Document Type Definition 2004 All Rights Reserved 19 XML SGML SGML DTD XML DTD XML SGML SGML (Inclusion) (Exclusion) (content model) (Exceptions) XML XML AND(&) SDATA internal entities 2004 All Rights Reserved 20
XML HTML HTML XML HTML (extensibility) ( (pre-defined) ) (structure) DTD (validation) 2004 All Rights Reserved 21 XML XML well-formed XML XML well-formed XML DTD XML Schema well-formed XML valid XML DTD XML Schema well-formed XML DTD XML Schema 2004 All Rights Reserved 22
well-formed XML ( <p>..</p>) (nest) ( <B><I>bold and italic</b>italic</i> ) XML ( <img src= /> ) XHTML ( <font size= 2 > ) 2004 All Rights Reserved 23 XHTML W3C Recommendation 31-May-2001 HTML, XHTML (hypertext) HTML SGML HTML well-formed XML XHTML XML XHTML well-formed XML 2004 All Rights Reserved 24
XHTML vs. HTML (1/6) HTML <b><i>bold and italic</b>italic</i> XHTML ( ) <b><i>bold and italic</i></b><i>italic</i> <i><b>bold and italic</b>italic</i> 2004 All Rights Reserved 25 XHTML HTML (2/6) HTML <LI>. XHTML <li>. 2004 All Rights Reserved 26
XHTML HTML (3/6) HTML <p>here is a paragraph. <p>here is another paragraph. XHTML <p>here is a paragraph.</p> <p>here is another paragraph.</p> 2004 All Rights Reserved 27 XHTML HTML (4/6) HTML <table rows=3> XHTML ( ) <table rows="3"> 2004 All Rights Reserved 28
XHTML HTML (5/6) HTML <dl compact> XHTML <dl compact="compact"> 2004 All Rights Reserved 29 XHTML HTML (6/6) HTML <br><hr> XHTML <br/><hr/> 2004 All Rights Reserved 30
well-formed XML 1. ( Windows ) 2. XML 3. 4. XML 5..xml 6. IE XML ( IE XML Parser XML wellformed) 2004 All Rights Reserved 31 XML XML <?xml version= 1.0?> <?xml version= 1.0 encoding= UTF-8?> <?xml version= 1.0 encoding= big5?> <?xml version= 1.0 standalone= yes?> <?xml version= 1.0 standalone= no?> <? XML xml XML version XML 1.0 encoding XML UTF-8 standalone XML yes?> XML 2004 All Rights Reserved 32
<?xml version= 1.0 encoding= big5?> <record-list> </record-list> 2004 All Rights Reserved 33 XML <?xml version="1.0" encoding="big5"?> <record-list>. <record> <seq>1</seq> <title>xml RDF </title> <creator> </creator> <journal> </journal> <vol>220</vol> <date>90.07</date>.. <url>http://www2.read.com.tw/..</url>.. </record>.. </record-list> <title> <Title> XML < < > > & & " '.xml 2004 All Rights Reserved 34
Well-formed XML Microsoft Internet Explorer 6.0 2004 All Rights Reserved 35 XML Microsoft Internet Explorer 6.0 2004 All Rights Reserved 36
XML (Style Sheet) CSS (Cascading Style Sheet) W3C Recommendation HTML XML XSL (Extensible Stylesheet Language) W3C Recommendation, 2001/10/15 XML 2004 All Rights Reserved 37 XSL CSS HTML? XML?? XSL no yes XML CSS yes yes CSS 2004 All Rights Reserved 38
XSL XML <?xml version="1.0" encoding="big5"?> <?xml-stylesheet href="ncl_journal_search_2.xsl" type="text/xsl"?> <record-list>. <record> <seq>1</seq> <title>xml RDF </title> <creator> </creator> <journal> </journal>.. </record>.. </record-list> 2004 All Rights Reserved 39 XSL XML Microsoft Internet Explorer 6.0 2004 All Rights Reserved 40
XML XML 1.0 : W3C Recommendation 10-Feb-1998 Namespaces in XML : W3C Recommendation 14-Jan-1999 XML Schema : W3C Recommendation 2-May-2001 : XSLT : W3C Recommendation 16-Nov-1999 XSL : W3C Recommendation 15-Oct-2001 : XLink : W3C Recommendation 27-June-2001 XHTML 1.1 : W3C Recommendation 31-May-2001 2004 All Rights Reserved 41 XML (1/2) XHTML, MathML (Mathematical Markup Language), SMIL (Synchronized Multimedia Integration Language), RDF (Resource Description Framework), WML (Wireless Markup Language) (Metadata) XML HTML, SGML Metadata MARC XML DTD vs. ISO 2709 XML 2004 All Rights Reserved 42
XML (2/2) PC, PDA, B2B XML XML 2004 All Rights Reserved 43 2004 All Rights Reserved 44
2004 All Rights Reserved 45 (2) (3) XML (1) (4) XML HTML Client (5) metadata User 2004 All Rights Reserved 46