Merge lp:~zorba-coders/zorba/feature_xqdoc_version_for_modules into lp:zorba

Proposed by Sorin Marian Nasoi
Status: Superseded
Proposed branch: lp:~zorba-coders/zorba/feature_xqdoc_version_for_modules
Merge into: lp:zorba
Diff against target: 16 lines (+7/-0)
1 file modified
modules/com/zorba-xquery/www/modules/xqdoc2xhtml/index.xq (+7/-0)
To merge this branch: bzr merge lp:~zorba-coders/zorba/feature_xqdoc_version_for_modules
Reviewer Review Type Date Requested Status
Sorin Marian Nasoi Approve
William Candillon Pending
Review via email: mp+88116@code.launchpad.net

Commit message

Added the information about the Zorba module version in the generated XQDoc documentation.

Description of the change

Added the information about the Zorba module version in the generated XQDoc documentation.

To post a comment you must log in.
Revision history for this message
Sorin Marian Nasoi (sorin.marian.nasoi) :
review: Approve
10615. By Sorin Marian Nasoi <email address hidden>

Updated trunk.

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'modules/com/zorba-xquery/www/modules/xqdoc2xhtml/index.xq'
2--- modules/com/zorba-xquery/www/modules/xqdoc2xhtml/index.xq 2011-12-21 14:40:33 +0000
3+++ modules/com/zorba-xquery/www/modules/xqdoc2xhtml/index.xq 2012-01-18 11:49:24 +0000
4@@ -1121,6 +1121,13 @@
5 else
6 (<div class="subsubsection">XQuery version and encoding for this module:</div>,
7 <p class="annotationText">xquery version "{$module/xqdoc:comment/xqdoc:custom[@tag='XQuery version']/text()}" encoding "{$module/xqdoc:comment/xqdoc:custom[@tag='encoding']/text()}";</p>)
8+ ),
9+ let $modVersion := xqdoc2html:get-module-version($moduleUri)
10+ return
11+ if($modVersion = "") then ()
12+ else
13+ (<div class="subsubsection">Zorba version for this module:</div>,
14+ <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>
15 )
16 };
17

Subscribers

People subscribed via source and target branches