stasis78
Refugee
Ok take this example, I should be able to do this (should means TFP doesn’t have to agree)
OR
So here I want all these blocks to have an attribute of myCoolAttrib set to the name of the block matched. BUT the xpath matches the child node for property @class='UpgradeBlock',
can't do this today, the mod xpath requires a literal string. not an expression. please add this
Code:
<setattribute xpath="/blocks/block[starts-with(@name,'concr')]/property[@class='UpgradeBlock']" name="myCoolAttrib">
ancestor::*/@name
</setattribute>
Code:
<setattribute xpath="/blocks/block[starts-with(@name,'concr')]/property[@class='UpgradeBlock']" name="myCoolAttrib">
<xpathexpression xpath="ancestor::*/@name" />
</setattribute>
can't do this today, the mod xpath requires a literal string. not an expression. please add this

Last edited by a moderator: