-- | An arrow which parses the doctype "SYSTEM" of an 'XmlTree'.
-- We use these to determine the parser to use.
- doctypeA :: ArrowXml a => a XmlTree DtdName
- doctypeA = getAttrl >>> hasName "doctype-SYSTEM" /> getText >>^ DtdName
+ dtdnameA :: ArrowXml a => a XmlTree DtdName
+ dtdnameA = getAttrl >>> hasName "doctype-SYSTEM" /> getText >>^ DtdName
-- | Combine the arrows above as well as the function below
-- (arrowized with 'arr') into an IO action that does everything
-- big one outside of the list.
parse_and_import :: IO [ImportResult]
parse_and_import =
- runX (readA >>> (doctypeA &&& returnA) >>> (arr import_with_dtd))
+ runX (readA >>> (dtdnameA &&& returnA) >>> (arr import_with_dtd))
>>=
sequence