Re: [xsl] Cannot include namespaces [XSLT 1.0] xsltproc
Subject: Re: [xsl] Cannot include namespaces [XSLT 1.0] xsltproc|
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 23 Aug 2010 15:04:19 +0100
On 23/08/2010 14:47, pankaj.c@xxxxxxxxxxxxxxxxxx wrote:
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
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.
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.