On Thu, 2013-11-14 at 10:27 +0000, Costello, Roger L. wrote:
Hi Folks,
The XSLT 3.0 specification introduces a new function for obtaining the
attributes on a node, fn:attributes.
fn:attributes has some desirable properties that @* does not have:
Unlike the attribute axis, @*, the
fn:attributes function returns atomized
attribute values, which cannot be
used as the base for uncontrolled
navigation around the document.
Possibly because with @* you can use the parent axis on the attribute
nodes, whereas with atomized values you can't. I think "unconstrained"
is meant, not "uncontrolled"...
It's an issue for when you are trying to stream the input, because if
you save an attribute node the implementation will have to keep the
parent element node (if any) in memory, along with all its children, and
potentially the whole document.
Liam
--
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--