图书介绍

用Java处理XMLPDF|Epub|txt|kindle电子书版本网盘下载

用Java处理XML
  • (美)阿兰编著 著
  • 出版社: 北京:科学出版社
  • ISBN:7030124650
  • 出版时间:2004
  • 标注页数:1072页
  • 文件大小:47MB
  • 文件页数:1107页
  • 主题词:JAVA语言-程序设计-英文

PDF下载


点此进入-本书在线PDF格式电子书下载【推荐-云解压-方便快捷】直接下载PDF格式图书。移动端-PC端通用
种子下载[BT下载速度快]温馨提示:(请使用BT下载软件FDM进行下载)软件下载地址页直链下载[便捷但速度慢]  [在线试读本书]   [在线获取解压码]

下载说明

用Java处理XMLPDF格式电子书版下载

下载的文件为RAR压缩包。需要使用解压软件进行解压得到PDF格式图书。

建议使用BT下载工具Free Download Manager进行下载,简称FDM(免费,没有广告,支持多平台)。本站资源全部打包为BT种子。所以需要使用专业的BT下载软件进行下载。如BitComet qBittorrent uTorrent等BT下载工具。迅雷目前由于本站不是热门资源。不推荐使用!后期资源热门了。安装了迅雷也可以迅雷进行下载!

(文件页数 要大于 标注页数,上中下等多册电子书除外)

注意:本站所有压缩包均有解压码: 点击下载压缩包解压工具

图书目录

Part Ⅰ XML1

Chapter 1 XML for Data3

Motivating XML3

A Thought Experiment4

Example 1.2 An XML Document That Indicates an Order for 12 Birdsong Clocks,SKU 2445

List of ExamplesExample 1.1 A Plain Text Document That Indicates an Order for 12 Birdsong Clocks,SKU 2445

Example 1.3 A Document That Indicates an Order for 12 Birdsong Clocks, SKU 2446

Robustness6

Example 1.4 Still an Order for 12 Birdsong Clocks, SKU 2447

Extensibility9

Example 1.5 An XML Document That Indicates an Order for Multiple Products Shipped to Multiple Addresses10

Ease-of-Use11

XML Syntax13

XML Documents13

ContentsList of Examples13

XML Applications15

Elements and Tags16

Text19

Attributes21

XML Declaration22

List of Figures23

Comments23

Processing Instructions24

Preface25

Entities25

Who You Are27

What You Need to Have28

What You Need to Know28

Namespaces28

How to Use This Book29

Some Grammatical Notes30

Example 1.7 An XML Document That Uses Two Default Namespaces30

Example 1.6 An XML Document That Uses a Default Namespace30

The Online Edition30

Contacting the Author32

Validity32

DTDs32

Acknowledgments33

Example 1.8 A DTD for Order Documents35

Schemas37

Example 1.9 order.xsd: A Schema for Order Documents38

Example 1.10 order.sct: A Schematron Schema for Order Documents41

Schematron41

The Last Mile43

Stylesheets43

CSS44

Example 1.11 A CSS Stylesheet for Order Documents45

Associating Stylesheets with XML Documents45

List of FiguresFigure 1.1 The Clock Order, Styled Using CSS46

XSL46

Example 1.12 An XSLT Stylesheet for Order Documents48

Example 1.13 An XSL-FO Document for the Clock Order51

Figure 1.2 The PDF Version of the Clock Order Produced by XSL51

Summary53

Chapter 2 XML Protocols: XML-RPC and SOAP57

XML as a Message Format58

Envelopes58

Data Representation59

Example 2.1 An XML Document That Labels Elements with Schema Simple Types63

HTTP as a Transport Protocol64

How HTTP Works65

Figure 2.1 Slashdot Headlines in XML66

HTTP in Java68

Example 2.2 URLGrabber69

Example 2.3 URLGrabberTest72

RSS73

Example 2.4 An RSS 0.91 Document73

Example 2.5 An RSS 1.0 Document75

Customizing the Request77

Query Strings77

Figure 2.2 NASDAQ Stock Data Retrieved via a Query String79

How HTTP POST Works81

XML-RPC82

Example 2.6 An XML-RPC Request Document83

Example 2.7 POSTing an XML-RPC Request Document84

Example 2.8 An XML-RPC Response84

Data Structures85

Example 2.9 An XML-RPC Request That Passes an Array as an Argument86

Example 2.10 An XML-RPC Response Document That Returns an Array87

Example 2.11 An XML-RPC Request That Passes a Struct as an Argument88

Example 2.12 An XML-RPC Fault89

Faults89

Validating XML-RPC90

Example 2.13 A DTD for XML-RPC90

Example 2.14 A Schema for XML-RPC92

SOAP96

A SOAP Example97

Example 2.16 A SOAP Response97

Example 2.15 A SOAP Document That Requests the Current Stock Price of Red Hat97

Posting SOAP Documents98

Example 2.17 A SOAP Request for the Current Stock Price of Red Hat98

Example 2.18 A SOAP Document That Returns the Current Stock Price of Red Hat99

Faults100

Encoding Styles102

Example 2.19 A SOAP Fault Response102

Example 2.20 A SOAP Document That Specifies the Encoding Style103

Example 2.21 A Schema That Assigns Type to Elements in the http://namespaces.cafeconleche.org/xmljava/ch2/Namespace103

SOAP Headers112

Example 2.22 A SOAP Request with a Digital Signature in the Header113

Example 2.23 A SOAP Request with Two Header Entries114

Example 2.24 A SOAP Request with a mustUnderstand Attribute115

SOAP Limitations116

Validating SOAP117

Example 2.25 A Master Schema for SOAP Trading Documents117

Custom Protocols118

Summary119

Chapter 3 Writing XML with Java121

Fibonacci Numbers122

Example 3.1 A Program That Calculates the Fibonacci Numbers123

Writing XML124

Example 3.2 The First Ten Fibonacci Numbers in an XML Document124

Example 3.3 A Program That Outputs the Fibonacci Numbers as an XML Document125

Better Coding Practices125

Example 3.4 Using Named Constants for Element Names126

Example 3.5 A Java Program That Writes an XML Document Which Uses Attributes127

Attributes127

Producing Valid XML128

Example 3.6 A Java Program That Generates a Valid Document128

Namespaces130

Example 3.7 A MathML Document That Contains Fibonacci Numbers130

Example 3.8 A Java Program That Generates a MathML Document131

Output Streams, Writers, and Encodings132

Example 3.9 A Java Program That Writes an XML File133

A Simple XML-RPC Client139

Example 3.10 Connecting an XML-RPC Server with URLConnection140

A Simple SOAP Client142

Example 3.11 Connecting to a SOAP Server with URLConnection143

Servlets145

Example 3.12 A Servlet That Generates XML146

Summary149

Chapter 4 Converting Flat Files to XML151

The Budget152

The Model154

Figure 4.1 The List of Maps Data Structure for the Budget155

Input156

Example 4.1 A Class That Parses Comma-Separated Values into a List of HashMaps157

Determining the Output Format159

Example 4.2 Naively Reproducing the Original Budget Table Structure in XML160

Validation165

Example 4.3 A Schema for the XML Budget Data166

Attributes169

Example 4.4 Converting to XML with Attributes170

Building Hierarchical Structures from Flat Data174

Example 4.5 A Hierarchical Arrangement of the Budget Data174

Figure 4.2 A UML Diagram for the Budget Class Hierarchy178

Example 4.6 The Budget Class179

Example 4.7 The Agency Class181

Example 4.8 The Bureau Class184

Example 4.9 The Account Class186

Example 4.10 The Subfunction Class188

Example 4.11 The Driver Class That Builds the Data Structure and Writes It Out Again189

Alternatives to Java191

Example 4.12 An XSLT Stylesheet That Converts Flat XML Data to Hierarchical XML Data193

Imposing Hierarchy with XSLT193

The XML Query Language196

Example 4.13 An XQuery That Converts Flat Data to Hierarchical Data200

Relational Databases201

Example 4.14 A Program That Connects to a Relational Database UsingJDBC and Converts the Table to Hierarchical XML203

Summary208

Chapter 5 Reading XML211

Example 5.1 A Response from the Fibonacci XML-RPC Server211

InputStreams and Readers211

Example 5.2 Reading an XML-RPC Response214

XML Parsers216

Choosing an XML API218

Choosing an XML Parser222

Available Parsers226

SAX229

Example 5.3 A SAX-Based Client for the Fibonacci XML-RPC Server230

Example 5.4 The ContentHandler for the SAX Client for the Fibonacci XML-RPC Server232

DOM234

Example 5.5 A DOM-Based Client for the Fibonacci XML-RPC Server235

JAXP238

Example 5.6 A JAXP-Based Client for the Fibonacci XML-RPC Server239

JDOM242

Example 5.7 A JDOM-Based Client for the Fibonacci XML-RPC Server243

dom4j246

Example 5.8 A dom4j-Based Client for the Fibonacci XML-RPC Server246

ElectricXML248

Example 5.9 An ElectricXML-Based Client for the Fibonacci XML-RPC Server249

XMLPULL251

Example 5.10 An XMLPULL-Based Client for the Fibonacci XML-RPC Server252

Summary254

Part Ⅱ SAX257

Chapter 6 SAX259

What Is SAX?259

Parsing260

Example 6.1 A SAX Program That Parses a Document262

Callback Interfaces264

Example 6.2 The SAX ContentHandler Interface264

Implementing ContentHandler265

Example 6.3 A SAX ContentHandler That Writes All #PCDATA onto a java.io.Writer266

Using the ContentHandler267

Example 6.4 The Driver Method for the Text Extractor Program268

Example 6.5 A Subclass of DefaultHandler That Writes All #PCDATA onto a java.io.Writer270

The DefaultHandler Adapter Class270

Receiving Documents271

Example 6.6 A ContentHandler Interface That Resets Its Data Structures Between Documents272

Receiving Elements273

Example 6.7 A ContentHandler Class That Builds a GUI Representation of an XML Document275

Figure 6.1 The Swing-Based TreeViewer278

Handling Attributes279

Example 6.8 The SAX Attributes Interface279

Example 6.9 A ContentHandler Class That Spiders XLinks281

Receiving Characters284

Example 6.10 A SAX Client for the Fibonacci XML-RPC Server285

Receiving Processing Instructions288

Example 6.11 A ContentHandler That Prints Processing Instruction Targets and Data on System.out290

Receiving Namespace Mappings291

Example 6.12 The NamespaceSupport Class292

Example 6.13 A Document That Uses Ignorable White Space to Prettify the XML295

"Ignorable White Space"295

Receiving Skipped Entities296

Example 6.14 An XML Document Containing a Potentially Skipped Entity Reference296

Receiving Locators298

Example 6.15 The SAX Locator Interface299

Example 6.16 Determining the Locations of Events300

What the ContentHandler Doesn't Tell You303

Summary304

Building Parser Objects305

Chapter 7 The XMLReader Interface305

InputSource309

Input309

Example 7.1 The SAX InputSource Class310

EntityResolver312

Example 7.2 The EntityResolver Interface313

Example 7.3 An XHTML EntityResolver313

Exceptions and Errors315

SAXExceptions316

Example 7.4 The SAXException Class316

Example 7.5 The SAXParseException Class318

Example 7.6 A SAX Program That Parses a Document and Identifies the Line Numbers of Any Well-Formedness Errors319

The ErrorHandler Interface321

Example 7.7 The ErrorHandler Interface321

Example 7.8 A SAX Program That Reports All Problems Found in an XML Document322

Features and Properties325

Getting and Setting Features325

Getting and Setting Properties326

