Loading TOC...

pki:template-set-description

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

Summary

This function changes the description 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 description.
$description The new description 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-description(
         pki:get-template($tid), 
         "The new description of the certificate.")

  (: Returns the XML for the certificate template with the new description. :)
  

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