| |||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
Description | |||||||||||||||||||||||||||||||||||||
Version : $Id: CompiledStylesheet.hs,v 1.3 20070502 06:41:05 hxml Exp $ Types for compiled stylesheets | |||||||||||||||||||||||||||||||||||||
Documentation | |||||||||||||||||||||||||||||||||||||
data CompiledStylesheet | |||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
getMatchRules :: CompiledStylesheet -> [MatchRule] | |||||||||||||||||||||||||||||||||||||
getNamedRules :: CompiledStylesheet -> Map ExName NamedRule | |||||||||||||||||||||||||||||||||||||
getVariables :: CompiledStylesheet -> Map ExName Variable | |||||||||||||||||||||||||||||||||||||
getAttributeSets :: CompiledStylesheet -> Map ExName [AttributeSet] | |||||||||||||||||||||||||||||||||||||
getStrips :: CompiledStylesheet -> [Strips] | |||||||||||||||||||||||||||||||||||||
getAliases :: CompiledStylesheet -> NSAliasing | |||||||||||||||||||||||||||||||||||||
data MatchRule | |||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
getRulePrio :: MatchRule -> Float | |||||||||||||||||||||||||||||||||||||
getRuleMode :: MatchRule -> Maybe ExName | |||||||||||||||||||||||||||||||||||||
getRuleImports :: MatchRule -> [MatchRule] | |||||||||||||||||||||||||||||||||||||
data NamedRule | |||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
getRuleName :: NamedRule -> ExName | |||||||||||||||||||||||||||||||||||||
data Variable | |||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
getVarName :: Variable -> ExName | |||||||||||||||||||||||||||||||||||||
isParam :: Variable -> Bool | |||||||||||||||||||||||||||||||||||||
newtype UsedAttribSets | |||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
data AttributeSet | |||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
type NTest = ExName | |||||||||||||||||||||||||||||||||||||
parseNTest :: UriMapping -> String -> NTest | |||||||||||||||||||||||||||||||||||||
type Strips = Map NTest Bool | |||||||||||||||||||||||||||||||||||||
lookupStrip :: ExName -> [Strips] -> Bool | |||||||||||||||||||||||||||||||||||||
lookupStrip1 :: ExName -> Strips -> Maybe Bool | |||||||||||||||||||||||||||||||||||||
feedSpaces :: Bool -> [NTest] -> Strips -> Strips | |||||||||||||||||||||||||||||||||||||
feedStrips :: [NTest] -> Strips -> Strips | |||||||||||||||||||||||||||||||||||||
feedPreserves :: [NTest] -> Strips -> Strips | |||||||||||||||||||||||||||||||||||||
stripDocument :: [Strips] -> XmlTree -> XmlTree | |||||||||||||||||||||||||||||||||||||
stripStylesheet :: XmlTree -> XmlTree | |||||||||||||||||||||||||||||||||||||
stripSpaces :: (Bool -> XNode -> Bool) -> Bool -> XmlTree -> XmlTree | |||||||||||||||||||||||||||||||||||||
type NSAliasing = Map String String | |||||||||||||||||||||||||||||||||||||
addAlias :: UriMapping -> String -> String -> NSAliasing -> NSAliasing | |||||||||||||||||||||||||||||||||||||
lookupAlias :: NSAliasing -> QName -> QName | |||||||||||||||||||||||||||||||||||||
aliasUriMapping :: NSAliasing -> UriMapping -> UriMapping | |||||||||||||||||||||||||||||||||||||
data Template | |||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
data SortKey | |||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
data When | |||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
data ComputedQName | |||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
newtype SelectExpr | |||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
newtype TestExpr | |||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
newtype StringExpr | |||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
newtype MatchExpr | |||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||
Produced by Haddock version 0.8 |