![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: more XPath struggles (tDOM) [Thread Next] Re: more XPath struggles (tDOM)To: NULL Date: 5/3/2008 5:36:00 PM In article <14831708.fxxoTTJthF@a...>, Mikhail Teterin <usenet+meow@a...> wrote: >I don't want it to read my mind, I want it to read the document. The >namespaces are set there with an xmlns-attribute of containing elements. In >fact, when I for the node's name [$node nodeName], I get the >fully-qualified foo.bar.woof.meow. > >It KNOWS the namespace-mapping, but it wants me to repeat it (f means foo, b >means bar, w means woof, etc.). That's gratuitous... Suppose you try to use the same XPath expressions with a document that uses different prefixes. How's that going to work? Your XPath expressions will all be wrong. The choice of prefixes is supposed to be arbitrary. You can't rely on f meaning foo. Even within a single document, you can use the same prefix for different namespaces and different prefixes for the same namespace. -- Richard -- :wq | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||
|
