xsl-list
[Top] [All Lists]

RE: [xsl] The identity transform and attributes

2008-01-21 05:42:32
Why shouldn't an attribute node have a child text node?

The usual rule I apply when doing object modelling is that if two objects
have a strictly one-to-one relationship then they are usually best modelled
as a single object.

In the DOM the reason that attribute nodes have text node children is that
they can also have children that are entity-references.

Michael Kay
http://www.saxonica.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>
--~--