tom tom wrote:
Hi
But is the following true: an element node's consists of
the name of the element; a text node consists of the CDATA
assigned to that node; But an attribute node consists of
the name of an attribute *as well* as its CDATA - is this
not inconsistent?
I don't think so. A node may have a name, and has a
string value (and may have a typed value in XPath 2.0). But
an element can have in addition sub-nodes, as its content
may be more complex than a simple string.
For an attribute, obviously, you don't need a tree with
sub-nodes. You just need a single node, with two properties:
its name and its value.
It sounds rather logical to me, isn't it?
Regards,
--drkm
___________________________________________________________________________
Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet
!
Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos
expériences.
http://fr.answers.yahoo.com
--~------------------------------------------------------------------
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>
--~--