Getting a node property using a macro parameter with new xml format
Hi guys,
In the old days you could define a parameter to your macro, like $imageAlias, and then retrieve a different attribute of your node by doing $currentPage/data[@alias = $imageAlias]
What is the equivalent with the new syntax? Obviously $currentPage/$imageAlias won't work.
Getting a node property using a macro parameter with new xml format
Hi guys,
In the old days you could define a parameter to your macro, like $imageAlias, and then retrieve a different attribute of your node by doing $currentPage/data[@alias = $imageAlias]
What is the equivalent with the new syntax? Obviously $currentPage/$imageAlias won't work.
Cheers!
David
Hi David,
You should be able to achieve the same thing with a
$currentPage/*[name() = $imageAlias]
.Brilliant! Just what I was after. #h5yr!
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.