OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] XPath and prefix bindings

Hi David,

yeah thats fair enough, in this particular case I don't actually know
what the hosting language is since we are trying to help an external
organisation thru the process of integrating with one of our hosted
web services and, not unusually, namespaces and their approach to
using them is causing a little consternation (so it *could* be XSLT).

I have been trying to provide some simple explanation (with examples)
to help them understand the difference between a namespace and a
prefix binding and in particular how the prefix(es) used in the XML
instance do not need to be the same as those used by the
implementation where any XPath expressions are evaluated. So in that
regard, your final sentance provide a nice summation of the key fact
(which I have also expressed to them but in much less succinct way).
So thanks


On 16 August 2012 00:22, David Carlisle <davidc@nag.co.uk> wrote:
> On 15/08/2012 23:21, Fraser Goffin wrote:
>> Where did you get the idea that this has anything to do with XSLT ?
> well I wondered about that but thought I'd keep it simple as there was a 90%
> chance of that being the case. If you are calling xpath from something else
> just substitute "XSLT" for whatever host language you are using. The issue
> is identical whatever the host language. You need to bind the prefixes in
> the host language, prefixes declared in the source have no effect on the
> interpretation of the QNames in the xpath.
> David
> --
> google plus: https:/profiles.google.com/d.p.carlisle

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS