Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: [xsl] returning nodes which have a specific child

From: "Michael Sokolov" <sokolov@--------.--->
To: <xsl-list@-----.------------.--->
Date: 7/3/2009 1:56:00 PM
OK I went back and read some documentation, and I guess node() really is
supposed to match *all* kinds of nodes.  I suppose it is just that
attributes are not children of their parents (shocking, in a way).  But I
still have to say it seems strange that "@*" (apparently) can match
attributes on the child axis and node() can't ...  I know I am missing all
kinds of subtleties and undoubtedly there were reasons for all of this, and
perhaps the alternatives were even more counter-intuitive, but from a
beginner's perspective, well, there are definitely some quirks to get used
to!

> -----Original Message-----
> From: Mukul Gandhi [mailto:gandhi.mukul@g...] 
> Sent: Friday, July 03, 2009 9:23 AM
> To: xsl-list@l...
> Subject: Re: [xsl] returning nodes which have a specific child
> 
> On Fri, Jul 3, 2009 at 6:36 PM, Michael 
> Sokolov<sokolov@i...> wrote:
> > including the
> > bizarre conceit that attribute *nodes* are not matched by 
> the 'node()' 
> > test (perhaps some other name would have been more appropriate?).
> 
> I am not aware of the discussions, that went amongst the WG 
> members, when XSLT 1.0/XPath 1.0 was designed.
> 
> But I think,
> Calling attributes as "nodes" is ok. As attributes are 
> modeled similar to other kinds of nodes. They have name, 
> value, parent etc.
> 
> Attributes can be referred as @* while other kinds of nodes with
> node() and so on.
> 
> I find this design ok :)
> 
> 
> --
> Regards,
> Mukul Gandhi
> 
> --~------------------------------------------------------------------
> 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@l...>
> --~--
> 
> 


--~------------------------------------------------------------------
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@l...>
--~--



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent