# For the IntDir nodes //PropertyGroup[contains(\@Condition,'$proj')]/IntDir # For the OutDir nodes //PropertyGroup[contains(\@Condition,'$proj')]/OutDir #### //PropertyGroup[contains(\@Condition,'$proj')]/*[self::IntDir or self::OutDir]