[Home] [By Thread] [By Date] [Recent Entries]
On 23/08/2010 14:47, pankaj.c@xxxxxxxxxxxxxxxxxx wrote:
Hello all, you have used xsl:copy which copies an element (along with its namespace context) from the source rather than use a literal result element, or xsl:element which generates an element node using the namespace context in the stylesheet. Your source doesn't have a namespace with prefix aid, so xsl:copy won't copy one from anywhere. perhaps the simplest solution if say you know the top level element is book to have a template <xsl:template match="/x:book"> <book> .... Then the result tree will have at the top a book element that is generated within the stylesheet so will have all the namespaces declared within the stylesheet at that point. David ________________________________________________________________________ The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom. This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. ________________________________________________________________________
|

Cart



