XSLT filePath with document as variable

241 views Asked by At

I try to use a variable in the filePath, but it isn't working:

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

I also tried with the whole path in a variable without results:

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

Is this possible, what is the right syntax?

1

There are 1 answers

0
michael.hor257k On BEST ANSWER

I am mostly guessing here, but supposing your XSLT stylesheet contains:

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

then the result of this part will be:

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