Required Features327

Standard Features330

Example 7.9 A SAX Program That Validates Documents331

Standard Properties335

Example 7.10 A SAX Program That Echoes the Parsed Document336

Example 7.11 The LexicalHandler Interface339

Example 7.12 An Implementation of the LexicalHandler Interface340

Example 7.13 The DeclHandler Interface343

Example 7.14 A Program That Prints Out a Complete DTD344

Xerces Custom Features347

Example 7.15 Making Maximal Use of Xerces' Special Capabilities350

Xerces Custom Properties353

Example 7.16 The DTDHandler Interface355

DTDHandler355

Example 7.17 A Caching DTDHandler356

Example 7.18 A Notation Utility Class357

Example 7.19 An UnparsedEntity Utility Class359

Example 7.20 A Program That Lists the Unparsed Entities and Notations Used in an XML Document362

Summary365

Chapter 8 SAX Filters367

The Filter Architecture367

Figure 8.2 XML Parsing with a Filter368

Figure 8.1 The XML Parsing Process368

Figure 8.3 XML Parsing with Multiple Filters369

The XMLFilter Interface370

Example 8.2 A Filter That Blocks All Events370

Example 8.1 The XMLFilter Interface370

Example 8.3 A Filter That Filters Nothing373

Example 8.4 A Filter That Times All Parsing378

Example 8.5 Parsing a Document through a Filter382

Content Filters384

Filtering Tags384

Example 8.6 A ContentHandler Filter385

Example 8.7 A Filter That Substitutes Its Own ContentHandler388

Example 8.8 A Program That Filters Documents390

Figure 8.4 How Data Flows through the RDDLStripper Program393

Filtering Elements393

Example 8.9 A ContentHandler Filter That Throws Away Non-XHTML Elements394

Example 8.10 The Attributeslmpl Helper Class397

Filtering Attributes397

Filters That Add Content399

Example 8.11 Changing One Element into Another401

Filters versus Transforms405

Figure 8.5 The End of the RDDL Specification as Normally Presented406

The XMLFilterlmpl Class407

Figure 8.6 The End of the RDDL Specification after Small Tables Have Replaced rddl:resource Elements407

Example 8.12 A Subclass of XMLFilterImpl409

Parsing Non-XML Documents411

Example 8.13 Accessing Databases through SAX412

Example 8.14 A Very Simple User Interface for Extracting XML Data from a Relational Database418

Multihandler Adapters420

Example 8.15 Attaching Multiple Handlers of the Same Type to a Single Parser422

Summary428

Part Ⅲ DOM431

Chapter 9 The Document Object Model433

The Evolution of DOM434

DOM Modules435

Example 9.1 Which Modules Does Oracle Support?437

Application-Specific DOMs439

Trees440

Document Nodes442

Example 9.2 An XML-RPC Request Document442

Element Nodes443

Attribute Nodes444

Leaf Nodes445

Nontree Nodes447

What Is and Isn't in the Tree449

DOM Parsers for Java452

Parsing Documents with a DOM Parser455

Example 9.3 A Program That Uses Xerces to Check Documents for Well-Formedness456

Example 9.4 A Program That Uses the Oracle XML Parser to Check Documents for Well-Formedness457

JAXP DocumentBuilder and DocumentBuilderFactory458

Example 9.5 A Program That Uses JAXP to Check Documents for Well-Formedness459

Example 9.6 A Program That UsesJAXP to Check Documents for Well-Formedness463

DOM3 Load and Save466

Example 9.7 A Program That Uses DOM3 to Check Documents for Well-Formedness466

Example 9.8 The Node Interface468

The Node Interface468

Node Types470

Example 9.9 Changing Short Type Constants to Strings471

Node Properties472

Example 9.10 A Class to Inspect the Properties of a Node473

Navigating the Tree475

Example 9.11 Walking the Tree with the Node Interface475

Modifying the Tree478

Example 9.12 A Method That Changes a Document by Reordering Nodes479

