Sorin Marian Nasoi has proposed merging lp:~zorba-coders/zorba/bug_948712 into lp:zorba.
Requested reviews: Sorin Marian Nasoi (sorin.marian.nasoi) Related bugs: Bug #948712 in Zorba: "xqdoc: add schema import info" https://bugs.launchpad.net/zorba/+bug/948712 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 subscribed to branch 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:56:20 +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