Loading TOC...

pki:template-set-name

pki:template-set-name(
   $template as element(pki:template),
   $name as xs:string
) as element(pki:template)

Summary

This function changes the name of the specified certificate template and returns the XML containing the change. Use pki:insert-template to save the change to the Security database.

Parameters
template The certificate template for which to change the name.
name The new name for the certificate template.

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";

  let $tid := pki:get-template-ids()[1]
    return  pki:template-set-name(pki:get-template($tid), "foo")
 
  (: Returns the XML for the certificate template with the new name. :)
  

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