[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Pattern "node()" and document nodes

Subject: Re: Pattern "node()" and document nodes
From: Mukul Gandhi <gandhi.mukul@xxxxxxxxx>
Date: Thu, 25 Feb 2010 22:28:51 +0530
Re:  Pattern "node()" and document nodes
On Thu, Feb 25, 2010 at 10:03 PM, David Carlisle <davidc@xxxxxxxxx> wrote:
> Mukul's code shows that the node test node() is true for document nodes, but
> the pattern node() doesn't match document nodes for the same reason that the
> xpath expression node() doesn't select document nodes.
> in both cases they are abbreviations of child::node() and document nodes are
> never children.

I agree. <xsl:template match="node()" .. or say, xsl:value-of
select=""node()/.. etc can never select a document node with pattern,
node() (as you rightly said, that in these cases, node() is an
abbreviation for, child::node()).

But the test ". instance of node()" returns true for document node,
because document node is a kind of node.

Thanks, for the clarification.


-- 
Regards,
Mukul Gandhi

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.