hxt-7.4: A collection of tools for processing XML with Haskell.Source codeContentsIndex
Text.XML.HXT.RelaxNG.Utils
Description
Some helper functions
Synopsis
isRelaxAnyURI :: String -> Bool
compareURI :: String -> String -> Bool
normalizeURI :: String -> String
isNumber :: String -> Bool
isNmtoken :: String -> Bool
isName :: String -> Bool
formatStringList :: (String -> String) -> String -> [String] -> String
formatStringListPatt :: [String] -> String
formatStringListId :: [String] -> String
formatStringListQuot :: [String] -> String
formatStringListPairs :: [(String, String)] -> String
formatStringListArr :: [String] -> String
qn2String :: QName -> String
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)*
isNmtoken :: String -> BoolSource
isName :: String -> BoolSource
formatStringList :: (String -> String) -> String -> [String] -> StringSource
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"
formatStringListId :: [String] -> StringSource
formatStringListQuot :: [String] -> StringSource
formatStringListPairs :: [(String, String)] -> StringSource
formatStringListArr :: [String] -> StringSource
qn2String :: QName -> StringSource
Formats a qualified name, e.g. "{namespace}localName"
Produced by Haddock version 2.3.0