[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: an xpath/xsl question: why must (a QName in an) argument be apathexpression?
- From: David Carlisle <davidc@nag.co.uk>
- To: james.anderson@attglobal.net
- Date: Fri, 09 Mar 2001 09:23:53 +0000 (GMT)
> Aha. Ok. So that is, in fact, the nature of the XPath-World. Still, I'm
> surprised that QNames, as important as they are, then cannot be passed
> to functions. So be it.
Functions that need to see a name (such as id() which needs the id name,
which is a QName) take them as strings, thus it's id('foo:bar') not
id(foo:bar) the latter is legal of course, but looks up the ID with name
given by the string value of the element node selected by foo:bar
rather than the former, which looks up the ID foo:bar.
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp