It would be useful to show your code so we can see where you went wrong.
Referencing a newly created node using XPath can't be done in XSLT 1.0 except with the xx:node-set() extension function = but it's not something you need to do to solve this problem
Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference