Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: setProperty, selectionNamespaces, defaultNamespace >Thread Next - Re: setProperty, selectionNamespaces, defaultNamespace Re: setProperty, selectionNamespaces, defaultNamespaceTo: NULL Date: 11/2/2006 6:15:00 AM Hi, sorry but it dit not work as descript. > XPath 1.0 does not know anything like a default namespace thus the XPath > expression //element always selects elements with the local name > |element| in _no_ namespace. I use a workaround and add for the default namespace the prefix "default". Now my "selection Namespace" property was set to xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:gml="http://www.opengis.net/gml" xmlns:sch="http://www.ascc.net/xml/schematron" xmlns:std="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:smil20="http://www.w3.org/2001/SMIL20/" xmlns:smil20lang="http://www.w3.org/2001/SMIL20/Language" xmlns:default="http://www.w3.org/2001/XMLSchema" but I can't select something like "//element" but "//default:element" works fine. My preview settings was the folling code snipe. You can see the declaration for the default namespace in the last row. As describte below it also does not work. xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:gml="http://www.opengis.net/gml" xmlns:sch="http://www.ascc.net/xml/schematron" xmlns:std="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:smil20="http://www.w3.org/2001/SMIL20/" xmlns:smil20lang="http://www.w3.org/2001/SMIL20/Language" xmlns="http://www.w3.org/2001/XMLSchema" Are there any ideas or succestions? Thanks Alexander | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
