It would help if you show us your code.
In reply to Re: Using environment variables in xi:include by zwon in thread Using environment variables in xi:include by joeperl