[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|