以文档为变量的 XSLT 文件路径

XSLT filePath with document as variable

我尝试在文件路径中使用一个变量,但它不起作用:

BodyPart filePath="C:\FileOutEmail\($vpDocNr).xml" content-type="" content-id="" content-disposition="" multipart-type=""

我也试过在一个变量中使用整个路径但没有结果:

BodyPart filePath='$bestand'  content-type="" content-id="" content-disposition="" multipart-type="" 

这可能吗,正确的语法是什么?

我主要是在猜测,但假设您的 XSLT 样式表包含:

<xsl:variable name="vpDocNr" select="'abc123'"/>
<BodyPart filePath="C:\FileOutEmail\{$vpDocNr}.xml"/>

那么这部分的结果将是:

<BodyPart filePath="C:\FileOutEmail\abc123.xml"/>