Subject: Re: [xsl] RTF variables, node-set and namespaces From: David Carlisle <davidc@xxxxxxxxx> Date: Mon, 6 Sep 2004 12:17:47 +0100 |
PS > That does give the expected output. But it puzzles me because I would think > esp. the <ul> element *should* be in xmlns="http://www.w3.org/1999/xhtml" yes it should, but your word element shouldn't. > It also puzzles me that apparently, [self::word] is not the same as [name()='word'] that's a faq, the version using name tests the string value returned by the name() function (which in principle at least might contain arbitrary machine generated prefixes, and usually uses no prefix at all if there is no prefix in the source, inwhich case all namespace information is lost) self::foo which is the preferred form, is a normal Xpath axis so is fully namespace aware, and in the case of self::word selects word elements in no-namespace (as unprefixed names in Xpath always refer to no-namespace) David ________________________________________________________________________ This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] RTF variables, node-set a, David Carlisle | Thread | [xsl] How to write this XQuery prog, Zhimao Guo |
Re: [xsl] RTF variables, node-set a, David Carlisle | Date | [xsl] Re: Output method html, Per Norrman |
Month |