Matt Sergeant wrote:
On Monday, Feb 17, 2003, at 21:52 Europe/London, S Woodside wrote:
Yup, that was it. Thanks!

I think actually that the problem with XSLT is actually that the default namespace affect the XSLT nodes but doesn't apply to XPaths in the XSLT. IMHO you've got it right but maybe there's some subtle deeper issue I don't understand.
XML in a Nutshell explains this really well (I'm a bit biased as I tech reviewed it), except I don't have a copy to hand so I can't quote it - you'll just have to go out and buy it ;-)
XPath name tests can be assimilated to "QNames in content". There are two ways in which QNames can be processed: the default namespace applies (elements), or the default namespace doesn't apply (attributes). For QNames in content in XSLT, James Clark chose the attribute approach, IIRC on the basis that if you wanted a QName you should expressedly chose to make it so yourself, so you should actively add a prefix (as opposed to having actions-at-a-distance by monkeying with the default namespace).

Of course, the XML Schema people decided to chose the opposite approach, but that's another story... ;)

--
Robin Berjon <[EMAIL PROTECTED]>
Research Engineer, Expway http://expway.fr/
7FC0 6F5F D864 EFB8 08CE 8E74 58E6 D5DB 4889 2488


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to