Re: [bdbxml] Document names....
George Feinberg <[email protected]>
| Newsgroups | gmane.comp.db.dbxml.general |
|---|---|
| Message-ID | <[email protected]> |
> Great - I was trying to figure out how to query for the name but
> wasn't able
> to figure out the syntax - thanks!
>
> Any reason to use '{ string($a/@time) }' vs. '{ $a/@time/text() }' ??
> Thanks again,
> Mark
One additional point on this specific issue.
The syntax, $a/@time/text() will not be supported in future
BDB XML versions. The reason is that in the XQuery data
model, attributes do not have text node children, so technically
it's a syntax error, but not one that is caught during the
actual parsing of the expression (BDB XML's XQuery does not do static
type analysis).
The result will be simply nothing.
Note that some_element/text() is fine; the issue is specific
to attribute nodes.
George
------------------------------------------
To remove yourself from this list, send an
email to [email protected]