hxt-relaxng-9.1.1: The HXT RelaxNG validator

Portabilityportable
Stabilitystable
MaintainerUwe Schmidt (uwe@fh-wedel.de)

Text.XML.HXT.RelaxNG.Utils

Description

Helper functions for RelaxNG validation

Synopsis

Documentation

isRelaxAnyURI :: String -> BoolSource

Tests whether a URI matches the Relax NG anyURI symbol

compareURI :: String -> String -> BoolSource

Tests whether two URIs are equal after normalizeURI is performed

normalizeURI :: String -> StringSource

Converts all letters to the corresponding lower-case letter and removes a trailing "/"

isNumber :: String -> BoolSource

Tests whether a string matches a number [-](0-9)*

formatStringListPatt :: [String] -> StringSource

Formats a list of strings into a single string. The first parameter formats the elements, the 2. is inserted between two elements.

example:

 formatStringList show ", " ["foo", "bar", "baz"] -> "foo", "bar", "baz"