Subject: RE: The identity transform and attributes
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 21 Jan 2008 12:42:06 -0000
|
> 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/
|