No, this is not possible. The reason is that virtual attributes can be implemented at many different ways, for example a complex microflow or a custom Java action. XPath queries are translated to SQL queries and executed in the database. It is generally not possible for the Runtime to convert your virtual attribute logic into a SQL query statement.
<body></html>