Utility Methods481

The NodeList Interface482

Example 9.13 The NodeList Interface482

JAXP Serialization483

Example 9.14 Using JAXP to Read and Write an XML Document484

Example 9.15 The DOMException Class486

DOMException486

Choosing between SAX and DOM489

Summary492

Chapter 10 Creating XML Documents with DOM493

DOMImplementation493

Example 10.1 The DOMImplementation Interface494

Locating a DOMImplementation495

Implementation-Specific Class495

JAXP DocumentBuilder496

DOM3 DOMImplementa?ionRegist ry497

Example 10.2 The DOMImplementationRegistry Class497

The Document Interface as an Abstract Factory499

Example 10.3 The DOMImplementationSource Interface499

Example 10.4 The Document Interface499

Example 10.5 Using DOM to Build an SVG Document in Memory502

Example 10.6 A DOM Program That Outputs the Fibonacci Numbers as an XML Document506

Example 10.8 A DOM Program That Outputs the Fibonacci Numbers as a MathML Document509

Example 10.7 A Valid MathML Document That Contains Fibonacci Numbers509

Example 10.9 A Valid MathML Document That Uses Prefixed Names512

The Document Interface as a Node Type513

Getter Methods513

Example 10.10 The Properties of a Document Object515

Finding Elements517

Example 10.12 An XML-RPC Response Document518

Example 10.11 An XML-RPC Request Document518

Example 10.13 A DOM-Based XML-RPC Servlet519

Example 10.14 A DOM-Based SOAP Servlet527

Transferring Nodes between Documents533

Normalization534

Summary538

The Element Interface539

Chapter 11 The DOM Core539

Example 11.1 The Element Interface540

Extracting Elements541

Example 11.2 Extracting Examples from DocBook543

Attributes548

Example 11.4 A DOM Program That Adds Attributes549

Example 11.3 A Document That Uses Attributes549

The NamedNodeMap Interface551

Example 11.5 The NamedNodeMap Interface551

Example 11.6 An XLink Spider That Uses DOM553

The CharacterData Interface558

Example 11.7 The CharacterData Interface559

Example 11.8 Rot-13 Encoder for XML Documents560

The Text Interface563

Example 11.9 The Text Interface564

Example 11.10 Printing the Text Nodes in an XML Document565

The CDATASection Interface568

Example 11.11 The CDATASection Interface568

Example 11.12 Merging CDATA Sections with Text Nodes569

Example 11.13 The EntityReference Interface571

The EntityReference Interface571

Example 11.14 Inserting Entity References into a Document572

The Attr Interface573

Example 11.15 The Attr Interface574

Example 11.16 Specifying All Attributes575

The ProcessingInstruction Interface576

Example 11.17 The ProcessingInstruction Interface577

Example 11.18 Reading PseudoAttributes from a ProcessingInstruction578

The Comment Interface581

Example 11.19 The Comment Interface581

Example 11.20 A DOM Program That Prints Comments582

The DocumentType Interface584

Example 11.21 The DocumentType Interface585

Example 11.22 The Entity Interface586

The Entity Interface586

Example 11.23 Listing Parsed Entities Used in the Document587

The Notation Interface590

Example 11.24 The Notation Interface590

Example 11.25 Listing the Notations Declared in a DTD591

Summary594

NodeIterator597

Chapter 12 The DOM Traversal Module597

Example 12.1 The NodeIterator Interface598

Constructing NodeIterators with DocumentTraversal599

Example 12.2 The DocumentTraversal Factory Interface600

Example 12.3 Using a NodeIterator to Extract All of the Comments from a Document601

Liveness603

Example 12.4 Using a NodeIterator to Retrieve the Complete Text Content of an Element604

Filtering by Node Type604

NodeFilter605

Example 12.5 The NodeFilter Interface606

Example 12.6 An Implementation of the NodeFilter Interface607

Example 12.7 The TreeWalker Interface610

TreeWalker610

