[Home] [By Thread] [By Date] [Recent Entries]
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 Fraser. On 16 August 2012 00:22, David Carlisle <davidc@n...> 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] |

Cart



