
pki:template-get-version( $template as element(pki:template) ) as xs:unsignedLong
This function returns the version number for the specified certificate template.
| Parameters | |
|---|---|
| template | The certificate template from which to get the version number. |
(: execute this against the security database :)
xquery version "1.0-ml";
import module namespace pki = "http://marklogic.com/xdmp/pki"
at "/MarkLogic/pki.xqy";
for $tid in pki:get-template-ids()
return
pki:template-get-version(pki:get-template($tid))
(: Returns the version numbers of the certificate templates. :)