Example 12.8 The ExampleFilter Class612

Example 12.9 Navigating a Subtree with TreeWalker613

Summary616

Xerces Serialization617

Chapter 13 Output from DOM617

OutputFormat619

Example 13.1 Using Xerces' OutputFormat Class to "Pretty Print" XML619

Example 13.2 Using Xerces' OutputFormat Class to "Pretty Print" MathML624

DOM Level 3627

Example 13.3 The DOM3 DOMWriter Interface628

Example 13.5 Serializing with DOMWriter630

Example 13.4 The DOM3 DOMErrorHandler Interface630

Creating DOMWriters632

Example 13.6 The DOM3 DOMImplementationLS Interface632

Example 13.7 An Implementation-lndependent DOM3 Program to Build and Serialize an XML Document633

Serialization Features635

Filtering Output636

Example 13.9 Filtering Everything That Isn't XHTML on Output637

Example 13.8 The DOMWriterFilter Interface637

Example 13.10 Using a DOMWriterFilter639

Summary640

Part Ⅳ JDOM641

Chapter 14 JDOM643

What ls JDOM?644

Creating XML Elements with JDOM647

Creating XML Documents with JDOM649

Writing XML Documents with JDOM651

Example 14.1 AJDOM Program That Produces an XML Document Containing Fibonacci Numbers652

Document Type Declarations656

Example 14.2 A Fibonacci DTD656

Example 14.3 A JDOM Program That Produces a Valid XML Document657

Namespaces659

Example 14.4 A MathML Document Containing the First Three Fibonacci Numbers659

Example 14.5 A JDOM Program That Uses Namespaces660

Reading XML Documents with JDOM664

Example 14.6 A JDOM Program That Uses the Default Namespace 66?Example 14.7 A JDOM Program That Checks XML Documents for Well-Formedness665

Example 14.8 A JDOM Program That Validates XML Documents667

Navigating JDOM Trees668

Example 14.9 A JDOM Program That Lists the Elements Used in a Document669

Example 14.10 A JDOM Program That Lists the Nodes Used in a Document672

Talking to DOM Programs675

Talking to SAX Programs676

Configuring SAXBuilder676

Example 14.11 A JDOM Program That Schema Validates Documents677

SAXOutputter679

Example 14.12 AJDOM Program That Passes Documents to a SAX ContemHandler679

Java Integration681

Serializing JDOM Objects681

Synchronizing JDOM Objects681

Testing Equality681

Hash Codes682

What JDOM Doesn't Do683

Cloning683

String Representations683

Summary684

Chapter 15 The JDOM Model687

The Document Class688

Example 15.1 TheJDOM Document Class688

The Element Class690

Constructors693

Example 15.2 Inspecting Elements694

Navigation and Search694

Example 15.3 An XML-RPC Request Document700

Example 15.5 The JDOM ContentFilter Class705

Example 15.4 The JDOM Filter Interface705

Example 15.6 TheJDOM ElementFilter Class708

Example 15.7 A Filter for xml-stylesheet Processing Instructions in the Prolog709

Example 15.8 Moving Elements between Documents712

Attributes714

Example 15.9 Searching for RDDL Resources716

The Attribute Class719

Example 15.10 The JDOM Attribute Class720

The Text Class724

Example 15.11 The JDOM Text Class724

Example 15.12 JDOM-Based Rot-13 Encoder for XML Documents726

Example 15.13 The JDOM CDATA Class729

The CDATA Class729

The ProcessingInstruction Class730

Example 15.14 The JDOM ProcessingInstruction Class731

Example 15.15 The JDOM Comment Class733

The Comment Class733

Example 15.16 Printing Comments734

Namespaces736

Example 15.17 The JDOM Namespace Class736

Example 15.18 An XML Document That Uses Namespace Prefixes in Attribute Values738

The DocType Class739

Example 15.19 The JDOM DocType Class740

Example 15.20 Validating XHTML with the DocType Class743

The EntityRef Class745

