| Safe Haskell | None |
|---|
Data.DTD.Types
Contents
- data DTD = DTD {}
- data DTDTextDecl = DTDTextDecl {}
- data DTDComponent
- data EntityDecl
- data ElementDecl = ElementDecl {}
- data ContentDecl
- data ContentModel
- = CMName Text Repeat
- | CMChoice [ContentModel] Repeat
- | CMSeq [ContentModel] Repeat
- data Repeat
- = One
- | ZeroOrOne
- | ZeroOrMore
- | OneOrMore
- data AttList = AttList {}
- data AttDecl = AttDecl {}
- data AttType
- = AttStringType
- | AttIDType
- | AttIDRefType
- | AttIDRefsType
- | AttEntityType
- | AttEntitiesType
- | AttNmTokenType
- | AttNmTokensType
- | AttEnumType [Text]
- | AttNotationType [Text]
- data AttDefault
- = AttRequired
- | AttImplied
- | AttFixed Text
- | AttDefaultValue Text
- data Notation = Notation {}
- data NotationSource
DTD structure
data DTDTextDecl Source
The ?xml text declaration at the beginning of a DTD.
Constructors
| DTDTextDecl | |
Fields
| |
Instances
data DTDComponent Source
The kinds of components that can appear in a DTD.
Constructors
| DTDEntityDecl EntityDecl | Entity declaration |
| DTDElementDecl ElementDecl | Element declaration |
| DTDAttList AttList | List of attribute declarions for an element |
| DTDNotation Notation | A notation declaration |
| DTDInstruction Instruction | A processing instruction |
| DTDComment Text | A comment |
Instances
Entity declarations and references
data EntityDecl Source
Constructors
| InternalGeneralEntityDecl | |
Fields | |
| ExternalGeneralEntityDecl | An external general entity is unparsed if a notation is specified. |
Fields | |
Instances
Element declarations
data ContentDecl Source
The content that can occur in an element.
Constructors
| ContentEmpty | No content |
| ContentAny | Unrestricted content |
| ContentElement ContentModel | Structured element content |
| ContentMixed [Text] | A mixture of text and elements |
Instances
data ContentModel Source
A model of structured content for an element.
Constructors
| CMName Text Repeat | Element name |
| CMChoice [ContentModel] Repeat | Choice, delimited by |
| CMSeq [ContentModel] Repeat | Sequence, delimited by |
Instances
The number of times a production of content model syntax can repeat.
Constructors
| One | |
| ZeroOrOne | |
| ZeroOrMore | |
| OneOrMore |
Attribute declarations
A list of attribute declarations for an element.
Constructors
| AttList | |
Fields
| |
A declaration of an attribute that can occur in an element.
Constructors
| AttDecl | |
Fields
| |
The type of value that an attribute can take.
Constructors
| AttStringType | Any text |
| AttIDType | A unique ID |
| AttIDRefType | A reference to an ID |
| AttIDRefsType | One or more references to IDs |
| AttEntityType | An unparsed external entity |
| AttEntitiesType | One or more unparsed external entities |
| AttNmTokenType | A name-like token |
| AttNmTokensType | One or more name-like tokens |
| AttEnumType [Text] | One of the given values |
| AttNotationType [Text] | Specified by external syntax declared as a notation |
data AttDefault Source
A default value specification for an attribute.
Constructors
| AttRequired | No default value; the attribute must always be supplied |
| AttImplied | No default value; the attribute is optional |
| AttFixed Text | When supplied, the attribute must have the given value |
| AttDefaultValue Text | The attribute has the given default value when not supplied |
Instances
Notation declarations
A declaration of a notation.
Constructors
| Notation | |
Fields | |
data NotationSource Source
A source for a notation. We do not use the usual ExternalID
type here, because for notations it is only optional, not required,
for a public ID to be accompanied also by a system ID.
Constructors
| NotationSysID Text | A system ID |
| NotationPubID Text | A public ID |
| NotationPubSysID Text Text | A public ID with a system ID |
Instances