pki:get-template( $template-id as xs:unsignedLong* ) as element(pki:template)*
This function returns the certificate template for the specified id.
Parameters | |
---|---|
template-id | The id of the certificate template to be returned. |
(: 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:get-template($tid)) (: Returns all of the certificate templates in the security database. :)