Can you provide a piece of code how you writing transformation you are calling so its better to understand , by the way with your question it seems you having calling issue with custom page type value and passing it to your custom macro on transformation.
There are in general two cases.
1.You not selected your custom page type in the repeater as datasource.
2.Your custom macro method not working properly.
- Make sure you calling rightly your value using .net expression like this in transformation.
2.Calling custom macro method.
Happy to help you