![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Multiple namespaces in target element [Thread Next] Re: Multiple namespaces in target elementTo: NULL Date: 8/17/2006 11:30:00 AM bhushan.kharabe@g... wrote: > Hi, > I am using XSLT to generate a XML. I am trying to generate the > following XML element in the target XML file. The target element has > multiple namespace declarations. > > <targetElement xmlns="namespace1" xmlns:a="namespace2"> > <childElement xyz="xyz" a:abc="abc"/> > </targetElement> > > I do not have this namespace information in source xml. I will be > hardcoding the namspace definitions. > > How can I achieve something like this? Any alternatives I can use?? Well, you don't need special tricks for this, just write <targetElement xmlns="namespace1" xmlns:a="namespace2"> <childElement xyz="xyz" a:abc="abc"/> </targetElement> in your stylesheet. -- Oleg Tkachenko [XML MVP, MCPD] http://blog.tkachenko.com | http://www.XmlLab.Net | http://www.XLinq.Net | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
