import Control.Arrow.ArrowIf
import Control.Arrow.ArrowList
import Control.Arrow.ArrowTree
-import Data.Char
-import Data.List
import Data.Maybe
import Network.URI hiding (fragment)
import Rakka.Page
attachXHtmlNS = processTopDown (changeQName attach `when` isElem)
where
attach :: QName -> QName
- attach qn = qn {
- namePrefix = "xhtml"
- , namespaceUri = "http://www.w3.org/1999/xhtml"
- }
+ attach = setNamePrefix' (newXName "xhtml") .
+ setNamespaceUri' (newXName "http://www.w3.org/1999/xhtml")