Loading TOC...

pki:get-template-by-name

pki:get-template-by-name(
   $template-name as xs:string
) as element(pki:template)*

Summary

This function returns the certificate template with the specified name.

Parameters
$template-name The name of the template to be returned.

Example

    (: 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". :)
  

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.