zorba-coders team mailing list archive
-
zorba-coders team
-
Mailing list archive
-
Message #03466
[Merge] lp:~zorba-coders/zorba/feature_xqdoc_version_for_modules into lp:zorba
Sorin Marian Nasoi has proposed merging lp:~zorba-coders/zorba/feature_xqdoc_version_for_modules into lp:zorba.
Requested reviews:
Sorin Marian Nasoi (sorin.marian.nasoi)
William Candillon (wcandillon)
For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/feature_xqdoc_version_for_modules/+merge/88116
Added the information about the Zorba module version in the generated XQDoc documentation.
--
https://code.launchpad.net/~zorba-coders/zorba/feature_xqdoc_version_for_modules/+merge/88116
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 2011-12-21 14:40:33 +0000
+++ modules/com/zorba-xquery/www/modules/xqdoc2xhtml/index.xq 2012-01-10 20:46:36 +0000
@@ -1121,6 +1121,13 @@
else
(<div class="subsubsection">XQuery version and encoding for this module:</div>,
<p class="annotationText">xquery version "{$module/xqdoc:comment/xqdoc:custom[@tag='XQuery version']/text()}" encoding "{$module/xqdoc:comment/xqdoc:custom[@tag='encoding']/text()}";</p>)
+ ),
+ let $modVersion := xqdoc2html:get-module-version($moduleUri)
+ return
+ if($modVersion = "") then ()
+ else
+ (<div class="subsubsection">Zorba version for this module:</div>,
+ <p>The latest version of this module is <strong>{$modVersion}</strong>. For more information about module versioning in Zorba please check out <a href="../../html/modules_using.html#mod_versioning" target="_blank">this</a> resource.</p>
)
};
Follow ups