Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: more XPath struggles (tDOM)

From: richard@------.--.--.-- (------- -----)
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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent