pki:get-template-by-name( $template-name as xs:string ) as element(pki:template)*
This function returns the certificate template with the specified name.
Parameters | |
---|---|
template-name | The name of the 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"; pki:get-template-by-name("test") (: Returns the certificate template, named "test". :)