It is possible and it is legal, but the ATO could deny the deductions if they consider it a scheme to avoid tax. So I would suggest a private ruling too.
Also it may be easier to set up your main loan as IO and then a separate loan in the form of a LOC and then borrow from the LOC to pay the interest. Keeps things separate in case the ATO deny deductibility on the capitalised portion and also keeps the banks happier as you are seen to be paying the main loan and not capitalising., You may be able to capitalise the interest on the LOC or just pay the interest on this every month.
You need good tax advice on this.
See this private ruling rejection on something similar:
PBR 1011345133229 http://www.ato.gov.au/rba/content.asp?doc=/RBA/Content/1011345133229.htm
Terryw | Structuring Lawyers Pty Ltd / Loan Structuring Pty Ltd
http://www.Structuring.com.au
Email Me
Lawyer, Mortgage Broker and Tax Advisor (Sydney based but advising Aust wide) http://www.Structuring.com.au