xsl-list
[Top] [All Lists]

Re: [xsl] Cannot include namespaces [XSLT 1.0] xsltproc

2010-08-23 09:04:34
On 23/08/2010 14:47, pankaj(_dot_)c(_at_)thomsondigital(_dot_)com 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. ________________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--