我有以下 XML
<?xml version="1.0" encoding="UTF-8"?>
<SpecializedActions>
<SpecializedAction>
<Name>ActivateAAA_Account</Name>
<Function>holaaalib:activate($csmHeader, $component, $taskName, $osmOrderId)</Function>
</SpecializedAction>
<SpecializedAction>
<Name>ActivateIMSAccount</Name>
<Function>imsLib:activate($csmHeader, $component, $taskName, $osmOrderId)</Function>
</SpecializedAction>
</SpecializedActions>
我试图像这样调用我的通用 xQuery 中的函数
if (fn:exists($specializedAList/SpecializedAction[Name/text() = $specializedActionName])) then
$specializedAList/SpecializedAction[Name/text() = $specializedActionName]/Function/text()
但这样它会返回一个文本'imsLib:activate($csmHeader, $component, $taskName, $osmOrderId)'。有没有一种方法可以将其转换为 xQuery 表达式?