Re: [xsl] question about identity transform

Subject: Re: [xsl] question about identity transform
From: "Dimitre Novatchev" <dnovatchev@xxxxxxxxx>
Date: Tue, 31 Oct 2006 12:27:08 -0800
On 10/31/06, Bill French <bfh@xxxxxxxxxxxxx> wrote:
Hi,

I've used the identity transform many times to do useful things and have
often wondered about the match pattern. Why is the match pattern

"node() | @*"

rather than simply "node()"? Aren't attributes returned by node()?



node()


is abbreviation for:

child::node()

while
  @*

is an abbreviation for:

attribute::node()


When no axis is specified only one (the child axis) is assumed.


--
Cheers,
Dimitre Novatchev
---------------------------------------
Truly great madness cannot be achieved without significant intelligence.
---------------------------------------
To invent, you need a good imagination and a pile of junk
-------------------------------------
You've achieved success in your field when you don't know whether what
you're doing is work or play




I read this and didn't find the answer:


http://www.dpawson.co.uk/xsl/sect2/identity.html

Regards

--Bill

Current Thread