作者:empty 页数:289 出版社:empty |
All rig his reserved.N part f this bk maybe reprduced r transmitted in any frm by anymeans, electrn c, in e chanical phtcpying.te crding, rcher wise, with ur the prir wr tenpermissin f the publisher Fr infarmatin n getting perms sian fr reprints and excerpts,cntactpermiinslpeachpit.cmL
Ntice f LiabilityThe infrmatin in this bk is distributed n an“AsL basis with ur warranty.While every precautin has been taken in the preparatin f the bk, De the r the authur nr Peach piss hall haveany liablity t any persn r entity with respect t any lass r damage caused r alleged t be caia seddirectly r indirectly by the instructins cntained in this bk r by the cmputer sftware andhardware prducts desc n hedin it.
TrademarksVisual Quick Star Guide is a trade maka f Peachpit, a divi n f Pearsn Educatin.Many f the des ag natins used by manufacturers and sellers t distinguish their prducts a red aimedas trademarks.Where thse designatins appear in this ba k, and Peach pir was aware f a trademarkel aim, the designatins appear as requested by the wner f the trademark.All ther prduc r namesand services identifed thrughut this bk are used in editrial fashin an ly and fr the benefit fsuch cmpanies with n intentin f infringement f the trademark.N such use, r the use f anytradename, is intended t cnvey endrsement r ther affiliatin with this bk.
Last year, I bumped int my friend Kevin Gldberg n a visit t Calfrnia.We hadknwn eachther inc allege.and had played alt f Bag gle tgether in BarcelnaWhen he ffered t help me revise this bk, I jumped ar the chance.Kevin has beenwrking in the cmputer industry fr mre than twenty y cars.He started his career as avide gameprgrammer and prducer.Since 1997.Kevin has been serving as partner andchief technlgy fficer at in ag istic, an award winning, Web develpment and servicescamp any in Suthern Califrnia.In this rle, he is regularly called upn t help clientsclarify their business needs, and t clearly cmmunicate the nature and appic ablity fpatent i al technlgy slutins-in a sense.demystify technlgy.Besides all f these apt credentials, Kevin is a great guy, He is smart, cnscientius, cre-ative, and—nt t mentin careful with deta is.In additin t updating the cntentand examples in the bk, he added chapters n XSL-F, recent W3C recmmendatins(XSLT 2.0, XPath 2.D and XQuery 1.0) , and a chapter devted i real wrld examplescalled XML iu Practice.I am mst cnfident that yu will find this secnd editin fXMI:Vi ual QuickStart Guide t bean excellent tutrial fr learning al labur XML.
Elizabeth CastrAuthr f XML frt le WrldWide Web Vii ual Quick Starr GuideKevin Hward Gldberg has been wrking with cmputers since 1976whenhefaught himself BASIC n his elementary schls PDP 11/70.Since then, Kevins careerhas included management cnsulting using cmmerce simulatins, and lead sftwaredevelpment fr numerus videgame titles in multi-millin dllar divisins at FilmRman and Linsgate(previusly Trimark) .In his current capacity, he runs technlgyWestlake Vilage, Califrnia.Kevin serves n the Santa Mnica Cllege Cmputer Science and Infrmatin SystemsAdvisry Bard, and was invited t speak at the ACLU Natinwide Staff Cnference as aWeb develpment and prductin expert.Kevin hlds a bachelrs degree in Ecnmies and Entrepreneur al Management frm theWhartn Schl f Business at the University f Pennsylvania, and is a candidate fr amasters degree in Cmputer Science at the University f Califrnia, LsAngeles.FREWRD BY ELIZABETH CASTR
Chapter 1:
Chapter 2:
Introduction.
What is XML?
The Power of XML.
Extending XML.
XML in Practice.
About This Book.
What This Book is No to
Part1:XML
Wri ing XML.
An XML Sample.
Rules for Wrt ing XML
Elements, Attributes, and Values.
HowTo Begin, .
Creat ng the RootElement.
Writing Child Elements.
Nesting Elements.
Adding Attributes.
Using Empty Elements.-
Writing Comments.p
Pre deine dEnt tis-Five Special Symbol.
Displaying Elements as Text.
Part2:XSL
XSLT.
ansfngXMLwihXSir
Beginning an XSLT StyleSheet,
Creating the Root Template.
Out pur ting HTML.
Out puc ting Values.
Looping Over Nodes.
Processing Nodes Conditionally.
PycharmTableofContents
Chapter 3:
Chap ler 4:
Chapter 5:
Chapter 6:
Chapter 7:
Chapter 8:
Chapter 9:
Adding Conditional Choices.
Sorting Nodes Before Processing.
Generating Output Attributes.
Creating and Applying Templates
XPath Patterns and Expressions.
Locating Nodes.
Deter n in ing the CurrentNode
Referring to the CurrentNode.
Selecting aNode's Children.
Select nga Nodes Parent or Siblings.
Selecting aNode'sAt tribu res.-.
Conditionally Selecting Nodes.
Crea in gA bsp lute Location Paths-
Selecting All the Descendants.
XPath Functions.
Comparing Two Values-.
Testing the Position.
Multiplying, Dividing, Adding.Subtracting-
Counting Nodes.
Formatting Numbers.
Rounding Numbers.
Extracting Substrings.
Changing the Case of a String-
Total ng Values.
More XPath Functions.
XSL FO.
The Two Parts of an XSL FO Document.
Creating an XSL-FO Document.--.
Creating and S tying Blocks of Page Content.
Adding Images.o.oa
Den iga Page Template.
Creating a Page Tern plate Header
Using XSLT to Create XSL-FO.
Inserting Page Breaks.-.
Our put ng Page Content in Calum ns.
Adding a New Page Template.
Part3:DTD
Creating a DTD.
Working wih DTDs.
Dehn ngan Element That Contains Text
Defining an Empty Element . 78
Deh in ingan Element That Contains a Chid, .
Defining an Element That Contains Children,
Dehn ing How Many Occurrence 5.
Defining Choices.
Defining an Element Thar Cons Any th
About Attributes.
Def nig An but es:
DehningDefaulr Values.
Def ning Art i but es with Choices., .
Dening AttrbuteswihUniqueVlues.
Referencing Attributes with Unique Values.
Restricting Atti but es to Valid XML Names.
Entities and Notations in DTDs.
Creating a General Entity.-
Using General Entities.
Creat gan External GeneralE nity.
Using External General Entities.
Creating Enti ies for Unparsed Content.
Embedding Unparsed Content.
Cra tig and Using Pa a meter Ent ties
Creating an External Parameter Entity.
Validation and Using DTDs.
Creating an External DTD.
Deel a ring an External DTD.·+-
Del arng and Creating an Inte mal DTD.
Vaida ingXMLDaeumensAnstaDTD.
Naming a Public External DTD.
Deel a ring a Public External DTD.
Pros and Cons of DTDs.
Part4:XMLSchema
XMLSchema Basics.
Working with XMLSchema.
Begining a Simple XMLSchema.
Assoc at ngan XMLSchema wih an XMLDocument . 117
Annotating Schemas.
De in in ga SimpleType Element.
Using DateandTime Types.
Using Number Types.
Pre de in ingan Elemen rs Content.
De rving Custom Simple Types.126
To ble of Canton ts
Deriving Named Custom Types.
Spe ifying a Range of Accep rable Values
Specifying a Set of Acceptable Values.
Limiting the Length of an Element.
Specifying a Pattern for an Element.
Limiting a Numbers Digits.
Deriving a List Type.
Deriving a Union Type
ComplexType Basics.
Dering Anonymous Complex Types.
Deriving Named Complex Types---
Chapter11:DefiningComplexTypes.
Chapter12:XMLNamespaces.
Chapter13:UsingXMLNamespaces.
Chapter14:XSLT2.0.
Chapter15:XPath2.0.
Chaper16:XQuery1.0.
De ing ComplexType Th arCona inCh id Elemen ss 142
Requiring Child Elements to Appear in Sequence-.143
Al wing Chid Elements to Appear in Any Order-.144
Creating a Set of Choices.145
De in in gEe ments to Conta nO aly Text.146
De in ing Empty Elements.147
De higEementswihMiedContene.148
De rving Compex Types from Ex isig Complex Typ.149
Referencing Globally De lined Elements-.150
Controlling How Many-.151
Dehn ng Named Model Groups.152
Referencing a Named Model Group·.153
Defining Attributes.154
Requiring an Attribute.155
Pre dehn in ganA tributes Com tnt.156
Defining Attribute Groups.157
Referencing Attribute Groups.158
Local and Global Deli nitions.159
Part5:Namespaces
Designing a Namespace Name.164
Declaring a Default Namespace.165
Dec larga Namespace Name Pre x.166
Label ng Elements wth a Namespace Pre fx. 167
How Namespaces Affect Attributes.168
Po puting an XML Namespace.
XML Schemas, XML Documents, and Namespace 5. 171
Referen ng XMLSchema Components in Namespaces . 172
Namespaces and Validating XML.
Adding All Local y De in ed Elements
Adding Particular Locally Defined Elements
XMLSchema sin Mul rip le Files.
XMLSchema sw th Multiple Namespaces
The Schema of Schemas as the Default.
Namespaces and DTDs.
XSLT and Namespaces
Part6:RecentW3CRecommendations
Extend ng XSLT
Crean ga Simpli fed StyleSheet.
Gen craig XHTML Our pur Documents
Generating MuIr ip le Output Documents.
Creating User De in ed Functions.
Calling User Defined Functions.
GoupngOupurUing Common values
Validating XSLT Out pur.
XPath 1.0 and XPath 2.0.
Averaging Values in a Sequence
Fi ding theM ii num or Maximum Valu
Formatting Strings.
Testing Conditions.
Quantifying a Condi ion.
Removing Duplicate Items.
Looping Over Sequences.
Using Today's DateandTime
Writing Comments.
Proc eng Non-XML Input.
x Quer 1.05.XSLT 2.0.
Compo ingan XQuery Document.
l denti fig an XML Source Document.
Uing Path Expressions.
Wit ing FLW OR Expressions.
Testing wih Conditional Expressions.
Joining Two Related DataSources.
Crain g and Can g User Dehne d Func in 5.
XQuery and Databases.
Part7:XMLinPractice
Ajax Basics.
Ajax Examples.
RSS Basics.
RSS Schema.
Extending RSS.4.
SOAP and WebServices.
SOAP Message Schema.
WSDL.
KML Basics.
AS imp lKML Fle.
ODF and OO XML,
c Books, ePub, and More
Tools for XML in Practice,
Appendices
XML Editors.
Add tonal XML Editors