hxt-relaxng-9.1.5.3: The HXT RelaxNG validator

CopyrightCopyright (C) 2008 Uwe Schmidt
LicenseMIT
MaintainerUwe Schmidt (uwe@fh-wedel.de)
Stabilitystable
Portabilityportable
Safe HaskellNone
LanguageHaskell98

Text.XML.HXT.RelaxNG.Utils

Description

Helper functions for RelaxNG validation

Synopsis

Documentation

isRelaxAnyURI :: String -> Bool Source

Tests whether a URI matches the Relax NG anyURI symbol

compareURI :: String -> String -> Bool Source

Tests whether two URIs are equal after normalizeURI is performed

normalizeURI :: String -> String Source

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

isNumber :: String -> Bool Source

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

formatStringListPatt :: [String] -> String Source

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"