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 namespaceTo: NULL Date: 10/5/2006 1:51:00 AM Ah, sorry. The namespace is xmlns="http://tempuri.org/ArchiveDataSet.xsd" The XML is generated from a DataSet using XmlDataDocument. I'll have a look at www.faqts.com "Martin Honnen" wrote: > > > 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 | |||
|
