You can't do it using entities. I should never say never. If you're prepared to write some code you could do it using a user-written entity resolver. Michael Kay http://www.saxonica.com/