XML by Example- P12

Chia sẻ: Thanh Cong | Ngày: | Loại File: PDF | Số trang:27

0
42
lượt xem
7
download

XML by Example- P12

Mô tả tài liệu
  Download Vui lòng tải xuống để xem tài liệu đầy đủ

Tham khảo tài liệu 'xml by example- p12', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả

Chủ đề:
Lưu

Nội dung Text: XML by Example- P12

  1. 486 Glossary notation—Format of an external entity in XML. parser—Software library in charge of reading and writing XML docu- ments. PI—Processing Instruction, a mechanism for including non-XML instruc- tions in an XML document. RDF—Resource Description Framework, a proposed W3C recommendation to carry metadata. SAX—Simple API for XML. See also DOM. SGML—Standard Generalized Markup Language, the ancestor of both HTML and XML. SOX—Schema for object-oriented XML, a proposed replacement for DTD. See also DCD, DDML, DTD, XML-Data, and X-Schema. tag—Element of markup in XML. URL—Uniform Resource Locator, the address of a resource on the Web. W3C—World Wide Web Consortium, the body in charge of Web standard- ization. XLink—A mechanism for establishing links in XML documents. XML—eXtensible Markup Language, a new markup language published by the W3C to address the limitations of HTML. XML-Data—A proposed replacement for DTD. See also DCD, DDML, DTD, SOX, and X-Schema. XQL—XML Query Language, a proposed language for extracting data from XML documents. XSL—XML Stylesheet Language, a style sheet language developed specifi- cally for XML. See also CSS. X-Schema—A generic name for proposed replacement of the DTD. See also DCD, DDML, DTD, SOX, and XML-Data.
  2. Index Symbols alignment of text, 177 alternate style sheet, * (asterisk), 73 310-311 , (comma), 73-74 ancestors, Java inheri- + (plus), 73 tance, 477 ? (question mark), 73 anchor elements, 140, _ (underscore), 45 324 | (vertical bar), 73-74 anonymous boxes, 171 APIs, see DOM A appendChild() method, AAP (Association of 277, 283 American Publishers), appendData() method, 20 278 accessing applications, 231 classpaths, 242 business documents, entities, 85 63-65 Web sites, 6 client/server, 346-347 acronyms, 103 data, 29-32 Active Server Page documents, 29 (ASP), 376 event handlers, 233 ActiveX, 294 n-tiered, 345, 348 adding object-based interface, CDATA sections, 55 194, 196 comments, 50 publishing, 62-63 elements, 128 scientific, 7 headers, 276 server-side, 458-459 links (XLink), 326 standards, 197-198 nodes, 274-276 three-tiered, 347-348 non-XML statements, XML architecture, 53-54 193-194 objects, 275 applying style sheets, properties, 95 145-148 tiers, 348 architecture address books, 308-309, applications, 193-194 312 classes, 260-261 Ælfred, 237, 460 parsers, 193-194
  3. 490 archives archives, JAR (Java), B CALS (Continuous 481-482 Acquisition and Life- arguments backend parsers, 193 cycle Support) stan- arrays declaring, 465 background, 178-179 dard MIL-M-28001B, 20 XSLT functions, 137 batch files, validation, canvases, 168 ASP, 6, 295-296 85 Cascading Style Sheets, Association of American block boxes, 171 see CSS Publishers (AAP), 20 boolean primitive type, case-sensitive asterisk (*), 73 465 element names, 45 attaching, see linking borders syntax, 60 Attr object, 217-218 boxes, 175 CGI (Common Gateway attributes, 46-47, 97 color, 178 Interface), 6, 376, 473 Attr object, 217-218 boxes channels content, 339-340 borders, 175 defining, 65-66 conversion utility, 212, display property, 174 subscriptions, 65-66 214-216 flow objects, 169-172 character data (CDATA), creating, 278 margins, 174-175 43, 54-55 currency, 211, 217 padding, 175 methods, 278 data, 218 browsers references, 53 DTDs, 96 compatibility, 9 Unicode, 51 elements, 75 conversion utility, 225-227 whitespace() event, 244 enumerated type, 75 CSS, 163, 227-228 checkout (XCommerce), exchange rates, 211, documents, 295-296 351, 407-417 216-217 DOM, 199, 225-229 child elements, 48 HTML, 21-23 DTDs, 296 nodes, 202, 275 languages, 53 elements, 341 selectors (CSS2), 180 links (XLink), 324 frames, 225 trees, 206 NamedNodeMap object, images, 324 Clark, James, 460 217 InDelv, 187-189 classes names, 217 parsers, 219 architecture, 260-261 nodes, 202 style sheets, 145 imports, 459, 466, 468 parents, 340 XLink, 327 package, 469 price list, 216-217 XML, 36-37, 129-130 private, 469 properties, 342 built-in protected, 469 SAX, 244-245 business documents public, 469 selectors, 181 semantics, 64-65 SAX, 242 signatures, 328 XSLT templates, 138-139 static modifier, 467 spaces, 53 business documents classpaths string, 75 application, 63-65 accessing, 242 structure, 218 Java, 475, 480-481 tokenized, 75 C libraries, 381-382, 384 values, 60, 75-76, 217, 341 C++, 48 XCommerce, 381-382 XSLT, 136, 305 calling client/server applica- templates, 154 tions, 346-347 XSLT, 303-304 4GL, 346 common formats, 357-359
  4. creating 491 cost, 347 ComparisonMachine DTDs, 128, 322 database servers, 347 class, 260 formats, 29 distributed, 346 compatibility HTML, 332 email, 346-347 browsers, 9 Java, 221-223 file servers, 346 CSS, 164 JavaScript, 200-201 middle tier, 372-375 XSLT, 128 text, 141-144 middleware, 356-357 compiling XSLT style sheets, print servers, 346 data extracts, 157 131-132 roles of computers, 346 Java files, 383-384 CORBA objects, 221 services, 346 parsers, 193 core APIs (Java), 482 see also browsers; server- SAX, 241-242 cost, 359 side applications components, server-side client/server applications, cloneNode() method, 277 applications, 458-459 347 code, see source code computer platforms, 219 domain name registra- colon, 45 conditional tion, 116 color, 173, 178 documents/sections, 91, middle tier, 366 combining style sheets, 101 Notepad, 61 319 configuration files creating comma (,), 73-74 (XCommerce), 382-383 attributes, 277-278 command-line version attributes, 278 CDATA section, 277 (Java), 84 document handlers, 243 comments, 277 comments, 166 entity resolvers, 243 content, 182 adding, 50 named items, 217 document fragments, 187, Java, 469-470 request headers, 294 277 commerce applications, conflicts in namespaces, DTDs, 97-99 see XCommerce 108, 112 elements, 277 common elements, connectors entity references, 277 319-320 DTD, 73-74 HTML, 284 common formats, or, 338 DOM, 279-281, 283 357-359 constructors (Java), 467 JavaScript, 280-281, Common Gateway content 284-288 Interface (CGI), 6, 376, attributes, 339-340 non-XML data struc- 473 creating, 182 tures, 291-292 Common Object DTDs, 74 Java, 466 Request Broker elements, 339-340 nodes, 281-282 Architecture, see model, 71 objects, 140 middleware Continuous Acquisition parsers, 296 companion standards, and Life-cycle Support processing instructions, 32 (CALS), 20 277 comparing control (Java), 468-469 style sheets, 149-151 CSS with XSLT, 162-163 conversion text nodes, 277 Java with JavaScript, attributes, 212, 214-216 top-level elements, 138, 223-224 browsers, 225-227 282-283 prices, 312-313 currency, 199-200, 271 URLs, 114, 117
  5. 492 CSS CSS (Cascading Style extracting, 155-157 descendants Sheets) HTML, 284 Java inheritance, 476-477 advanced style sheets, non-DOM, 288-289 Text object, 206 179-180 styling, 157-158 designing DTDs boxes, 174-175 tier, 348, 353-355, 429-444 attributes, 96-97 browsers, 163, 227-228 databases automating, 96 color, 173, 178 DOM, 229 elements, 96-97 comments, 166 offloading, 7 nested elements, 93 compatibility, 164 relational, 30 object models, 92-93 development, 163 reloading, 7 owner elements, 94 documents, 126, 165-166, servers, 347 parameter entities, 95 187 standards, 197 properties, 95 editors, 182-184 updating, 32 root-elements, 93-94 flow objects, 168-172, 189 XCommerce, 361-364, top-level elements, 93 fonts, 176-178 384-385 trees, 95 images, 178-179 DCD (Document URIs, 96 priorities, 167-168 Content Description), Web sites, 26-27 properties, 168, 172-173 105 destructive document selectors, 166-167 DCOM, see middleware transformations, 332 simple, 164-165 DDML (Document deterministic content tables of contents, Definition Markup model, 74 185-186 Language), 105 development of name- text, 177 declarations spaces, 120 versions, 163 arrays, 465 digital signatures, XSLFO, 187-189 attributes, 75, 80 328-329 XSLT, 162-163, 185 document types, 76-77 directories CSS2 elements, 71-72, 77 Java, 480-481 attribute selectors, 181 encoding, 51 XCommerce, 383 child selectors, 180 entities, 80, 246 display property, 174 content, 182 HTML, 153 DocBook, 20 development, 163 namespaces, 114, 120 docs directory, 383 sibling selectors, 181 notations, 246 documents style sheets, 182 SAX events, 243-244 applications, 29 currency, 199-200, 211, XML, 49 attributes, 278 217, 271 default settings business, 63-65 customizing middle tier, attribute values, 76, 80, Content Description 367 84 (DCD), 105 DTDs, 303-304 creating, 187 D defining DOM, 279-281, 283 data channels, 65-66 HTML, 284 applications, 29-32 elements, 80, 162 JavaScript, 280-281, attributes, 218 entities, 52 284-288 directories, 383 deleteData() method, non-XML data struc- EDI, 322 278 tures, 291-292 CSS, 165-166
  6. DTDs 493 declarations, 76-77 DOM (Document Object browsers, 296 Document Definition Model), 35, 198 conditional sections, 91 Markup Language browsers, 199, 225-229 connectors, 73-74 (DDML), 105 databases, 229 content model, 71, 74 DTDs, 79-80 documents conversion, 322 Dump service, 293 creating, 279-281, 283, creating, 97 elements, 265-266, 292 default, 76, 304 335-336 creating without, designing, 91-93 ending, 244 283-288 documents, 79-81 entities, 52, 85-89 types, 204 editors, 71-72, 74, 81-83, events, 242-243 editors, 229 97 format conversion, 29 IBM parsers, 224 elements, 96-97 JavaScript, 295 interface, 232-233 entities, 80, 95 markups, 334-336 Java, 221-223, 482 events, 242 methods, 277 JavaScript, 199-202 existing, 92 modeling, 100-104 levels, 198 extensions, 97 nodes, 274-276, 281-282 nodes, 202-203 functions, 296 objects, 203-204 OMG IDL, 220-221 inheritance, 105 posting to Web servers, SAX, 35, 231 interface, 246 293-294 state, 207-210, 276 keywords, 72 retrieving from Web Text object, 206-207 limitations, 105 servers, 293-295 trees, 236 managing, 90 saving, 295-296 domain names, 115-116 namespaces, 119-120 semantics, 58, 64-65 DoPost() method, 477 nested, 93 sending to the server, DoPut() method, 477 occurrence indicators, 73 292-294 double primitive type, online help, 104 sharing, 321 465 owners, 94 starting, 244 downloading properties, 95 storage, 229 GMD-IPSI engines, 155, public identifiers, 78-79 structural information, 229 repetition, 105 10-14, 18, 63, 266, 334 HTML tags, 7 root, 93-94 top-level elements, images, 324 schemas, 105 282-283 Java, 84, 459-461 SGML, 18-19, 105 transformations, 330-334 JDK, 241 sharing, 321 trees, 204 Jetty, 381 standards, 296 types, 204 LotusXSL, 381 structural information, validation, 81-82, 84-85 Notepad, 61 84, 98-99, 336-339 viewing, 126 parsers, 192 subsets, 77-79 well-formed, 81-82 standalone documents, 80 support, 296 XML XCommerce, 349-351 syntax, 70-71, 105 creating, 187 XML, 84, 381 top-level, 93 linking CSS, 165-166 DTDs (Document Type trees, 95 modeling, 100-104 Definitions), 69 UML, 92 structure, 63 attributes, 75-76, 96-97 URIs, 96 DoGet() method, 477-478 automating, 96
  7. 494 DTDs WYSIWYG editors, 184 namespaces, 314-315 HTML, 153 XSLT, 128, 296, 303 nesting, 47-48, 93, internal, 86-89 Dump service, 293 340-341 parameters, 86-87, 95 duplication of name- nodes, 203 parsed, 86-87 spaces, 112-113 objects, 206, 278 references, 52 dynamic invocation, 357 owners, 94 resolution, 242, 246 dynamic servlets, 472 parsers, 244, 248 standalone documents, 79 properties, 342 storing, 85 E reducing, 335-336 unparsed, 86-90, 246 EDI (Electronic Data repeating, 341 enumerated type attrib- Interchange), 64, reusing, 342 utes, 75 322-323 roots, 48-49, 93-94 errors editors, 37, 60-61 selecting, 166 Document object, 204 CSS, 182-183 signatures, 328 Java, 470-471 documents, 276 start tags, 44-45, 244 messages, 132, 242, 246 DOM, 229 state, 261, 264 parsers, 218-220 DTDs, 81, 97, 184 subelements, 319 SAX, 246-247 elements, 341 text, 72 escapeXML() function, parsers, 219 Text object, 206 291 SGML, 37 top-level, 77, 93, 138 events style sheets, 148-149 trees, 204-206 generating, 234-236 text, 183 XSLT, 128, 134, 140, 149, handlers, 233, 242 tree-based, 183 154-155 interface, 233-236 WYSIWYG, 184 email, 346-347 parsers, 196-197, 242-244, Electronic Data emailaholic directory, 248 Interchange (EDI), 64, 318, 383 see also SAX 322-323 empty elements, 47, 72 exceptions, Java errors, electronic markup, 14-15 encapsulation, 417-428 470-471 elements, 96-97, 290 encoding exchange formats, 356 attributes, 46-47, 75, declarations, 51 exchange rate attribute, 244-245 end tags, 44-45, 59 211, 216-217 browsers, 341 parameters, 51-52 existing DTDs, 92 common, 319-320 source codes, 56-57 exportProduct() func- content, 339-340 UTF, 51 tion, 303 declaration, 71-72 eNotepad, 183 extended links (XLink), defining, 80, 162 entities, 52 326-327 documents, 11-14, 82-83, accessing, 85 extends keyword (Java), 203, 265-266 characters, 53 477 editors, 47, 72, 341 declaration, 80 extensibility, 308 end tags, 44-45, 244 defining, 52 eXtensible Markup HTML, 80 documents, 85 Language (XML), 6 indenting, 74 DTDs, 80, 90 extensions, 97, 320 links (XLink), 324 external, 86-89 external entities, 86-90 names, 45-46, 60, 103-104 general, 86 external subsets, 77-80
  8. InDelv XML Browser 495 extracting data, 155-158 G help tools, 104 extranets, 31 hiding syntax, 290-291 general entities, 86 hierarchy, XSLT tem- F generating plates, 141 events, 234-236 highlighting text, 183 fatalError() method, 246 parsers, 269-270 Hotmail, 347 fields in Java, 466 XCommerce, 351-353 HTML (Hypertext files, configuration, XSLT style sheets, Markup Language) 382-383 132-133 attributes, 21-23 filters generic coding client/server applications, middle tier, 369 HTML, 24 358 ratings, 111 identifier (GI), 17 conversions, 332 fixed attributes getAttribute() method, data structure, 284 namespaces, 119-120 278 documents, 152, 292-294 values, 84 getColumnNumber() elements, 80 Flash, 6 method, 245 entities, 153 flexibility getLength() method, 245 formatting, 24-25 documents, 265-266 getLineNumber() generic coding, 24 XSLT, 296 method, 245 limitations, 7, 162 float primitive type, 465 getName(i) method, 245 popularity, 6 flow objects, 168 getNamedItem() procedural markup, 24 boxes, 169-172 method, 217 structural information, 21 CSS, 189 getPublicId() method, style sheets, 132-133 Java, 464-465 245 syntax, 333-334 properties, 169 getSystemId() method, tags, 6-7, 20-21 fonts, 176-178 245 XSLT, 128, 297 forcing document struc- getTopLevel() function, HTTPPost class, 414-417 ture, 266 282 hyperlinks, 189 foreground color, 178 getType(i)/getType formats common, 357-359 (name) method, 245 I getValue(i)/getValue conversion, 29 IBM, 224-225 (name) method, 245 DTDs, 303 identifiers, 78-79 global classpaths, 480 electronic markup lan- IETF (Internet GMD-IPSI engines, 155, guages, 15 Engineering Task 229 HTML, 24-25 Force), 117 Goldfarb, Charles (Dr.), XSLFO, 189 images 18 XSLT, 304 background, 178-179 graphics, 349 frames, 225 downloading, 324 grouping font proper- functions importing ties, 178 DTDs, 296 classes, 468 XSLT, 136-137 H style sheets, 182 InDelv browser, 187-189 HandlerBase class, 242 InDelv XML Browser, 37 hasChildNodes() method, 278
  9. 496 indenting indenting Internet Explorer servlets, 473-475 elements, 74 channels, 65-66 downloading, 460-461 source codes, 55-56 DOM support, 276 properties, 475-476 text, 177 links (XLink), 325 tools, 459 indexes, 185 style sheets, 145-149, 302 variables, 465-467 indicators, occurrence, support, 36, 372 Virtual Machine (JVM), 73 XML, 129-130 459 inheritance XSLT, 147-148, 296 Web Server, 461 DTDs, 105 InterNIC, 115 XCommerce, 349 flow objects, 169 intranets, 308-309, 375 XML, 237 Java, 476-477, 479-480 islands, 202, 276 see also SAX inline boxes, 171 JavaBean, 294 InputSource interface, J JavaScript, 6, 8, 48, 243 Java, 6, 8, 48, 377-378 376-377 insertBefore() function, access control, 468-469 clients, 373, 375 276-277 applications, 458 code, 272-274 insertData() method, 278 archives, 481-482 conversion.js, 200-201 instructions, SAX, pro- classes, 459, 466 documents, 280-281, cessing, 244 classpaths, 475, 480-481 284-288, 295-296 int primitive type, 465 code, 462-463 DOM application, 199-202 interface command-line version, 84 Java, 223-224 applications with parsers, comments, 469-470 methods, 289 194, 196 constructors, 467 object constructors, 289 DTDHandler, 246 conversion utility, 221-223 XSLT, 298-301 EntityResolver, 246 core APIs, 482 JDBC, 382 ErrorHandler, 246 Development Kit (JDK), JDK (Java Development event-based, 196-197, 127, 241, 459-460 Kit), 127, 241, 459-460 233-236 errors, 470-471 Jetty, 381, 461 IDL, 220 fields, 466 JRE (Java Runtime InputSource, 243 files, 383-384 Environment), 127 Java, 479-480 flow, 464-465 JRun, 461 object-based, 232-233, 236 imports, 468 ParserFactory, 243 inheritance, 476-480 K-L SAX, 231, 246-247, 260, interfaces, 479-480 keywords 479 Java Runtime DTDs, 72 vendors, 197 Environment (JRE), 85, Java, 471, 477-478 internal entities, 86-89 127, 459 internal subsets, 77-79 Javadoc, 469-470 languages, 53, 376 international standards JavaScript, 223-224 length property, 172-173 SGML, 18 keywords, 471, 477-478 libraries, 381-382, 384 Unicode, 51 methods, 467, 477-478 limitations, 105 Internet Engineering objects, 466 line height, 177 Task Force (IETF), 117, packages, 468 linking, 10, 165 328 parameters, 467 documents, 165-166 parsers, 221, 460 style sheets, 276 price list, 249-260
  10. listings 497 templates, 313 entries, 77 merging files, 156 XLink exchange rate attribute, names, 58 adding, 326 211 namespaces, 33, 121-122 attributes, 324 external entities, 86-87, attributes, 118-120 browsers, 327 89 different names, 111-112 elements, 324 extracting data, 156-157 duplication, 112-113 extended, 326-327 frames, 225 prefix declaration, 114, Internet Explorer, 325 HTML 119 simple, 323-325 attributes, 21-23 ratings, 109-111 storing, 326 code, 20-21, 24-25, 297 scoping, 118 listings conversions, 332-333 newsletters, 62-63 address books, 42-43, documents, 132-133, orders, 63-64 70-71, 98-99, 102-103 152, 284 phone lists, 308-310 articles, 129-130 results, 333-334 price lists, 195, 234, attribute conversion, 212, sending document to 248-260, 312-316 214-216 server, 293 product lists, 31, 359-360, catalog files, 79 writing, 363-364 366-367, 370-371 channel definitions, 65-66 indexes, 157-158 resources, 108-109 conditional sections, 91 Internet Explorer, RTF, 15-16 configuration files, 145-148, 302 SAX, 237-241, 479 382-383 invalid document, 83 Server Configuration File, conversion utility, 212, Java 475 221-223, 225-227 application, 462-463 Service-Side JavaScript, conversion.js, 200-201 Checkout class, 407-414 376 CORBA, 356-357 Comlet class, 390-393 servlets, 473-476 country entities, 88 Editor class, 444-446 SGML, 19 CSS HTTPPost class, state information, 208-209 boxes, 169-170 414-417 style sheets, 34-35, linking XML docu- Merchant class, 398-403 149-151 ments, 165-166 MerchantCollection alternate, 310-311 simple, 164 class, 393-396 combining, 320 style sheets, 179-180, NotImplementedError common elements, 227-228 class, 428 318-319 tables of contents, Product object, 404-407 conversions, 131-132 185-186 Shop class, 386-390 Editor class, 450-451 currency, 199-200, 211 Viewer class, 451-454 Emailaholic, 318 documents, 27-28, 100, XMLServer class, Merchants, 397 330-331 429-434 Playfield, 316-317 DOM, 270-271, 279 XMLServerConsole Viewer class, 454-455 DTDs, 82, 94-96, 337 class, 435-444 WriteIT, 317 element names, 46 XMLUtil class, 417-427 XMLi, 317 Emailaholic style sheet, JavaScript, 280-281, TeX, 17 368-369 284-288, 373-374, text style sheet, 142-143 end tags, 56 447-450 valid documents, 82-83 links , 35 valid invoices, 338 memo, 10
  11. 498 listings Web servers, 294-295 structure, 43 multiple inheritance, writing, 361-363 tags, 17 Java, 479-480 XCommerce, 359-361, 365 matching XSLT items, multiple items, select- XSLFO, 187-189 136-139 ing, 154-155, 166 loading Megginson, David, 237 style sheets, 320 Merchant class, 397-403 N XSLT, 305 MerchantCollection n-tiered applications, location class, 315-316, 393-397 345 elements in documents, merging data extracts, adding, 348 82-83 156-157 client/server, 346-347 state, 261 messages, 219-220 three-tiered, 347-348 XSLT templates, 138-139 methods NameNodeMap object, Locator object, 245 ActiveX, 294 217 Locomotive, 461 CharacterData, 278 names long primitive type, 465 Document, 277 attributes, 217 LotusXSL, 37, 132, 310, Element, 278 elements, 45-46, 103-104 320, 381, 460 Java, 467, 477-478 fonts, 176 browsers, 296 JavaScript, 289 nodes, 203, 217 processors, 127 NamedNodeMap object, parent, 203 XSLT style sheets, 132 217 spaces, 60 Node, 277-278 syntax, 58 M SAX, 243 namespaces macros, 17-18 Text, 279 conflicts, 108, 112 maintaining Microsoft, 224, 460 declaration, 114, 120 DOM middle tier application, domain parking, 116 state, 208-210 347 DTDs, 119-120 SAX, 247-260 clients, 372, 374-375 duplication, 112-113 makeXML() function, cost, 366 elements, 120, 314-315 289 customizing, 367 fixed attributes, 119-120 managing DTDs with filters, 369 names, 114 entities, 90 style sheets, 369-371 prefixes, 113-114 mapping, 220, 322 tools, 366 PURLs, 118 margins, boxes, 174-175 XCommerce, 349, 386-393 ratings, 108-111 markup languages middleware scoping, 118 comments, 50 applications, 356 style sheets, 121-122 documents, 334-336 CORBA, 356-357 TLDs, 115 electronic, 14 dynamic invocation, 357 URLs, 114-115, 117 formatting, 15 protocols, 356 URNs, 117-118 plain text, 43 tools, 356 Xlink, 122 procedural, 15 modeling XML docu- XML resources, 108-109 readability, 43 ments, 100-104 Near & Far, 104 software, 44 Mozilla, 36, 145 nesting elements, 47-48, source codes, 14 MP3, 6 93, 340-341
  12. parsers 499 Netscape attributes, 96-97, 218 P Communicator, 36 automating, 96 newsletters, 62-63 constructors, 289 package classes (Java), nodes designing, 92-93 468-469 adding, 274-276 elements, 96-97 padding boxes, 175 attributes, 202 Java, 466 pages, printing, 168 child, 202, 275 limitations, 236 parameters codes, 203 nested, 93 encoding, 51-52 creating, 281-282 owners, 94 entities, 86-87, 95 DOM, 202-203 parameter entities, 95 Java, 467 elements, 203 parsers, 194, 196, 243 parents names, 217 properties, 95, 218 attributes, 340 objects, 206-207, 217 removing, 275 elements, 48 parent, 202 root, 93-94 nodes, 202 preceding, 202 top-level, 93 parsers, 191, 231 properties, 277-278 trees, 95 attributes, 216-217 trees, 205 UML, 92 backend, 193 types, 202 URIs, 96 code, 224 values, 203 XSLT, 140 compilers, 193 XSLT functions, 136-137 occurrence indicators, CORBA objects, 221, 296 nonvalidation parsers, 73 documents, 204, 295 193, 225 offloading databases, 7 downloading, 192 non-XML data struc- OMG IDL (Object elements, 244, 248 tures Management Group entities, 86-87 adding, 53-54 Interface Definition errors, 218-220 documents, 291-292 Language), 220-221, 377 events, 196-197, 234-236 DOM, 288-289 open() method, 294 files, 243 nondestructive transfor- open-source software, generators, 269-270 mations, 332 461 IBM, 224-225 notations or connector, 338 Java, 221, 460 declaring, 246 Oracle, 37, 224 Microsoft, 224 unparsed entities, 89-90 orders (XCommerce), nonvalidation, 193, 225 Notepad, 60-61, 183 353-355 objects, 194, 196, 204, NotImplementedError forms, 63-64 243-244 class, 428 generating, 351-353 Oracle, 224 processing, 365-366 parse() method, 243 O output ParserFactory interface, DTDs, 303 243 Object Management XSLT style sheets, 134 SAX, 242, 246-247 Group (OMG IDL), owner elements, 94 standards, 197-198 220-221, 377 Sun, 224 object models, 232-233 switching, 243 adding, 275 syntax, 37, 192-193
  13. 500 parsers validation, 193, 225 procedural markup Q-R XML architecture, HTML, 24 193-194 RTF, 15-16 question mark (?), 73 paths processing quotes, attribute values, length, 153 instructions (PI), 53-54, 60 XSLT syntax, 135 244 ratings payments (XCommerce), XCommerce orders, 349, different names, 111-112 349 365-366 namespaces, 109-111 #PCDATA keyword, 72 products (XCommerce) RDF (Resource PDAs, 6-7, 144 databases, 361-364 Definition PDOM (Persistent downloading, 349-351 Framework), 58 DOM), 229 listing, 359-361 reading parser files, 243 percentage property, objects, 404-407 recommendations 173 uploading, 364 namespaces, 108 Perl, 237, 376 programming lan- XSL, 127 Permanent URLs guages, 376 recording state ele- (PURLs), 118 Java, 377-378 ments, 264 Persistent DOM JavaScript, 376-377 reducing elements, (PDOM), 229 Omnimark, 377 335-336 personal digital assis- Perl, 376 references, 52-53 tants (PDAs), 6 Python, 377 registration phone list style sheet, ProjectX, 237, 460 domain names, 115-116 309-310 properties event handlers, 242 platforms, 144, 219 adding, 95 TLDs, 116 Playfield style sheet, attributes, 342 relational databases, 30 316-317 CharacterData, 278 reloading databases, 7 plug-ins, grid posting to CSS, 168, 172-173 Remote Procedure Call Web servers, 294 directories, 383 (RPC), see middleware plus (+), 73 documents, 277 removing posting documents to elements, 278, 342 attributes, 278 Web servers, 293-294 flow objects, 169 child from relationship, preceding nodes, 202 Java, 475-476 277 predefined tags, 9 nodes, 277-278 named items, 217 prefixes, namespaces, protected classes, 469 objects, 275 113-114 text, 279 rendering screens, 168 presentation tier (three- protocols, middleware, repeating elements, 341 tiered application), 347 356 repetition, DTD, 105 price lists public classes, 469 replaceChild() method, attributes, 216-217 public identifiers, 78-79 277 comparison, 312-313 publishing application, replaceData() method, merchants, 315-316 62-63 278 print servers, 346 PURLs (Permanent Resource Definition printing pages, 168 URLs), 118 Framework (RDF), 58 priorities, CSS, 167-168 Python, 237, 377 resources, namespaces, private classes, 469 108-109
  14. spaces 501 retrieving documents transition values, DTDs, 18-19, 105 from Web servers, 262-265 editors, 37 293-295 updating, 264 international standards, reusing elements, 120, trees, 263 18 342 scalability, 358 models, 18 root elements, 48-49, schemas, 105 syntax, 19 93-94 scientific applications, 7 sharing documents, 321 RPC (Remote Procedure scoping namespaces, 118 shell scripts, 85 Call), see middleware screens, 168, 376 shopping carts RTF (Rich Text Format), scripting languages, 458 (XCommerce), 349 15-16 search engines, 6 short primitive type, 465 security, 6, 349 sibling selectors (CSS2), S selectors, 166-167 181 saving documents, 276, semantics, 58, 64-65 signatures 295-296 send() method, 294 attributes, 328 SAX (Simple API for sending documents to digital, 328-329 XML), 35, 198 the server, 292-294 elements, 328 architecture, 260-261 server-side applications standards, 327 AttributeList, 244-245 CGI, 473 Simple API, see SAX classes, 242, 260 components, 458-459 simple CSS, 164-165 code, 237-241 documents, 292-295 simple links (XLink), compiling, 241-242 Java, 377-378, 458 323-325 documents ending, 244 JavaScript (SSJS), sizing fonts, 176 elements event handlers, 376-377 smart phones, 6-7 242-244 Omnimark, 377 software IBM parsers, 224 Perl, 376 open-source, 461 instructions, 244 Python, 377 speed, 44 interface, 246, 260, 479 see also client/server source code Java, 237 applications Document object, 204 Locator object, 244-245 servlets HTML, 297 methods, 243 classpaths, 475 indenting, 55-56 notations, 246 downloading, 460-461 Java, 462-463 parsers, 243, 246-247 dynamic, 472 JavaScript, 272-274 Perl, 237 Java, 473-475 mark-up, 14 ProjectX, 237 properties, 475-476 nodes, 203 Python, 237 writing, 293 parsers, 224 state settings, see configura- SAX, 237-241 efficiency, 265 tion trees, 153 elements, 261 SGML (Standard SOX (Schema for Object- location, 261 Generalized Markup oriented XML), 105 maintaining, 247-260 Language) spaces recording elements, 264 CALS, 20 attributes, 53 DocBook, 20 element names, 60 documents, 18 speed, 44
  15. 502 splitText() method splitText() method, 279 statements, 53-54 XSLT, 304-305 SQL language, 44 static modifier, 467 automating, 305 standalone documents storage conversion, 131-132 downloading, 80 attributes, 339-340 creating, 149-151 DTD, 79-80 documents, 229 elements, 134 entities, 79 elements, 339-340 generating, 132-133 external subsets, 80 entities, 85 LotusXSL, 132 Standard Generalized links (XLink), 326 output, 134 Markup Language, see XCommerce, 353-355 see also CSS SGML streaming tags, 6 subelements, 319 standards string attributes, 75 subscriptions to Web applications, 197-198 structural information sites, 65-66 CALS, 20 attributes, 218 subsets, 77-79, 263 companions, 32 documents, 10-14, 18, 266 substringData() method, CSS, 33-35 DTDs, 84, 98-99, 303, 278 databases, 197 336-339 Sun DTDs, 296 HTML, 21 parsers, 224 EDI, 322 markup, 43 ProjectX, 237 international, 18 non-XML, 291-292 super keyword (Java), namespaces, 33 tree-like, 42 478 parsers, 197-198 XSLT source trees, 153 support schemas, 105 style sheets, 10, 318 DOM, 276 signatures, 327 advanced, 179-180 DTDs, 296 syntax, 10 alternate, 310-311 Internet Explorer, 372 Unicode, 50-52 applying, 145-148 switching parsers, 243 vCard, 101-102 attaching, 276 syntax W3C, 32 combining, 319 attributes, 46-47, 60 XLink, 35-36, 323 common elements, 319, case-sensitive, 60 XPointer, 35-36 367 CDATA sections, 54-55 XQL, 155 data extracts, 157-158 character data, 43 XSL, 33-35 documents, 331 DTD, 70-71, 105 start tags, 44-45 editing, 148-149 elements, 45-46 start() event, 244 Emailaholic, 318 end tags, 44-45, 56-57, 59 Startmail, 347 fonts, 177 entities, 52-53 state HTML, 153 hiding, 290-291 DOM, 207-210 importing, 182 HTML, 333-334 elements, 261, 264 Internet Explorer, 302 markup, 43-44 location, 261 loading, 320 parsers, 37, 192-193 SAX middle tier, 369-371 rules, 59 efficiency, 265 namespaces, 121-122 SGML, 19 maintaining, 247-260 phone lists, 309-310 source codes, 55-56 transition values, Playfield, 316-317 spaces, 60 262-265 text, 141-144 standards, 10 updating, 264 WriteIT, 317 start tags, 44-45 XMLi, 317
  16. viewing 503 Unicode, 50-52 throw keyword (Java), phone lists, 312 XSLT paths, 135 471 state, 264 system identifiers, 78 TLD (Top Level uploading XCommerce Domain), 93, 115-116, products, 364 T 138, 282-283 URIs (Universal tables of contents, tokenized attributes, 75 Resource Identifiers), 185-186 tools 78, 96 tags Java, 459 URLs (Uniform development, 8 middle tier, 366 Resource Locators), HTML, 6-7, 20-21 middleware, 356 384 macros, 17-18 XCommerce, 417-428 creating, 114, 117 markup languages, 17 Top Level Domain domain names, 115 names, 206 (TLD), 93, 115-116, 138, flexibility, 115 predefined, 9 282-283 namespaces, 114-115 search engines, 6 toXML() function, 289 properties, 173 security, 6 transformations in doc- URNs (Uniform specialized, 8 uments, 330-334 Resource Names), streaming, 6 transformNode() 117-118 XML, 27-28 method, 304 UTF encodings, 51, 81-82 targets, processing transitions, SAX state, instructions (PI), 54 262-265 V templates trees validation calling, 154 Document object, 204 batch files, 85 links, 313 DOM, 236 documents, 84-85 XSLT editors, 183 parsers, 193, 225 built-in, 138-139 elements, 204-206 shell scripts, 85 elements, 134 objects, 275 values hierarchy, 141 structures, 42 attributes, 60, 75-76, 84, locating, 138-139 subsets, 263 217, 341 matching, 137, 139-140 types, documents, 202, default, 80 text 204 nodes, 203 alignment, 177 SAX, 262-265 conversion, 141-144 U variables, 465-467 editors, 183 UML (Unified Modeling vCard, 43, 101-102 elements, 72 Language), 92 vendor interface, 197 indent, 177 underscore (_), 45 vertical bar (|), 73-74 line height, 177 Unicode, 50-52 viewing objects, 206-207 unparsed entities, 86-90 documents, 126 plain, 43 updating extensions, 320 properties, 279 address books, 308-309, Web sites, 144 this keyword (Java), 478 312 XML in browsers, 129-130 three-tiered applica- databases, 32 tions, 347-348
  17. 504 W3C W X-Z Viewer class, 451-455 XMLServer class data W3C (World Wide Web XCommerce, 348 tier, 429-434 Consortium), 6, 32, 105 checkout, 351, 407-417 XMLServerConsole class walking classpaths, 381-382, 384 data tier, 435-444 nodes, 210 common formats, 358-359 XMLUtil class, 417-427 products, 210, 246 configuration files, XHTML, 144 tree elements, 204-206 382-383 XJParse, 237, 460 Web sites data tier, 353-355 XLink, 35-36, 323 access, 6 databases, 361-364, adding links, 326 designing, 26-27 384-385 attributes, 324 development, 6 directories, 383 browsers, 327 EDI, 323 Editor class, 444-446 elements, 324 Hotmail, 347 graphics, 349 extended, 326-327 InterNIC, 115 HTTPPost class, 414-417 Internet Explorer, 325 Microsoft, 224 Java files namespaces, 122 Near & Far, 104 classes, 349 simple, 323-325 Omnimark, 377 compiling, 383-384 standards, 323 Oracle, 224 JavaScript, 447-450 storing, 326 platforms, 144 Merchant class, 397-403 XMetaL, 37, 54, 184 servers, 293-295 MerchantCollection class, XML (eXtensible Startmail, 347 393-397 Markup Language), 6 subscriptions, 65-66 middle tier, 349 XML for Java, 237, 381, Sun, 224 clients, 372-375 460 Unicode, 50 Comlet class, 390-393 XML-Data, 105 viewing, 144 cost, 366 XMLi W3C, 6 customizing, 367 Editor class, 444-446 XML links, 92 filters, 369 JavaScript, 447-450 XTransGen (IBM), 305 Shop class, 386-390 style sheets, 317, 450-451 Webmail, 347 tools, 366 Viewer class, 451-455 WebSTAR, 461 NotImplementedError XCommerce weight, fonts, 177 class, 428 directories, 383 well-formed documents, orders, 351-353, 365-366 XMLUtil class, 417-427 81-82 payments, 349 XP (James Clark), 237 whitespace, parsers, 244 products XPointer, 35-36 World Wide Web downloading, 349-351 XQL (XML Query Consortium (W3C), 6, listing, 359-361 Language), 155 32, 105 objects, 404-407 XSL (XML Stylesheet WriteIT style sheet, 317 uploading, 364 Language), 33-35 writing security, 349 directories, 383 applications, 356 shopping carts, 349 documents, 126 servlets, 293 style sheets, 369-371, processors, 37, 127 XML, 289-290 450-451 recommendations, 127 WYSIWYG editors, 184 tools, encapsulation, style sheets, 148-149 417-428
  18. XTransGen 505 XSLFO (XSL Formatting Objects), 127, 161, 187-189 XSLT (XSL Transformation), 127 advantages, 304 attributes, 136 calling, 303-304 CSS, 162-163, 185-187 data extracts, 155-158 DTDs, 128, 296, 303 elements, 128, 140, 149, 154-155 errors, 220 flexibility, 296 formats, 304 functions, 136-137 HTML, 128, 152-153, 297 Internet Explorer, 296 Internet Explorer 5.0, 147-148 JavaScript, 298-301 loading, 305 objects, 140 paths, 135, 153 source trees, 153 style sheets, 304 automating, 305 conversion, 131-132 creating, 149-151 elements, 134 generating documents, 132-133 LotusXSL, 132 output, 134 templates built-in, 138-139 calling, 154 elements, 134 hierarchy, 141 locating, 138-139 matching, 137, 139-140 XTransGen, 305
Đồng bộ tài khoản