create nodes in fragment when there's no document