Subject: RE: [xsl] Using attributes with XPath From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Thu, 24 Aug 2006 09:53:16 +0100 |
> Mike Ferrando wrote: > > Attributes do not have parents. Elements can have parents, > but attributes never have parents, children, etc. This is incorrect. Attributes do have parents. It's just that they aren't children of their parent. > > > Further, XSLT 1.0 does not allow you to write a predicate for > an attribute template/@match Again, that's incorrect. You can certainly write match="list/@type". > At least I have always gotten errors when I > have tried to do it. Then you've misinterpreted the error messages. This sort of "black art" programming ("Don't do X because I tried it once and it didn't work") really needs to be discouraged. Either get to the root of the problem and discover precisely why the failure occurred, so you can tell people precisely what to avoid, or leave it in your private to-do list for later investigation. Don't spread rumours based on anecdotal evidence that hasn't been investigated. Michael Kay http://www.saxonica.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Using attributes with XPa, Mukul Gandhi | Thread | RE: [xsl] Using attributes with XPa, Mike Ferrando |
Re: [xsl] metrics for evaluating xs, bryan rasmussen | Date | [xsl]Select nodes without match, m.core |
Month |