
pki:template-get-id( $template as element(pki:template) ) as xs:unsignedLong
This function returns the id of the specified certificate template.
| Parameters | |
|---|---|
| template |
A certificate request template created by the
pki:create-template() function.
|
(: execute this against the security database :)
xquery version "1.0-ml";
import module namespace pki = "http://marklogic.com/xdmp/pki"
at "/MarkLogic/pki.xqy";
pki:template-get-id(pki:get-template-by-name("test"))
(: Returns the id for the "test" certificate template. :)