git.iko.soy/typeable/pandoc
on master help sign in
Merge pull request #2968 from IvoBCD/docbook5-xlink-ns

Docbook writer: Declare xlink namespace in Docbook5 output

commit3e06172a00998dfee8cd54c90672a1059ad64532 authorJohn MacFarlane <jgm@berkeley.edu> dateTue 7 Jun 2016, 11:27 (10 years ago) parent4136ec0240cdfd
1 file changed+1−1
src/Text/Pandoc/Writers/Docbook.hs+1−1
src/Text/Pandoc/Writers/Docbook.hs+1−1
@@ -117,7 +117,7 @@ elementToDocbook opts lvl (Sec _ _num (id',_,_) title elements) =
117117 else "sect" ++ show n
118118 | otherwise -> "simplesect"
119119 idAttr = [("id", writerIdentifierPrefix opts ++ id') | not (null id')]
120− nsAttr = if writerDocbook5 opts && lvl == 0 then [("xmlns", "http://docbook.org/ns/docbook")]
120+ nsAttr = if writerDocbook5 opts && lvl == 0 then [("xmlns", "http://docbook.org/ns/docbook"),("xmlns:xlink", "http://www.w3.org/1999/xlink")]
121121 else []
122122 attribs = nsAttr ++ idAttr
123123 in inTags True tag attribs $