Marklogic MCLP uri_id,如何在聚合xml中指定xml标记的属性

Marklogic MCLP uri_id,如何在聚合xml中指定xml标记的属性,marklogic,marklogic-9,mlcp,Marklogic,Marklogic 9,Mlcp,我想知道是否有可能将加载的文档的uri提取为聚合xml中的xml标记属性 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <trialRecordsOutput> <serviceExecutionTime>427</serviceExecutionTime> <Trial id="10006">...<Trial> <Trial id="12

我想知道是否有可能将加载的文档的uri提取为聚合xml中的xml标记属性

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<trialRecordsOutput>
  <serviceExecutionTime>427</serviceExecutionTime>
  <Trial id="10006">...<Trial>
  <Trial id="123456">...<Trial>
</trialRecordsOutput>
在转换模块(mlcp flow transform.xqy)中,您可以通过使用属性Id创建所需的uri

在return语句中,将名为“uri”的新键放入$content。当我们增加“价值”时

let $uri := 'Your new uri'
let $value := 'Your actual content'
return (map:put($content,'uri',$uri),
     map:put($content,'value',$value))

有关更多信息,请参阅MLCP用户指南第4章“MLCP-flow-tranform.xqy”是DHF代码。我没有访问权限。。我所能做的就是复制它,因为我确实需要DHF输入流工作流
let $uri := 'Your new uri'
let $value := 'Your actual content'
return (map:put($content,'uri',$uri),
     map:put($content,'value',$value))