[
Lists Home |
Date Index |
Thread Index
]
Five I think. Text/element/text/element/text.
/pre/* would be two, as it only selects element children
from the child axis.
-bob
(I shoud really know the answer to this, but alas, I'm slack)
On Fri, 25 Jul 2003, Dare Obasanjo wrote:
> One of our devs just made me question all that's right in the world with
> the question below. Given the following XML
>
> <pre>
> <b>bold</b>
> <i>italic</i>
> </pre>
>
> what is the result of the following XPath expression
> "count(/pre/child::node())" ?
>
> Is the answer 2 or 5?
>
>
> --
> PITHY WORDS OF WISDOM
> Herblock's Law: if it is good, they will stop making it.
>
>
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
>
>
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
>
> The list archives are at http://lists.xml.org/archives/xml-dev/
>
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://lists.xml.org/ob/adm.pl>
>
--
Bob McWhirter bob@werken.com
The Werken Company http://werken.com/
|