hxt-7.1: A collection of tools for processing XML with Haskell.ContentsIndex
Text.XML.HXT.RelaxNG.Utils
Description
Some helper functions
Synopsis
isRelaxAnyURI :: String -> Bool
compareURI :: String -> String -> Bool
normalizeURI :: String -> String
parseNumber :: String -> Bool
formatStringList :: String -> [String] -> String
qn2String :: QName -> String
Documentation
isRelaxAnyURI :: String -> Bool
Tests whether a URI matches the Relax NG anyURI symbol
compareURI :: String -> String -> Bool
Tests whether two URIs are equal after normalizeURI is performed
normalizeURI :: String -> String
Converts all letters to the corresponding lower-case letter and removes a trailing "/"
parseNumber :: String -> Bool
Tests whether a string matches a number [-](0-9)*
formatStringList :: String -> [String] -> String

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

example:

 formatStringList ", " ["foo", "bar", "baz"] -> "foo, bar, baz"
qn2String :: QName -> String
Formats a qualified name, e.g. "{namespace}localName"
Produced by Haddock version 0.8