HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulehxt-9.3.1.22Haskell2010

Text.XML.HXT.DTDValidation.AttributeValueValidation

This module provides functions for validating attributes.

The main functions are:

  • Check if the attribute value meets the lexical constraints of its type

  • Normalization of an attribute value

  • 2 values
  • Packagehxt-9.3.1.22
  • Exports2
  • LanguageHaskell2010
  • LicenceMIT
  • SourceAttributeValueValidation.hs

Checks if the attribute value meets the lexical constraints of its type.

  • 1.parameter dtdPart : the children of the DOCTYPE node

  • 2.parameter attrDecl : the declaration of the attribute from the DTD

  • returns : a function which takes an element (XTag or XDTD ATTLIST), checks if the attribute value meets the lexical constraints of its type and returns a list of errors

Normalizes an attribute value with respect to its type. (3.3.3 / p.29 in Spec)

  • 1.parameter attrDecl : the declaration of the attribute from the DTD. Expected is a list. If the list is empty, no declaration exists.

  • 2.parameter value : the attribute value to be normalized

  • returns : the normalized value