Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: XSL Transformation on an XML document with namespace >Thread Next - Re: XSL Transformation on an XML document with namespace Re: XSL Transformation on an XML document with namespaceTo: NULL Date: 10/4/2006 2:34:00 PM Bjørn Terje Svennes wrote: > I'm using XslCompiledTransform to transform my XML file. The XSLT-file > retrieves values using xsl:value-of. The problem is that nothing is returned. > The XML-file contains a namespace definition: > > <root xml:ns="http://www.namespace.com/file.xsd"> > </root> > > If I remove the xml:ns part, the transformation works okey. A namespace declaration would be <root xmlns="http://www.namespace.com/file.xsd"> or <root xmlns:prefix="http://www.namespace.com/file.xsd"> but not what you have shown. If you have something like <root xmlns="http://www.namespace.com/file.xsd"> then look at <http://www.faqts.com/knowledge_base/view.phtml/aid/34022/fid/616> which explains how to write XPath expressions to select/match elements in certain namespace. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
