Short version: How do I do nested property expansion in an XQuery in SoapUI Pro 5, where the outer property is a reference to the ResponseAsXML of a previous test step, and the inner property comes from a properties file?

Example:

My test steps look like this:

1. Call AddCustomer, which also adds an email address, and returns customerId.
2. Use property transfer to store the customerId in a properties file called EmailProperties.
3. Call AddEmailToCustomer, which adds a second email to the same customer and returns a new emailId.
4. Call GetEmailsForCustomer, which returns both emails for the customer.

The REST endpoints for step 3 and 4 look like this:

```
POST/GET http://myEndpoint.com/customers/{customerId}/emails

```

When trying to verify step 4, I wrote an XQuery that loops through the Response (since we can't guarantee what order the emails will be in the response) to find the email added in step 3. In my XQuery, if I hardcode the customerId in the namespace like this it works fine:

```
for $email in //emails
where $email/id/text()='${AddEmailToCustomer#ResponseAsXml#declare namespace ns1='http://myEndpoint.com/customers/1234/emails'; //ns1:Response[1]/ns1:id[1]}'

```

But if I try to use the customerId from the properties file like this:

```
for $email in //emails
where $email/id/text()='${AddEmailToCustomer#ResponseAsXml#declare namespace ns1='http://myEndpoint.com/customers/${#EmailProperties#customerId}/emails'; //ns1:Response[1]/ns1:id[1]}'

```

I get an error about how it can't find the expected child nodes:

```
...Exception:org.custommonkey.xmlunit.Diff[different] Expected presence of child nodes to be 'true' but was 'false'...

```

How can I get this to work?