From 240cdfd1b3910b2ddacb8d73865a6bbfd385c3dc Mon Sep 17 00:00:00 2001 From: Ivo Clarysse Date: Tue, 7 Jun 2016 06:03:06 -0700 Subject: Docbook writer: Declare xlink namespace in Docbook5 output --- src/Text/Pandoc/Writers/Docbook.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text/Pandoc/Writers') diff --git a/src/Text/Pandoc/Writers/Docbook.hs b/src/Text/Pandoc/Writers/Docbook.hs index 9acfe289a..9b1c70166 100644 --- a/src/Text/Pandoc/Writers/Docbook.hs +++ b/src/Text/Pandoc/Writers/Docbook.hs @@ -117,7 +117,7 @@ elementToDocbook opts lvl (Sec _ _num (id',_,_) title elements) = else "sect" ++ show n | otherwise -> "simplesect" idAttr = [("id", writerIdentifierPrefix opts ++ id') | not (null id')] - nsAttr = if writerDocbook5 opts && lvl == 0 then [("xmlns", "http://docbook.org/ns/docbook")] + nsAttr = if writerDocbook5 opts && lvl == 0 then [("xmlns", "http://docbook.org/ns/docbook"),("xmlns:xlink", "http://www.w3.org/1999/xlink")] else [] attribs = nsAttr ++ idAttr in inTags True tag attribs $ -- cgit v1.2.3