hxt-8.2.0: A collection of tools for processing XML with Haskell.Source codeContentsIndex
Text.XML.HXT.Arrow.Pickle.Schema
Portabilityportable
Stabilityexperimental
MaintainerUwe Schmidt (uwe@fh-wedel.de)
Description

Version : $Id$

Datatypes and functions for building a content model for XML picklers. A schema is part of every pickler and can be used to derive a corrensponding DTD (or Relax NG schema). This schema further enables checking the picklers.

Synopsis
data Schema
= Any
| Seq {
sc_l :: [Schema]
}
| Alt {
sc_l :: [Schema]
}
| Rep {
sc_lb :: Int
sc_ub :: Int
sc_1 :: Schema
}
| Element {
sc_n :: Name
sc_1 :: Schema
}
| Attribute {
sc_n :: Name
sc_1 :: Schema
}
| ElemRef {
sc_n :: Name
}
| CharData {
sc_dt :: DataTypeDescr
}
type Name = String
type Schemas = [Schema]
data DataTypeDescr = DTDescr {
dtLib :: String
dtName :: String
dtParams :: Attributes
}
isScXsd :: (String -> Bool) -> Schema -> Bool
isScFixed :: Schema -> Bool
isScEnum :: Schema -> Bool
isScElem :: Schema -> Bool
isScAttr :: Schema -> Bool
isScElemRef :: Schema -> Bool
isScCharData :: Schema -> Bool
isScSARE :: Schema -> Bool
isScList :: Schema -> Bool
isScOpt :: Schema -> Bool
xsdParam :: String -> Schema -> String
scDT :: String -> String -> Attributes -> Schema
scDTxsd :: String -> Attributes -> Schema
scString :: Schema
scString1 :: Schema
scFixed :: String -> Schema
scEnum :: [String] -> Schema
scNmtoken :: Schema
scNmtokens :: Schema
scEmpty :: Schema
scSeq :: Schema -> Schema -> Schema
scSeqs :: [Schema] -> Schema
scNull :: Schema
scAlt :: Schema -> Schema -> Schema
scAlts :: [Schema] -> Schema
scOption :: Schema -> Schema
scList :: Schema -> Schema
scList1 :: Schema -> Schema
scOpt :: Schema -> Schema
scRep :: Int -> Int -> Schema -> Schema
scElem :: String -> Schema -> Schema
scAttr :: String -> Schema -> Schema
Documentation
data Schema Source
The datatype for modelling the structure of an
Constructors
Any
Seq
sc_l :: [Schema]
Alt
sc_l :: [Schema]
Rep
sc_lb :: Int
sc_ub :: Int
sc_1 :: Schema
Element
sc_n :: Name
sc_1 :: Schema
Attribute
sc_n :: Name
sc_1 :: Schema
ElemRef
sc_n :: Name
CharData
sc_dt :: DataTypeDescr
show/hide Instances
type Name = StringSource
type Schemas = [Schema]Source
data DataTypeDescr Source
Constructors
DTDescr
dtLib :: String
dtName :: String
dtParams :: Attributes
show/hide Instances
isScXsd :: (String -> Bool) -> Schema -> BoolSource
test: is schema a simple XML Schema datatype
isScFixed :: Schema -> BoolSource
test: is type a fixed value attribute type
isScEnum :: Schema -> BoolSource
isScElem :: Schema -> BoolSource
isScAttr :: Schema -> BoolSource
isScElemRef :: Schema -> BoolSource
isScCharData :: Schema -> BoolSource
isScSARE :: Schema -> BoolSource
isScList :: Schema -> BoolSource
isScOpt :: Schema -> BoolSource
xsdParam :: String -> Schema -> StringSource
access an attribute of a descr of an atomic type
scDT :: String -> String -> Attributes -> SchemaSource
scDTxsd :: String -> Attributes -> SchemaSource
scString :: SchemaSource
scString1 :: SchemaSource
scFixed :: String -> SchemaSource
scEnum :: [String] -> SchemaSource
scNmtoken :: SchemaSource
scNmtokens :: SchemaSource
scEmpty :: SchemaSource
scSeq :: Schema -> Schema -> SchemaSource
scSeqs :: [Schema] -> SchemaSource
scNull :: SchemaSource
scAlt :: Schema -> Schema -> SchemaSource
scAlts :: [Schema] -> SchemaSource
scOption :: Schema -> SchemaSource
scList :: Schema -> SchemaSource
scList1 :: Schema -> SchemaSource
scOpt :: Schema -> SchemaSource
scRep :: Int -> Int -> Schema -> SchemaSource
scElem :: String -> Schema -> SchemaSource
scAttr :: String -> Schema -> SchemaSource
Produced by Haddock version 2.4.2