This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Attributes disinherited


;
Very nice turn of phrase, Wendell.
It certainly helps explain to people how a machine doesn't consider an
attribute to be a child and yet how an attribute can have a parent
> 
> Looking at 7.5 also illuminates a point we came across last week -- that
> attributes are disinherited, not being the children of their parents.
> Notice that the identity transform must specify
> 
> <xsl:apply-templates select="@*|node()"/>
> 
> to get the attributes into the result tree. Otherwise, they would not be
> processed (the default is, only recognized child elements -- select="*" --
> get invited to the wedding).
> 
> Just in case:
> http://www.w3.org/TR/xslt
> http://www.w3.org/TR/xpath
> 
> Enjoy,
> Wendell


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]