yvanstack
yvanstack

Reputation: 31

XPath $ and curly braces meaning?

I am working on adobe workbench and inside there is use of XPath. In a template I see that the use this format (below) ...

I would like to know what it means starting from I am seeing a forward slash and then the sub-directory of my path and then a backward slash followed by {$....$} I know what /process_data/ means but why enclosed in curly braces and dollar signs?

\\SERVER1\firstdirectory/firstsubdirectory\{$/process_data/@fileName$}.pdf 

enter image description here

Upvotes: 1

Views: 589

Answers (1)

kjhughes
kjhughes

Reputation: 111726

Dollar signs ($) and curly braces ({ }) are not a part of XPath syntax.

If you're certain you're looking at an XPath, that construct is likely intended to be pre-processed and replaced with a calculated or looked-up value prior to being evaluated as an XPath. Frankly, however, what you've posted looks more like a directory/file path than an XPath.

Perhaps really the {$ ... $} notation is meant to allow entry of an XPath (/process_data/@fileName, in this case) for the purpose of constructing a file path.

Upvotes: 2

Related Questions