Skip to Content
XML Pocket Reference, 3rd Edition
book

XML Pocket Reference, 3rd Edition

by Simon St. Laurent, Michael Fitzgerald
August 2005
Intermediate to advanced
175 pages
4h 48m
English
O'Reilly Media, Inc.
Content preview from XML Pocket Reference, 3rd Edition

Productions

[45] elementdecl ::= '<!ELEMENT' S Name S contentspec S? '>'
[46] contentspec ::= 'EMPTY' | 'ANY' | Mixed | children
[47] children ::= (choice | seq) ('?' | '*' | '+')?
[48] cp ::= (Name | choice | seq) ('?' | '*' | '+')?
[49] choice ::= '(' S? cp ( S? '|' S? cp )+ S? ')'
[50] seq ::= '(' S? cp ( S? ',' S? cp )* S? ')'
[51] Mixed ::= '(' S? '#PCDATA' (S? '|' S? Name)* S? ')*' | '(' S? '#PCDATA' S? ')'
[52] AttlistDecl ::= '<!ATTLIST' S Name AttDef* S? '>'
[53] AttDef ::= S Name S AttType S DefaultDecl
[54] AttType ::= StringType | TokenizedType | EnumeratedType
[55] StringType ::= 'CDATA'
[56] TokenizedType ::= 'ID'| 'IDREF' | 'IDREFS' | 'ENTITY' | 'ENTITIES' | 'NMTOKEN' |
'NMTOKENS'
[57] EnumeratedType ::= NotationType | Enumeration
[58] NotationType ::= 'NOTATION' S '(' S? Name (S? '|' S? Name)* S? ')'
[59] Enumeration ::= '(' S? Nmtoken (S? '|' S? Nmtoken)* S? ')'
[60] DefaultDecl ::= '#REQUIRED' | '#IMPLIED' | (('#FIXED' S)? AttValue)
[61] conditionalSect ::= includeSect | ignoreSect
[62] includeSect ::= '<![' S? 'INCLUDE' S? '[' extSubsetDecl ']]>'
[63] ignoreSect ::= '<![' S? 'IGNORE' S? '[' ignoreSectContents* ']]>'
[64] ignoreSectContents ::= Ignore ('<![' ignoreSectContents ']]>' Ignore)*
[65].Ignore ::= Char* - (Char* ('<![' | ']]>') Char*)

Examples

<!ELEMENT message (#PCDATA)> <!ATTLIST message date CDATA #REQUIRED> <?xml version="1.0" encoding="UTF-8" ?> <?xml-stylesheet href="mine.css" type="text/css" ?> <!--This is a very simple document.--> <!DOCTYPE message ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Special Edition Using XML, Second Edition

Special Edition Using XML, Second Edition

- et al. David Gulbransen
.NET & XML

.NET & XML

Niel M. Bornstein
Succeeding as a First-Time Parent (HBR Working Parents Series)

Succeeding as a First-Time Parent (HBR Working Parents Series)

Harvard Business Review, Daisy Dowling, Eve Rodsky, Bruce Feiler, Amy Jen Su

Publisher Resources

ISBN: 9780596100506Errata Page