You have been requested to review the proposed merge of 
lp:~zorba-coders/zorba/bug_948712 into lp:zorba.

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/bug_948712/+merge/96323

Fix for bug lp:948712: Added a way for easy copy&paste of the import schema 
statements.

-- 
https://code.launchpad.net/~zorba-coders/zorba/bug_948712/+merge/96323
Your team Zorba Coders is requested to review the proposed merge of 
lp:~zorba-coders/zorba/bug_948712 into lp:zorba.
=== modified file 'modules/com/zorba-xquery/www/modules/xqdoc2xhtml/index.xq'
--- modules/com/zorba-xquery/www/modules/xqdoc2xhtml/index.xq	2012-03-05 07:07:14 +0000
+++ modules/com/zorba-xquery/www/modules/xqdoc2xhtml/index.xq	2012-03-07 10:59:36 +0000
@@ -1228,8 +1228,17 @@
     }
     </ul></p>
   else (),
+  if (fn:count($xqdoc/xqdoc:module/xqdoc:comment/xqdoc:custom[@tag="library"]) > 0) then
+    <p>External C++ library dependencies:<ul>
+      {
+      for $library in $xqdoc/xqdoc:module/xqdoc:comment/xqdoc:custom[@tag="library"]
+        return
+         <li>{$library/node()}</li>
+      }
+    </ul></p>
+  else (),
   if (fn:count($xqdoc/xqdoc:imports//xqdoc:import[@type = "schema"]) > 0) then
-    <p>Imported schemas:<ul>
+    (<p>Imported schemas:<ul>
     {
       for $import in $xqdoc/xqdoc:imports//xqdoc:import[@type = "schema"]
       return
@@ -1243,16 +1252,18 @@
         else
           <li>{string($import/xqdoc:uri/text())}</li>
     }
-    </ul></p>
-  else (),
-  if (fn:count($xqdoc/xqdoc:module/xqdoc:comment/xqdoc:custom[@tag="library"]) > 0) then
-    <p>External C++ library dependencies:<ul>
-      {
-      for $library in $xqdoc/xqdoc:module/xqdoc:comment/xqdoc:custom[@tag="library"]
-        return
-         <li>{$library/node()}</li>
-      }
-    </ul></p>
+    </ul></p>,
+    <p>Please note that the schemas are not automatically imported in the modules that import this module. <br />
+    In order to import and use the schemas, please add:
+    <pre class="brush: xquery;">
+    {
+    string-join(
+    for $import in $xqdoc/xqdoc:imports//xqdoc:import[@type = "schema"]
+      return
+       concat('import schema "', string($import/xqdoc:uri/text()),'";'),"
+")
+    }
+    </pre></p>)
   else ()
   )
 };

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to     : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp

Reply via email to