[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: Identity transform
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Sat, 03 Apr 2010 19:04:08 +0200
Heiko Niemann wrote:

lately I have seen some people using  *|@*|text() as matching pattern to
achieve an identity transform. Does this actually do the same as @*|node()
? I wasn't quite sure. If yes, is there any (dis-)advantage using it?

"node()" would match element nodes, text nodes, comment nodes, processing instruction nodes. If you only use "*|text()" instead of "node()" then you are excluding comment nodes and processing instruction nodes.



--


	Martin Honnen
	http://msmvps.com/blogs/martin_honnen/

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member