zorba-coders team mailing list archive
-
zorba-coders team
-
Mailing list archive
-
Message #08523
[Merge] lp:~zorba-coders/zorba/fix_bug_967284 into lp:zorba
Sorin Marian Nasoi has proposed merging lp:~zorba-coders/zorba/fix_bug_967284 into lp:zorba.
Requested reviews:
Nicolae Brinza (nbrinza)
Sorin Marian Nasoi (sorin.marian.nasoi)
Related bugs:
Bug #967284 in Zorba: "XQDoc doesn't support invalid XML entities"
https://bugs.launchpad.net/zorba/+bug/967284
For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/fix_bug_967284/+merge/103381
Fix for lp:967284.
--
https://code.launchpad.net/~zorba-coders/zorba/fix_bug_967284/+merge/103381
Your team Zorba Coders is subscribed to branch lp:zorba.
=== modified file 'modules/com/zorba-xquery/www/modules/project_xqdoc.xq'
--- modules/com/zorba-xquery/www/modules/project_xqdoc.xq 2012-04-24 12:39:38 +0000
+++ modules/com/zorba-xquery/www/modules/project_xqdoc.xq 2012-04-24 21:20:27 +0000
@@ -120,6 +120,7 @@
(:let $moduleFetched := fetch:content(trace($moduleURI,"fetch module URI version.."), "MODULE"):)
let $moduleURI := if(ends-with(data($module/zm:uri),".xq")) then substring-before(data($module/zm:uri),".xq") else data($module/zm:uri)
let $moduleFetched := fetch:content($moduleURI, "MODULE")
+ let $moduleFetched := fn:replace($moduleFetched, '&(nbsp|#160);' , codepoints-to-string(160))
let $xqdoc := xqd:xqdoc-content($moduleFetched)
let $xqdocRelFileName := pxqdoc:get-filename($moduleURI)
let $xqdocFileName := concat($xqdocXMLPath, file:directory-separator(), $xqdocRelFileName, ".xml")
Follow ups