Example 15.21 The JDOM EntityRef Class745

Summary748

Part Ⅴ XPath/XSLT751

Chapter 16 XPath753

Example 16.1 Weather Data in XML754

Queries754

The XPath Data Model756

Figure 16.1 XPath Explorer756

Example 16.2 A SOAP Response Document758

Location Paths759

Figure 16.2 An XPath Data Model759

Example 16.3 An XML-RPC Request Document760

Axes761

Example 16.4 A SOAP Request Document762

Node Tests764

Predicates766

Compound Location Paths768

Absolute Location Paths769

Abbreviated Location Paths770

Combining Location Paths772

Expressions772

Literals773

Operators774

Functions774

XPath Engines778

XPath with Saxon781

XPath with Xalan785

Example 16.5 The Xalan XPathAPI Class786

DOM Level 3 XPath789

Example 16.6 The XPathEvaluator Interface790

Example 16.7 The XPathResult Interface792

Namespace Bindings794

Example 16.8 An XML Document That Contains Namespace Bindings and an XPath Search Expression795

Snapshots797

Example 16.9 The DOM3 XPathExpression Interface798

Compiled Expressions799

Jaxen804

SummaryChapter 17 XSLT805

XSL Transformations805

Template Rules806

Example 17.1 An XSLT Stylesheet for XML-RPC Request Documents807

Stylesheets808

Example 17.2 An XSLT Stylesheet That Echoes XML-RPC Requests809

Example 17.3 An XML-RPC Request Document810

Example 17.4 An XML-RPC Response Document810

Taking the Value of a Node811

Applying Templates812

The Default Template Rules813

Selection815

Example 17.5 An XSLT Stylesheet That Calculates Fibonacci Numbers820

Calling Templates by NameTrAX822

Thread Safety824

Example 17.6 A Servlet That Uses TrAX and XSLT to Respond to XML-RPC Requests826

Locating Transformers827

The xml-stylesheet Processing Instruction828

Features831

Example 17.7 Testing the Availability of TrAX Features832

XSLT Processor Attributes834

Example 17.9 A URIResolver Class836

Example 17.8 The TrAX URIResolver Interface836

URI Resolution836

Error Handling837

Example 17.11 An ErrorListener That Uses the Logging API838

Example 17.10 The TrAX ErrorListener Interface838

Passing Parameters to Stylesheets840

Output Properties842

Example 17.12 The TrAX OutputKeys Class844

Sources and Results845

Example 17.14 The TrAX DOMResult Class846

Example 17.13 The TrAX DOMSource Class846

Example 17.15 The TrAX SAXSource Class847

Example 17.16 The TrAX SAXResult Class848

Example 17.17 The TrAX StreamSource Class849

Example 17.18 The TrAX StreamResult Class850

Extending XSLT with Java850

Example 17.19 A Java Class That Calculates Fibonacci Numbers851

Extension Functions851

Example 17.20 The Xalan ExpressionContext Interface862

Extension Elements862

Example 17.21 A Stylesheet That Uses an Extension Element863

Summary865

Part Ⅵ Appendixes867

SAX869

Appendix A XML API Quick Reference869

org.xml.sax870

org.xml.sax.ext880

org.xml.sax.helpers882

DOM891

The DOM Data Model892

org.w3c.dom894

org.w3c.dom.traversal908

JAXP912

javax. xml.parsers912

javax.xml.transform917

TrAX917

javax.xml.transform.stream924

javax.xml.transform.dom926

javax.xml.transform.sax927

org.jdom930

JDOM930

org.jdom.filter947

org.jdom.input950

org.jdom.output957

org jdom.transform962

org.jdom.xpath964

XMLPULL964

org.xmlpull.vl965

Appendix B SOAP 1.1 Schemas969

The SOAP 1.1 Envelope Schema969

The SOAP 1.1 Encoding Schema973

W3C Software Notice and License986

Appendix C Recommended Reading989

Books989

Specifications990

Index993

热门推荐